Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001206/0.001206, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001499/0.002705, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001023, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001373/0.002395, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.013/1.013, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08658/1.1, allocations: 53.87 MB / 243.8 MB, free: 14.9 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.336e-05/2.492e-05, allocations: 2.312 kB / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003857/0.003882, allocations: 2.135 MB / 247.1 MB, free: 11.53 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.005114, allocations: 0.6073 MB / 247.7 MB, free: 10.91 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001925/0.005307, allocations: 7.938 kB / 247.7 MB, free: 10.91 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001105/0.005417, allocations: 15.8 kB / 247.8 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001741/0.005591, allocations: 35.66 kB / 247.8 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00033/0.005921, allocations: 67.73 kB / 247.9 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002237/0.006145, allocations: 135.5 kB / 248 MB, free: 10.66 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.006287, allocations: 50.62 kB / 248 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.006458, allocations: 83.86 kB / 248.1 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.00656, allocations: 47.81 kB / 248.2 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.584e-05/0.006596, allocations: 12 kB / 248.2 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.196e-05/0.006618, allocations: 8 kB / 248.2 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.711e-05/0.006685, allocations: 23.94 kB / 248.2 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.089e-05/0.006746, allocations: 35.88 kB / 248.2 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002224/0.006968, allocations: 99.53 kB / 248.3 MB, free: 10.3 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.434e-05/0.006982, allocations: 0 / 248.3 MB, free: 10.3 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.006984, allocations: 0 / 248.3 MB, free: 10.3 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.778e-05/0.007002, allocations: 0 / 248.3 MB, free: 10.3 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006575/0.007659, allocations: 375.9 kB / 248.7 MB, free: 9.91 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.007698, allocations: 12.62 kB / 248.7 MB, free: 9.898 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.372e-05/0.007762, allocations: 24.86 kB / 248.8 MB, free: 9.875 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.00801, allocations: 157.5 kB / 248.9 MB, free: 9.695 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.008026, allocations: 8.375 kB / 248.9 MB, free: 9.688 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.223e-05/0.008058, allocations: 20.27 kB / 248.9 MB, free: 9.668 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003816/0.00844, allocations: 211.8 kB / 249.1 MB, free: 9.434 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.008454, allocations: 192 / 249.1 MB, free: 9.434 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.008467, allocations: 4.375 kB / 249.1 MB, free: 9.43 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.008477, allocations: 7.938 kB / 249.2 MB, free: 9.422 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.993e-05/0.008567, allocations: 39.14 kB / 249.2 MB, free: 9.387 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006187/0.009186, allocations: 457.9 kB / 249.6 MB, free: 8.902 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00026/0.009446, allocations: 111.7 kB / 249.7 MB, free: 8.766 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.954e-05/0.009515, allocations: 38.86 kB / 249.8 MB, free: 8.719 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.53e-05/0.00955, allocations: 11.92 kB / 249.8 MB, free: 8.707 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.009586, allocations: 38.56 kB / 249.8 MB, free: 8.66 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 2.154e-06/0.009588, allocations: 0 / 249.8 MB, free: 8.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002491/0.009837, allocations: 97.53 kB / 249.9 MB, free: 8.559 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.342e-05/0.009911, allocations: 106.8 kB / 250 MB, free: 8.43 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.01003, allocations: 155.2 kB / 250.2 MB, free: 8.266 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/0.01005, allocations: 25.7 kB / 250.2 MB, free: 8.234 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.498e-05/0.01011, allocations: 116.7 kB / 250.3 MB, free: 8.113 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.464e-05/0.01014, allocations: 27.77 kB / 250.4 MB, free: 8.086 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.604e-05/0.01018, allocations: 29.72 kB / 250.4 MB, free: 8.051 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.561e-05/0.01028, allocations: 322.8 kB / 250.7 MB, free: 7.727 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.116e-05/0.0103, allocations: 11.94 kB / 250.7 MB, free: 7.715 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.06e-05/0.01036, allocations: 66.77 kB / 250.8 MB, free: 7.625 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.51e-05/0.01046, allocations: 82.77 kB / 250.9 MB, free: 7.52 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.01046, allocations: 4 kB / 250.9 MB, free: 7.516 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001284/0.01059, allocations: 77.48 kB / 250.9 MB, free: 7.434 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.01061, allocations: 8 kB / 250.9 MB, free: 7.426 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.01061, allocations: 3.984 kB / 250.9 MB, free: 7.422 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.01063, allocations: 4 kB / 250.9 MB, free: 7.418 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000205/0.01083, allocations: 36.14 kB / 251 MB, free: 7.383 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.01084, allocations: 8 kB / 251 MB, free: 7.375 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.267e-05/0.01091, allocations: 11.89 kB / 251 MB, free: 7.363 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.01092, allocations: 4 kB / 251 MB, free: 7.359 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.976e-05/0.01102, allocations: 124.5 kB / 251.1 MB, free: 7.227 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.01115, allocations: 65.67 kB / 251.2 MB, free: 7.156 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.734e-05/0.01121, allocations: 20.77 kB / 251.2 MB, free: 7.137 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.01122, allocations: 0 / 251.2 MB, free: 7.137 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.01122, allocations: 0 / 251.2 MB, free: 7.137 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.01123, allocations: 4 kB / 251.2 MB, free: 7.133 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/0.01144, allocations: 105.7 kB / 251.3 MB, free: 7.012 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.01145, allocations: 0 / 251.3 MB, free: 7.012 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001808/0.01163, allocations: 39.92 kB / 251.4 MB, free: 6.973 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.294e-05/0.01169, allocations: 19.88 kB / 251.4 MB, free: 6.953 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.0117, allocations: 4 kB / 251.4 MB, free: 6.949 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.01172, allocations: 4 kB / 251.4 MB, free: 6.945 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.01172, allocations: 0 / 251.4 MB, free: 6.945 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.01172, allocations: 4 kB / 251.4 MB, free: 6.941 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002232/0.01195, allocations: 243.5 kB / 251.6 MB, free: 6.684 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.167e-05/0.01197, allocations: 0 / 251.6 MB, free: 6.684 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.01208, allocations: 12.03 kB / 251.6 MB, free: 6.672 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.635e-05/0.01212, allocations: 4.219 kB / 251.6 MB, free: 6.668 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.275e-06/0.01213, allocations: 7.938 kB / 251.7 MB, free: 6.66 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.865e-05/0.01218, allocations: 32.83 kB / 251.7 MB, free: 6.625 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01218, allocations: 4 kB / 251.7 MB, free: 6.621 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002899/0.01247, allocations: 23.95 kB / 251.7 MB, free: 6.598 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001357/0.0126, allocations: 96.27 kB / 251.8 MB, free: 6.496 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001402/0.01274, allocations: 57.14 kB / 251.9 MB, free: 6.438 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/0.01275, allocations: 0 / 251.9 MB, free: 6.438 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.034e-05/0.01278, allocations: 16.8 kB / 251.9 MB, free: 6.418 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.01322, allocations: 63.84 kB / 251.9 MB, free: 6.355 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00222/0.01544, allocations: 338.9 kB / 252.3 MB, free: 5.988 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.911e-05/0.0155, allocations: 75.33 kB / 252.3 MB, free: 5.895 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.251e-05/0.01557, allocations: 8.641 kB / 252.4 MB, free: 5.883 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.01567, allocations: 67.38 kB / 252.4 MB, free: 5.816 MB / 250.7 MB Notification: Performance of SimCode: time 1.202e-06/0.01567, allocations: 0 / 252.4 MB, free: 5.816 MB / 250.7 MB Notification: Performance of Templates: time 0.005019/0.02069, allocations: 1.497 MB / 253.9 MB, free: 4.383 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.514854898676276]