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.001888/0.001888, allocations: 78.56 kB / 20.68 MB, free: 1.039 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.001745/0.001745, allocations: 153.5 kB / 23.94 MB, free: 4.176 MB / 14.72 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 2.081/2.081, allocations: 173.3 MB / 200.4 MB, free: 12.87 MB / 190.1 MB " [Timeout remaining time 178] 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 1.212e-06/1.212e-06, allocations: 0 / 318.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.622e-05/2.743e-05, allocations: 7.734 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003872/0.003899, allocations: 2.898 MB / 321.8 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.005663, allocations: 0.9412 MB / 322.7 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002334/0.005896, allocations: 17.69 kB / 322.8 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003546/0.006251, allocations: 92.02 kB / 322.9 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002449/0.006496, allocations: 116 kB / 323 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005549/0.00705, allocations: 232.7 kB / 323.2 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005194/0.00757, allocations: 0.5324 MB / 323.7 MB, free: 420 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002465/0.007816, allocations: 119.4 kB / 323.8 MB, free: 356 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000318/0.008134, allocations: 280.2 kB / 324.1 MB, free: 228 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002312/0.008366, allocations: 159.5 kB / 324.3 MB, free: 164 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.933e-05/0.008445, allocations: 41.25 kB / 324.3 MB, free: 164 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.972e-05/0.008515, allocations: 45.25 kB / 324.4 MB, free: 160 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.008622, allocations: 107.7 kB / 324.5 MB, free: 88 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001466/0.008769, allocations: 136.8 kB / 324.6 MB, free: 20 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000703/0.009472, allocations: 0.509 MB / 325.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.009476, allocations: 2.297 kB / 325.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.009477, allocations: 1.094 kB / 325.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.009491, allocations: 0 / 325.1 MB, free: 15.79 MB / 302.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.001575/0.01107, allocations: 0.6994 MB / 325.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.01111, allocations: 10.41 kB / 325.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.01122, allocations: 53.2 kB / 325.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006503/0.01187, allocations: 305 kB / 326.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.792e-05/0.01191, allocations: 28.31 kB / 326.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.019e-05/0.012, allocations: 40.7 kB / 326.2 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.01309, allocations: 474.6 kB / 326.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.317e-05/0.01312, allocations: 6 kB / 326.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.689e-05/0.01319, allocations: 16.19 kB / 326.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/0.01321, allocations: 13.14 kB / 326.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001238/0.01445, allocations: 373.8 kB / 327.1 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.01677, allocations: 1.358 MB / 328.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008987/0.01767, allocations: 307.4 kB / 328.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004678/0.01814, allocations: 156.1 kB / 328.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.894e-05/0.01816, allocations: 3.969 kB / 328.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.0182, allocations: 45.72 kB / 329 MB, free: 13.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.454e-06/0.0182, allocations: 0 / 329 MB, free: 13.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003673/0.02188, allocations: 1.229 MB / 330.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.44e-05/0.02194, allocations: 81.61 kB / 330.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004423/0.02238, allocations: 340.8 kB / 330.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.874e-05/0.02242, allocations: 31.05 kB / 330.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000244/0.02267, allocations: 246.7 kB / 330.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.02279, allocations: 122.7 kB / 331 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.02294, allocations: 79.17 kB / 331.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.02312, allocations: 352.3 kB / 331.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005137/0.02363, allocations: 169.7 kB / 331.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005739/0.0242, allocations: 276.4 kB / 331.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.02524, allocations: 393.5 kB / 332.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.02525, allocations: 5 kB / 332.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001202/0.02645, allocations: 497.2 kB / 332.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.02647, allocations: 5.781 kB / 332.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.02648, allocations: 6.219 kB / 332.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.221e-05/0.0265, allocations: 7.578 kB / 332.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009523/0.02745, allocations: 206.3 kB / 332.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001878/0.02933, allocations: 1.446 MB / 334.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004214/0.02975, allocations: 38.11 kB / 334.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.655e-05/0.02979, allocations: 15.5 kB / 334.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006421/0.03043, allocations: 268.5 kB / 334.7 MB, free: 9.477 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005382/0.03097, allocations: 271 kB / 335 MB, free: 9.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009194/0.03189, allocations: 367.7 kB / 335.3 MB, free: 9.043 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.847e-06/0.03189, allocations: 7.922 kB / 335.3 MB, free: 9.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001126/0.03302, allocations: 476.5 kB / 335.8 MB, free: 8.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.03303, allocations: 5.5 kB / 335.8 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.03304, allocations: 2.75 kB / 335.8 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.623e-06/0.03304, allocations: 4.125 kB / 335.8 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005256/0.03357, allocations: 118.7 kB / 335.9 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.03358, allocations: 8.125 kB / 335.9 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003527/0.03393, allocations: 36.41 kB / 336 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.414e-05/0.03396, allocations: 22.97 kB / 336 MB, free: 8.727 MB / 302.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.0002263/0.03419, allocations: 202.9 kB / 336.2 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.446e-05/0.03428, allocations: 38.27 kB / 336.2 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001178/0.0344, allocations: 44.97 kB / 336.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.03441, allocations: 3.281 kB / 336.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-06/0.03441, allocations: 4 kB / 336.3 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.03442, allocations: 5.094 kB / 336.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00179/0.03621, allocations: 0.7893 MB / 337.1 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.03621, allocations: 1.406 kB / 337.1 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004265/0.03664, allocations: 85.86 kB / 337.2 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.383e-06/0.03665, allocations: 6.594 kB / 337.2 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.74e-05/0.03668, allocations: 12.06 kB / 337.2 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.03668, allocations: 1.25 kB / 337.2 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.03668, allocations: 1.656 kB / 337.2 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001566/0.03825, allocations: 0.6701 MB / 337.8 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.0384, allocations: 66.67 kB / 337.9 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.03845, allocations: 10.48 kB / 337.9 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000313/0.03877, allocations: 30.5 kB / 338 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.436e-05/0.03886, allocations: 24.2 kB / 338 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.573e-05/0.03889, allocations: 11.91 kB / 338 MB, free: 7.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003177/0.0392, allocations: 233.8 kB / 338.2 MB, free: 7.191 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.0392, allocations: 0 / 338.2 MB, free: 7.191 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006432/0.03985, allocations: 142.2 kB / 338.4 MB, free: 7.168 MB / 302.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.0001554/0.04, allocations: 112.8 kB / 338.5 MB, free: 7.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00209/0.04209, allocations: 0.6504 MB / 339.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.0421, allocations: 3.938 kB / 339.1 MB, free: 6.781 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004874/0.04258, allocations: 176.9 kB / 339.3 MB, free: 6.672 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006748/0.04326, allocations: 104.9 kB / 339.4 MB, free: 6.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.04503, allocations: 0.8866 MB / 340.3 MB, free: 5.641 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002217/0.04526, allocations: 220.2 kB / 340.5 MB, free: 5.406 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002302/0.04549, allocations: 63.17 kB / 340.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.04559, allocations: 32.5 kB / 340.6 MB, free: 5.316 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.04559, allocations: 0 / 340.6 MB, free: 5.316 MB / 302.1 MB Notification: Performance of Templates: time 0.01063/0.05622, allocations: 4.828 MB / 345.4 MB, free: 0.5703 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 5.110065367072821]