Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 68.08 kB / 21.69 MB, free: 2.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004441/0.004441, allocations: 140.5 kB / 24.97 MB, free: 9.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.017/1.017, allocations: 173.4 MB / 201.5 MB, free: 9.344 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.244e-06/2.244e-06, allocations: 3.938 kB / 268.1 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.654e-05/2.878e-05, allocations: 2.312 kB / 268.1 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003365/0.003394, allocations: 3.055 MB / 271.1 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.005018, allocations: 0.9619 MB / 272.1 MB, free: 2.711 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000267/0.005285, allocations: 15.88 kB / 272.1 MB, free: 2.695 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003321/0.005617, allocations: 87.17 kB / 272.2 MB, free: 2.609 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002292/0.005846, allocations: 119 kB / 272.3 MB, free: 2.492 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004739/0.00632, allocations: 227.6 kB / 272.5 MB, free: 2.27 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006384/0.006958, allocations: 0.5377 MB / 273.1 MB, free: 1.727 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002244/0.007183, allocations: 109.7 kB / 273.2 MB, free: 1.621 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003106/0.007493, allocations: 287.3 kB / 273.4 MB, free: 1.34 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/0.007673, allocations: 159.5 kB / 273.6 MB, free: 1.184 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.136e-05/0.007724, allocations: 40 kB / 273.6 MB, free: 1.145 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.05e-05/0.007765, allocations: 44 kB / 273.7 MB, free: 1.102 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.391e-05/0.007848, allocations: 115.5 kB / 273.8 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.007957, allocations: 135.7 kB / 273.9 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003549/0.008312, allocations: 342.6 kB / 274.3 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.008315, allocations: 0 / 274.3 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.008316, allocations: 0 / 274.3 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.008323, allocations: 0 / 274.3 MB, free: 0.5195 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.0008281/0.009151, allocations: 0.7725 MB / 275 MB, free: 15.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.00919, allocations: 12.03 kB / 275 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.0093, allocations: 80.61 kB / 275.1 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003736/0.009674, allocations: 328.2 kB / 275.4 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/0.009705, allocations: 25.38 kB / 275.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.257e-05/0.009757, allocations: 44.38 kB / 275.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004815/0.01024, allocations: 392.7 kB / 275.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.01026, allocations: 4 kB / 275.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.859e-05/0.01028, allocations: 12 kB / 275.9 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.01029, allocations: 12 kB / 275.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000251/0.01055, allocations: 157.8 kB / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.01196, allocations: 1.595 MB / 277.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.01231, allocations: 186.3 kB / 277.9 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.731e-05/0.01241, allocations: 71.66 kB / 277.9 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.01243, allocations: 4 kB / 277.9 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.447e-05/0.01245, allocations: 41.33 kB / 278 MB, free: 12.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.224e-06/0.01246, allocations: 4 kB / 278 MB, free: 12.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.001096/0.01355, allocations: 0.7983 MB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.01359, allocations: 81.11 kB / 278.8 MB, free: 11.63 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002504/0.01385, allocations: 374.6 kB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.01387, allocations: 37.7 kB / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.014, allocations: 287.3 kB / 279.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.87e-05/0.01407, allocations: 119.1 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.918e-05/0.01416, allocations: 87.8 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002619/0.01442, allocations: 0.5157 MB / 280.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.01454, allocations: 73.64 kB / 280.3 MB, free: 10.1 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.0147, allocations: 195.5 kB / 280.5 MB, free: 9.859 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002377/0.01494, allocations: 233.6 kB / 280.7 MB, free: 9.594 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.01494, allocations: 3.938 kB / 280.7 MB, free: 9.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0003742/0.01531, allocations: 309.1 kB / 281 MB, free: 9.281 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.01533, allocations: 8 kB / 281.1 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.01534, allocations: 0 / 281.1 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.01536, allocations: 8.219 kB / 281.1 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003945/0.01575, allocations: 167.8 kB / 281.2 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009023/0.01665, allocations: 1.852 MB / 283.1 MB, free: 7.133 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.0168, allocations: 23.98 kB / 283.1 MB, free: 7.109 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.726e-05/0.01682, allocations: 16 kB / 283.1 MB, free: 7.094 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001656/0.01699, allocations: 199.8 kB / 283.3 MB, free: 6.895 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001548/0.01714, allocations: 195.5 kB / 283.5 MB, free: 6.656 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002315/0.01737, allocations: 233.4 kB / 283.7 MB, free: 6.391 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.323e-06/0.01738, allocations: 0 / 283.7 MB, free: 6.391 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0003324/0.01771, allocations: 305.1 kB / 284 MB, free: 6.086 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.01772, allocations: 8 kB / 284 MB, free: 6.078 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.01772, allocations: 224 / 284 MB, free: 6.078 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.539e-06/0.01773, allocations: 8 kB / 284 MB, free: 6.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.01796, allocations: 115.8 kB / 284.2 MB, free: 5.957 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.01797, allocations: 4 kB / 284.2 MB, free: 5.953 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/0.01808, allocations: 27.92 kB / 284.2 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.0181, allocations: 16 kB / 284.2 MB, free: 5.91 MB / 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.0001409/0.01824, allocations: 288 kB / 284.5 MB, free: 5.621 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.251e-05/0.01829, allocations: 47.77 kB / 284.5 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.397e-05/0.01835, allocations: 48.09 kB / 284.6 MB, free: 5.523 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.01835, allocations: 4 kB / 284.6 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.01836, allocations: 0 / 284.6 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.01836, allocations: 7.922 kB / 284.6 MB, free: 5.512 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007074/0.01907, allocations: 0.6718 MB / 285.3 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.01907, allocations: 4 kB / 285.3 MB, free: 4.781 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001969/0.01927, allocations: 67.97 kB / 285.3 MB, free: 4.715 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.01927, allocations: 3.938 kB / 285.3 MB, free: 4.711 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/0.01929, allocations: 16.11 kB / 285.4 MB, free: 4.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.0193, allocations: 7.938 kB / 285.4 MB, free: 4.688 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.0193, allocations: 0 / 285.4 MB, free: 4.688 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004137/0.01971, allocations: 475 kB / 285.8 MB, free: 4.188 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.043e-05/0.01979, allocations: 59.67 kB / 285.9 MB, free: 4.129 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.129e-05/0.01983, allocations: 16 kB / 285.9 MB, free: 4.113 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.01994, allocations: 19.98 kB / 285.9 MB, free: 4.094 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.245e-05/0.02, allocations: 23.95 kB / 285.9 MB, free: 4.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.02001, allocations: 11.98 kB / 286 MB, free: 4.059 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001542/0.02017, allocations: 251.1 kB / 286.2 MB, free: 3.816 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02017, allocations: 4 kB / 286.2 MB, free: 3.812 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003675/0.02053, allocations: 136 kB / 286.3 MB, free: 3.68 MB / 266.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 9.549e-05/0.02063, allocations: 103.4 kB / 286.4 MB, free: 3.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007531/0.02138, allocations: 405.6 kB / 286.8 MB, free: 3.164 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.02139, allocations: 0 / 286.8 MB, free: 3.164 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.0215, allocations: 91.52 kB / 286.9 MB, free: 3.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004174/0.02191, allocations: 109 kB / 287 MB, free: 2.969 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.02325, allocations: 0.8838 MB / 287.9 MB, free: 2.035 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.878e-05/0.02332, allocations: 113.7 kB / 288 MB, free: 1.906 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001645/0.02348, allocations: 59.22 kB / 288.1 MB, free: 1.852 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.124e-05/0.02355, allocations: 32.5 kB / 288.1 MB, free: 1.82 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.02356, allocations: 0 / 288.1 MB, free: 1.82 MB / 266.7 MB Notification: Performance of Templates: time 0.007138/0.03069, allocations: 4.86 MB / 293 MB, free: 13.04 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.875645105028525]