Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001584/0.001584, allocations: 106.1 kB / 18.4 MB, free: 4.633 MB / 14.72 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.001585/0.001585, allocations: 193.2 kB / 21.34 MB, free: 1.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.775/1.775, allocations: 205.1 MB / 229.2 MB, free: 4.375 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 51.55 kB / 335.2 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1312, allocations: 46.63 MB / 381.8 MB, free: 472 kB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005155/0.1364, allocations: 3.124 MB / 385 MB, free: 13.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002332/0.1388, allocations: 1.01 MB / 386 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002833/0.1391, allocations: 11.94 kB / 386 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004533/0.1396, allocations: 91.17 kB / 386.1 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002689/0.1399, allocations: 107.1 kB / 386.2 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006452/0.1405, allocations: 231.5 kB / 386.4 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006744/0.1412, allocations: 0.5223 MB / 386.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003512/0.1416, allocations: 181.2 kB / 387.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002503/0.1418, allocations: 191.3 kB / 387.3 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002827/0.1421, allocations: 210.8 kB / 387.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.799e-05/0.1422, allocations: 40 kB / 387.5 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.179e-05/0.1423, allocations: 40 kB / 387.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001846/0.1424, allocations: 107.6 kB / 387.7 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002569/0.1427, allocations: 210.8 kB / 387.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007176/0.1434, allocations: 0.5056 MB / 388.4 MB, free: 9.867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1435, allocations: 0 / 388.4 MB, free: 9.867 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1435, allocations: 4 kB / 388.4 MB, free: 9.863 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.689e-06/0.1435, allocations: 0 / 388.4 MB, free: 9.863 MB / 318.1 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.001626/0.1451, allocations: 0.7868 MB / 389.2 MB, free: 9.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.1452, allocations: 11.89 kB / 389.2 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.1453, allocations: 52.61 kB / 389.2 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006364/0.1459, allocations: 380 kB / 389.6 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.836e-05/0.146, allocations: 25.38 kB / 389.6 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.212e-05/0.1461, allocations: 44.36 kB / 389.7 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009999/0.1471, allocations: 450.7 kB / 390.1 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.42e-05/0.1471, allocations: 3.953 kB / 390.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.596e-05/0.1471, allocations: 12 kB / 390.1 MB, free: 7.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.1472, allocations: 8 kB / 390.1 MB, free: 7.988 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.1482, allocations: 387.6 kB / 390.5 MB, free: 7.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002439/0.1507, allocations: 1.56 MB / 392.1 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000883/0.1516, allocations: 315.6 kB / 392.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004727/0.152, allocations: 164.8 kB / 392.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.053e-05/0.1521, allocations: 7.922 kB / 392.6 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/0.1521, allocations: 46.48 kB / 392.6 MB, free: 5.414 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.884e-06/0.1521, allocations: 0 / 392.6 MB, free: 5.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.00364/0.1558, allocations: 1.393 MB / 394 MB, free: 3.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.515e-05/0.1559, allocations: 81.11 kB / 394.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005099/0.1564, allocations: 357.7 kB / 394.4 MB, free: 3.473 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.813e-05/0.1565, allocations: 33.7 kB / 394.5 MB, free: 3.434 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002396/0.1567, allocations: 244.5 kB / 394.7 MB, free: 3.191 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.1569, allocations: 123 kB / 394.8 MB, free: 3.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001769/0.157, allocations: 82.08 kB / 394.9 MB, free: 2.984 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002202/0.1573, allocations: 346.8 kB / 395.2 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004933/0.1578, allocations: 174.5 kB / 395.4 MB, free: 2.465 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005681/0.1584, allocations: 256.7 kB / 395.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009889/0.1594, allocations: 391.9 kB / 396 MB, free: 1.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.1594, allocations: 4 kB / 396 MB, free: 1.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001186/0.1606, allocations: 0.4892 MB / 396.5 MB, free: 1.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.1606, allocations: 7.906 kB / 396.5 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.1606, allocations: 4 kB / 396.5 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.54e-05/0.1606, allocations: 4 kB / 396.5 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009431/0.1616, allocations: 211.9 kB / 396.7 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002065/0.1637, allocations: 1.564 MB / 398.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003743/0.1641, allocations: 35.95 kB / 398.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.1641, allocations: 16.09 kB / 398.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006082/0.1647, allocations: 280.8 kB / 398.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004935/0.1652, allocations: 236.8 kB / 398.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008786/0.1661, allocations: 375.7 kB / 399.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.743e-06/0.1661, allocations: 0 / 399.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001089/0.1672, allocations: 477 kB / 399.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.1672, allocations: 8 kB / 399.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1673, allocations: 224 / 399.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.903e-06/0.1673, allocations: 8 kB / 399.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004959/0.1678, allocations: 115.9 kB / 399.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.1678, allocations: 7.938 kB / 399.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003246/0.1681, allocations: 35.95 kB / 399.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.027e-05/0.1682, allocations: 20 kB / 399.9 MB, free: 13.7 MB / 334.1 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.0002004/0.1684, allocations: 204.1 kB / 400.1 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.166e-05/0.1685, allocations: 39.77 kB / 400.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001281/0.1686, allocations: 52.23 kB / 400.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.1686, allocations: 7.938 kB / 400.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1686, allocations: 0 / 400.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.1686, allocations: 0 / 400.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001907/0.1705, allocations: 0.9186 MB / 401.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.1706, allocations: 0 / 401.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004477/0.171, allocations: 92 kB / 401.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/0.171, allocations: 0 / 401.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.026e-05/0.1711, allocations: 8 kB / 401.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.1711, allocations: 4 kB / 401.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1711, allocations: 0 / 401.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001597/0.1727, allocations: 0.6788 MB / 401.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001493/0.1728, allocations: 140.8 kB / 402 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.813e-05/0.1729, allocations: 8 kB / 402 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003056/0.1732, allocations: 35.89 kB / 402.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.517e-05/0.1733, allocations: 27.95 kB / 402.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.1733, allocations: 16 kB / 402.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003133/0.1737, allocations: 251.1 kB / 402.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1737, allocations: 0 / 402.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006109/0.1743, allocations: 139.9 kB / 402.5 MB, free: 10.97 MB / 334.1 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.0001808/0.1745, allocations: 107.7 kB / 402.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002259/0.1767, allocations: 0.6909 MB / 403.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/0.1768, allocations: 4 kB / 403.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005112/0.1773, allocations: 184.4 kB / 403.5 MB, free: 9.977 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006676/0.178, allocations: 101.6 kB / 403.6 MB, free: 9.879 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.1801, allocations: 1.009 MB / 404.6 MB, free: 8.832 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006003/0.1807, allocations: 0.8234 MB / 405.4 MB, free: 7.984 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002865/0.181, allocations: 63.23 kB / 405.5 MB, free: 7.922 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.1811, allocations: 31.44 kB / 405.5 MB, free: 7.895 MB / 334.1 MB Notification: Performance of SimCode: time 1.443e-06/0.1811, allocations: 0 / 405.5 MB, free: 7.895 MB / 334.1 MB Notification: Performance of Templates: time 0.01151/0.1926, allocations: 4.728 MB / 410.2 MB, free: 3.16 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.448701526969671]