Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.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.0008936/0.0008936, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 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.001071/0.001071, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 18.57 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.001/1.001, allocations: 177 MB / 204.8 MB, free: 5.57 MB / 186.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.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.04e-05/2.179e-05, allocations: 2.312 kB / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00344/0.003461, allocations: 3.086 MB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.004812, allocations: 0.9813 MB / 277 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001691/0.004981, allocations: 19.88 kB / 277 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002116/0.005192, allocations: 91.17 kB / 277.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001618/0.005354, allocations: 103 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003912/0.005745, allocations: 231.5 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000396/0.006141, allocations: 0.5339 MB / 277.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.006336, allocations: 113.7 kB / 278 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002377/0.006573, allocations: 279.4 kB / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001767/0.00675, allocations: 155.5 kB / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.04e-05/0.0068, allocations: 44 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.424e-05/0.006845, allocations: 40 kB / 278.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.989e-05/0.006934, allocations: 103.6 kB / 278.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.007053, allocations: 143.6 kB / 278.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003741/0.007427, allocations: 346.6 kB / 279.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.007429, allocations: 0 / 279.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.00743, allocations: 4 kB / 279.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.007435, allocations: 0 / 279.1 MB, free: 11.17 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.0008149/0.00825, allocations: 0.7841 MB / 279.9 MB, free: 10.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.008286, allocations: 11.98 kB / 279.9 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.635e-05/0.008372, allocations: 88.61 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000319/0.008691, allocations: 308.3 kB / 280.3 MB, free: 9.918 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.296e-05/0.008724, allocations: 37.3 kB / 280.3 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.055e-05/0.008775, allocations: 36.38 kB / 280.4 MB, free: 9.848 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004394/0.009214, allocations: 438.6 kB / 280.8 MB, free: 9.363 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.009229, allocations: 4.141 kB / 280.8 MB, free: 9.359 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.225e-05/0.009252, allocations: 16.38 kB / 280.8 MB, free: 9.344 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.009265, allocations: 15.94 kB / 280.8 MB, free: 9.328 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003336/0.009599, allocations: 157.8 kB / 281 MB, free: 9.176 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001276/0.01088, allocations: 1.584 MB / 282.6 MB, free: 7.516 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003333/0.01121, allocations: 186.3 kB / 282.8 MB, free: 7.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.439e-05/0.0113, allocations: 67.66 kB / 282.8 MB, free: 7.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.01133, allocations: 4 kB / 282.8 MB, free: 7.246 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.01135, allocations: 37.39 kB / 282.9 MB, free: 7.199 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.252e-06/0.01135, allocations: 4 kB / 282.9 MB, free: 7.195 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.001069/0.01242, allocations: 0.7903 MB / 283.7 MB, free: 6.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.01247, allocations: 106.8 kB / 283.8 MB, free: 6.211 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000245/0.01271, allocations: 374.6 kB / 284.1 MB, free: 5.824 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.01273, allocations: 33.7 kB / 284.2 MB, free: 5.785 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.01287, allocations: 291.5 kB / 284.5 MB, free: 5.496 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.879e-05/0.01293, allocations: 118.9 kB / 284.6 MB, free: 5.379 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.483e-05/0.01301, allocations: 83.84 kB / 284.7 MB, free: 5.289 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.01316, allocations: 0.5157 MB / 285.2 MB, free: 4.762 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.01327, allocations: 81.58 kB / 285.2 MB, free: 4.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.01344, allocations: 232.9 kB / 285.5 MB, free: 4.395 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/0.01368, allocations: 225.5 kB / 285.7 MB, free: 4.137 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01368, allocations: 0 / 285.7 MB, free: 4.137 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0003431/0.01402, allocations: 321.1 kB / 286 MB, free: 3.816 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.01404, allocations: 7.938 kB / 286 MB, free: 3.809 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.01404, allocations: 4 kB / 286 MB, free: 3.805 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.01406, allocations: 15.86 kB / 286 MB, free: 3.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003527/0.01441, allocations: 164 kB / 286.2 MB, free: 3.629 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009362/0.01535, allocations: 1.844 MB / 288 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.01548, allocations: 23.98 kB / 288.1 MB, free: 1.641 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.01549, allocations: 20.12 kB / 288.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001548/0.01565, allocations: 199.8 kB / 288.3 MB, free: 1.422 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001625/0.01581, allocations: 232.9 kB / 288.5 MB, free: 1.133 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002155/0.01603, allocations: 225.3 kB / 288.7 MB, free: 0.875 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.422e-06/0.01603, allocations: 0 / 288.7 MB, free: 0.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0003117/0.01634, allocations: 317.1 kB / 289 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.255e-06/0.01635, allocations: 11.98 kB / 289 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-06/0.01635, allocations: 0 / 289 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.046e-06/0.01635, allocations: 4 kB / 289 MB, free: 0.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002172/0.01657, allocations: 107.9 kB / 289.2 MB, free: 448 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.015e-06/0.01657, allocations: 4 kB / 289.2 MB, free: 444 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.01668, allocations: 24.2 kB / 289.2 MB, free: 420 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.01669, allocations: 19.94 kB / 289.2 MB, free: 400 kB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000111/0.0168, allocations: 292 kB / 289.5 MB, free: 100 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.595e-05/0.01685, allocations: 47.77 kB / 289.5 MB, free: 52 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.066e-05/0.01689, allocations: 48.08 kB / 289.6 MB, free: 4 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.01689, allocations: 4 kB / 289.6 MB, free: 0 / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.01689, allocations: 0 / 289.6 MB, free: 0 / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.0169, allocations: 0 / 289.6 MB, free: 0 / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006613/0.01756, allocations: 0.6796 MB / 290.3 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.01756, allocations: 0 / 290.3 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001818/0.01774, allocations: 75.89 kB / 290.3 MB, free: 15.19 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.01775, allocations: 4 kB / 290.3 MB, free: 15.19 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.01776, allocations: 8 kB / 290.4 MB, free: 15.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.01776, allocations: 3.938 kB / 290.4 MB, free: 15.18 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.01776, allocations: 0 / 290.4 MB, free: 15.18 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003877/0.01815, allocations: 475.4 kB / 290.8 MB, free: 14.68 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.198e-05/0.01822, allocations: 63.73 kB / 290.9 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.574e-05/0.01825, allocations: 8 kB / 290.9 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.01836, allocations: 27.91 kB / 290.9 MB, free: 14.58 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.783e-05/0.01841, allocations: 27.89 kB / 290.9 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.01843, allocations: 16.06 kB / 291 MB, free: 14.54 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.00014/0.01857, allocations: 243.1 kB / 291.2 MB, free: 14.3 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01857, allocations: 0 / 291.2 MB, free: 14.3 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003147/0.01888, allocations: 132 kB / 291.3 MB, free: 14.17 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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 8.194e-05/0.01896, allocations: 115.1 kB / 291.4 MB, free: 14.05 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005673/0.01953, allocations: 402.1 kB / 291.8 MB, free: 13.65 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.01953, allocations: 0 / 291.8 MB, free: 13.65 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.01964, allocations: 103.6 kB / 291.9 MB, free: 13.54 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.02, allocations: 112.7 kB / 292 MB, free: 13.44 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.02119, allocations: 0.8833 MB / 292.9 MB, free: 12.51 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.539e-05/0.02125, allocations: 109.7 kB / 293 MB, free: 12.38 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001422/0.02139, allocations: 59.23 kB / 293.1 MB, free: 12.33 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.807e-05/0.02146, allocations: 28.5 kB / 293.1 MB, free: 12.3 MB / 282.7 MB Notification: Performance of SimCode: time 5.41e-07/0.02146, allocations: 0 / 293.1 MB, free: 12.3 MB / 282.7 MB Notification: Performance of Templates: time 0.006699/0.02816, allocations: 4.831 MB / 297.9 MB, free: 7.535 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_trunk_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.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.924091386143118]