Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002406/0.002406, allocations: 91.61 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002926/0.002926, allocations: 165.3 kB / 24.28 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.643/1.643, allocations: 177.2 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.795e-05/2.964e-05, allocations: 2.312 kB / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005371/0.005401, allocations: 3.031 MB / 275.3 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.007765, allocations: 0.9776 MB / 276.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002917/0.008056, allocations: 15.88 kB / 276.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004024/0.008459, allocations: 87.17 kB / 276.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003148/0.008773, allocations: 115 kB / 276.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006749/0.009448, allocations: 223.6 kB / 276.7 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007285/0.01018, allocations: 0.53 MB / 277.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002976/0.01047, allocations: 121.6 kB / 277.4 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004243/0.0109, allocations: 283.3 kB / 277.7 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002791/0.01118, allocations: 155.5 kB / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.068e-05/0.01126, allocations: 44 kB / 277.9 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.043e-05/0.01134, allocations: 44 kB / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.01148, allocations: 111.5 kB / 278 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.01166, allocations: 135.7 kB / 278.2 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007183/0.01238, allocations: 0.506 MB / 278.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.01239, allocations: 0 / 278.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.01239, allocations: 0 / 278.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.0124, allocations: 0 / 278.7 MB, free: 11.45 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.001437/0.01383, allocations: 0.8073 MB / 279.5 MB, free: 10.6 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.01388, allocations: 12.03 kB / 279.5 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.01403, allocations: 80.61 kB / 279.6 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006652/0.0147, allocations: 324.2 kB / 279.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.418e-05/0.01474, allocations: 29.38 kB / 279.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.589e-05/0.01482, allocations: 40.38 kB / 279.9 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009213/0.01574, allocations: 0.4901 MB / 280.4 MB, free: 9.562 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.193e-05/0.01577, allocations: 12.14 kB / 280.4 MB, free: 9.551 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.842e-05/0.01581, allocations: 12.38 kB / 280.5 MB, free: 9.539 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.01583, allocations: 11.94 kB / 280.5 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007713/0.0166, allocations: 303.8 kB / 280.8 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002612/0.01921, allocations: 1.729 MB / 282.5 MB, free: 7.426 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007459/0.01996, allocations: 283.1 kB / 282.8 MB, free: 7.133 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000316/0.02027, allocations: 127.6 kB / 282.9 MB, free: 7.004 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.733e-05/0.02031, allocations: 4 kB / 282.9 MB, free: 7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.02034, allocations: 37.39 kB / 282.9 MB, free: 6.953 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.693e-06/0.02034, allocations: 0 / 282.9 MB, free: 6.953 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.002704/0.02305, allocations: 1.107 MB / 284 MB, free: 5.781 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.655e-05/0.02314, allocations: 106.8 kB / 284.1 MB, free: 5.652 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005281/0.02366, allocations: 446.6 kB / 284.6 MB, free: 5.195 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/0.0237, allocations: 33.7 kB / 284.6 MB, free: 5.156 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002546/0.02395, allocations: 303.4 kB / 284.9 MB, free: 4.855 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.02408, allocations: 127 kB / 285 MB, free: 4.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.02424, allocations: 95.81 kB / 285.1 MB, free: 4.629 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000307/0.02454, allocations: 0.5352 MB / 285.7 MB, free: 4.082 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003652/0.02491, allocations: 141.6 kB / 285.8 MB, free: 3.941 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004884/0.0254, allocations: 312.9 kB / 286.1 MB, free: 3.574 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007656/0.02616, allocations: 377.5 kB / 286.5 MB, free: 3.168 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.02616, allocations: 0 / 286.5 MB, free: 3.168 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001053/0.02722, allocations: 441 kB / 286.9 MB, free: 2.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.02724, allocations: 7.938 kB / 286.9 MB, free: 2.723 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/0.02725, allocations: 4 kB / 286.9 MB, free: 2.719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.02727, allocations: 8.219 kB / 286.9 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007637/0.02803, allocations: 155.8 kB / 287.1 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002031/0.03006, allocations: 1.946 MB / 289 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002962/0.03036, allocations: 23.97 kB / 289 MB, free: 484 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.965e-05/0.03039, allocations: 16 kB / 289.1 MB, free: 468 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005073/0.0309, allocations: 287.8 kB / 289.3 MB, free: 176 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004778/0.03137, allocations: 304.8 kB / 289.6 MB, free: 15.82 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007107/0.03209, allocations: 365.3 kB / 290 MB, free: 15.42 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.954e-06/0.03209, allocations: 0 / 290 MB, free: 15.42 MB / 282.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.00088/0.03297, allocations: 417.1 kB / 290.4 MB, free: 15.01 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.03298, allocations: 8 kB / 290.4 MB, free: 15 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.03298, allocations: 0 / 290.4 MB, free: 15 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.693e-06/0.03299, allocations: 8.219 kB / 290.4 MB, free: 14.99 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004825/0.03347, allocations: 107.9 kB / 290.5 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.437e-06/0.03348, allocations: 7.938 kB / 290.5 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002628/0.03375, allocations: 27.97 kB / 290.6 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.659e-05/0.03378, allocations: 16 kB / 290.6 MB, free: 14.84 MB / 282.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.0002377/0.03402, allocations: 292 kB / 290.9 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.295e-05/0.03411, allocations: 47.77 kB / 290.9 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/0.03423, allocations: 48.09 kB / 291 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.03423, allocations: 4 kB / 291 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.03424, allocations: 3.984 kB / 291 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.373e-06/0.03425, allocations: 3.984 kB / 291 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/0.03589, allocations: 0.8593 MB / 291.8 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.0359, allocations: 0 / 291.8 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003727/0.03627, allocations: 80.02 kB / 291.9 MB, free: 13.44 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/0.03628, allocations: 4 kB / 291.9 MB, free: 13.44 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.0363, allocations: 11.94 kB / 291.9 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.03631, allocations: 3.938 kB / 291.9 MB, free: 13.42 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.03631, allocations: 7.938 kB / 291.9 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.03756, allocations: 0.6555 MB / 292.6 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.03769, allocations: 55.73 kB / 292.6 MB, free: 12.67 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.41e-05/0.03775, allocations: 12.06 kB / 292.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002366/0.03798, allocations: 27.92 kB / 292.7 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.147e-05/0.03807, allocations: 31.89 kB / 292.7 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.03809, allocations: 4 kB / 292.7 MB, free: 12.59 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003184/0.03841, allocations: 287.1 kB / 293 MB, free: 12.32 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03841, allocations: 0 / 293 MB, free: 12.32 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005468/0.03896, allocations: 136 kB / 293.1 MB, free: 12.19 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 0.0001434/0.0391, allocations: 107.2 kB / 293.2 MB, free: 12.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.04067, allocations: 0.5876 MB / 293.8 MB, free: 11.48 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.04067, allocations: 0 / 293.8 MB, free: 11.48 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000455/0.04112, allocations: 163.7 kB / 294 MB, free: 11.31 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006898/0.04181, allocations: 111.1 kB / 294.1 MB, free: 11.21 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.04369, allocations: 0.9143 MB / 295 MB, free: 10.24 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.04394, allocations: 216.2 kB / 295.2 MB, free: 10.01 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002572/0.0442, allocations: 67.22 kB / 295.3 MB, free: 9.945 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.04432, allocations: 32.5 kB / 295.3 MB, free: 9.914 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.04432, allocations: 0 / 295.3 MB, free: 9.914 MB / 282.7 MB Notification: Performance of Templates: time 0.01121/0.05552, allocations: 4.828 MB / 300.1 MB, free: 5.172 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.826606932096183]