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.001581/0.001581, allocations: 123.4 kB / 17.79 MB, free: 5.246 MB / 14.72 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.002079/0.002079, allocations: 208.3 kB / 20.75 MB, free: 2.297 MB / 14.72 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.533/1.533, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 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 0.001645/0.001645, allocations: 51.92 kB / 373.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1151, allocations: 53.33 MB / 426.8 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005114/0.1202, allocations: 3.13 MB / 429.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002104/0.1223, allocations: 1.009 MB / 430.9 MB, free: 132 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002638/0.1226, allocations: 19.88 kB / 431 MB, free: 112 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004007/0.123, allocations: 83.17 kB / 431 MB, free: 28 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2212/0.3442, allocations: 100.8 kB / 431.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008013/0.345, allocations: 229.6 kB / 431.4 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006661/0.3456, allocations: 0.5159 MB / 431.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002939/0.3459, allocations: 122.2 kB / 432 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002416/0.3462, allocations: 210.9 kB / 432.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002421/0.3464, allocations: 201.5 kB / 432.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.479e-05/0.3465, allocations: 40.91 kB / 432.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.025e-05/0.3466, allocations: 41.19 kB / 432.5 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.3467, allocations: 105.6 kB / 432.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001637/0.3468, allocations: 219.9 kB / 432.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000529/0.3474, allocations: 0.4928 MB / 433.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3474, allocations: 1.094 kB / 433.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3474, allocations: 0 / 433.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.3474, allocations: 2 kB / 433.3 MB, free: 7.805 MB / 350.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.001308/0.3487, allocations: 0.7775 MB / 434.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.3487, allocations: 12.33 kB / 434.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.3488, allocations: 54.11 kB / 434.1 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004655/0.3493, allocations: 374.1 kB / 434.5 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.625e-05/0.3493, allocations: 27.97 kB / 434.5 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.836e-05/0.3494, allocations: 37.94 kB / 434.6 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009399/0.3503, allocations: 455.4 kB / 435 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.463e-05/0.3504, allocations: 9.078 kB / 435 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.963e-05/0.3504, allocations: 17.55 kB / 435 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.3504, allocations: 13.22 kB / 435 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.3515, allocations: 374.1 kB / 435.4 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002103/0.3536, allocations: 1.572 MB / 437 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008854/0.3545, allocations: 292.7 kB / 437.3 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004797/0.355, allocations: 161.6 kB / 437.4 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.378e-05/0.355, allocations: 4.125 kB / 437.4 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.3551, allocations: 44.45 kB / 437.5 MB, free: 5.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.563e-06/0.3551, allocations: 0 / 437.5 MB, free: 5.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003443/0.3585, allocations: 1.387 MB / 438.9 MB, free: 5.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.771e-05/0.3586, allocations: 106.5 kB / 439 MB, free: 5.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004138/0.359, allocations: 364.2 kB / 439.3 MB, free: 4.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.359, allocations: 30.95 kB / 439.4 MB, free: 4.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.3591, allocations: 245.2 kB / 439.6 MB, free: 4.594 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.159e-05/0.3592, allocations: 118.9 kB / 439.7 MB, free: 4.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.3594, allocations: 79.72 kB / 439.8 MB, free: 4.457 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.3595, allocations: 353.2 kB / 440.1 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005405/0.36, allocations: 169.4 kB / 440.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005378/0.3605, allocations: 254 kB / 440.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009544/0.3615, allocations: 389.7 kB / 440.9 MB, free: 3.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.3615, allocations: 5.812 kB / 440.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001196/0.3627, allocations: 0.4916 MB / 441.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.3627, allocations: 5.75 kB / 441.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.3627, allocations: 2.125 kB / 441.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.571e-05/0.3628, allocations: 4.906 kB / 441.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.3638, allocations: 210.3 kB / 441.6 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001595/0.3654, allocations: 1.568 MB / 443.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003852/0.3658, allocations: 43.12 kB / 443.2 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.108e-05/0.3658, allocations: 13.05 kB / 443.3 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005659/0.3664, allocations: 274.4 kB / 443.5 MB, free: 1.938 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004794/0.3668, allocations: 240.7 kB / 443.8 MB, free: 1.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008402/0.3677, allocations: 375.3 kB / 444.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.784e-06/0.3677, allocations: 1.062 kB / 444.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001103/0.3688, allocations: 475.2 kB / 444.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.3688, allocations: 6.891 kB / 444.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.3688, allocations: 2.844 kB / 444.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.113e-06/0.3688, allocations: 5.359 kB / 444.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005536/0.3694, allocations: 120.3 kB / 444.7 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.3694, allocations: 11.5 kB / 444.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/0.3697, allocations: 37.53 kB / 444.8 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.759e-05/0.3697, allocations: 14.34 kB / 444.8 MB, free: 1.418 MB / 350.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.00014/0.3699, allocations: 210.7 kB / 445 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.802e-05/0.37, allocations: 43 kB / 445 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.3701, allocations: 46.22 kB / 445.1 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.3701, allocations: 8.031 kB / 445.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.3701, allocations: 0 / 445.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.3701, allocations: 3.234 kB / 445.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/0.3721, allocations: 0.9175 MB / 446 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.3721, allocations: 1.219 kB / 446 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005067/0.3726, allocations: 86.06 kB / 446.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.3726, allocations: 2.219 kB / 446.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.976e-05/0.3727, allocations: 8.156 kB / 446.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/0.3727, allocations: 3.672 kB / 446.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.3727, allocations: 2.812 kB / 446.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.3743, allocations: 0.677 MB / 446.8 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.3744, allocations: 136.6 kB / 446.9 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.221e-05/0.3744, allocations: 12.23 kB / 446.9 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000322/0.3748, allocations: 32.48 kB / 447 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.134e-05/0.3748, allocations: 22.91 kB / 447 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/0.3749, allocations: 12.22 kB / 447 MB, free: 128 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002932/0.3752, allocations: 249.1 kB / 447.2 MB, free: 0 / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3752, allocations: 0 / 447.2 MB, free: 0 / 350.1 MB Notification: Performance of remove unused functions: time 0.0006742/0.3758, allocations: 138 kB / 447.4 MB, free: 0 / 350.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.0001804/0.376, allocations: 115.5 kB / 447.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002125/0.3781, allocations: 0.6567 MB / 448.2 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3781, allocations: 1.156 kB / 448.2 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005361/0.3787, allocations: 172.6 kB / 448.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007517/0.3794, allocations: 107.1 kB / 448.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.3816, allocations: 1.017 MB / 449.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005357/0.3822, allocations: 0.82 MB / 450.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002654/0.3824, allocations: 64.25 kB / 450.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.3825, allocations: 31.22 kB / 450.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3826, allocations: 0 / 450.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of Templates: time 0.01174/0.3943, allocations: 4.755 MB / 455.1 MB, free: 13.25 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] 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.959901120513678]