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.001423/0.001423, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001198/0.001198, allocations: 165.8 kB / 24.82 MB, free: 9.266 MB / 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.009/1.009, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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.453e-06/1.453e-06, allocations: 0 / 273.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.202e-05/2.347e-05, allocations: 2.312 kB / 273.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003617/0.00364, allocations: 3.042 MB / 276.4 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001664/0.005305, allocations: 0.9775 MB / 277.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002746/0.005579, allocations: 15.88 kB / 277.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003162/0.005895, allocations: 87.17 kB / 277.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002336/0.006129, allocations: 111 kB / 277.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000483/0.006612, allocations: 231.5 kB / 277.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004935/0.007105, allocations: 0.5338 MB / 278.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.007327, allocations: 113.7 kB / 278.5 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003061/0.007633, allocations: 279.4 kB / 278.8 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001759/0.007809, allocations: 163.4 kB / 278.9 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.839e-05/0.007857, allocations: 40 kB / 279 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.536e-05/0.007902, allocations: 44 kB / 279 MB, free: 11.63 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.011e-05/0.007982, allocations: 103.6 kB / 279.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.713e-05/0.00808, allocations: 143.6 kB / 279.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003581/0.008438, allocations: 342.6 kB / 279.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.00844, allocations: 0 / 279.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.008441, allocations: 0 / 279.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.008447, allocations: 0 / 279.6 MB, free: 11.05 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.0007758/0.009223, allocations: 0.788 MB / 280.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.009262, allocations: 12.03 kB / 280.4 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.765e-05/0.00935, allocations: 80.61 kB / 280.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/0.009673, allocations: 316.2 kB / 280.8 MB, free: 9.801 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.009703, allocations: 29.38 kB / 280.8 MB, free: 9.773 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.245e-05/0.009756, allocations: 44.36 kB / 280.8 MB, free: 9.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003973/0.01015, allocations: 402.5 kB / 281.2 MB, free: 9.285 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.01017, allocations: 4.141 kB / 281.2 MB, free: 9.281 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.382e-05/0.0102, allocations: 16.31 kB / 281.2 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.01021, allocations: 19.94 kB / 281.3 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000166/0.01037, allocations: 126.8 kB / 281.4 MB, free: 9.121 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.01191, allocations: 1.537 MB / 282.9 MB, free: 7.516 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002938/0.0122, allocations: 171.3 kB / 283.1 MB, free: 7.332 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.306e-05/0.01227, allocations: 63.64 kB / 283.2 MB, free: 7.266 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.0123, allocations: 4 kB / 283.2 MB, free: 7.262 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.01232, allocations: 41.39 kB / 283.2 MB, free: 7.211 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.212e-06/0.01232, allocations: 0 / 283.2 MB, free: 7.211 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.0008381/0.01316, allocations: 0.6729 MB / 283.9 MB, free: 6.473 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/0.01321, allocations: 118.8 kB / 284 MB, free: 6.332 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002087/0.01342, allocations: 362.5 kB / 284.3 MB, free: 5.961 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.01344, allocations: 33.7 kB / 284.4 MB, free: 5.922 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.01357, allocations: 287.2 kB / 284.7 MB, free: 5.637 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.453e-05/0.01363, allocations: 126.9 kB / 284.8 MB, free: 5.512 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.031e-05/0.01372, allocations: 91.75 kB / 284.9 MB, free: 5.414 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.01386, allocations: 0.5195 MB / 285.4 MB, free: 4.883 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.229e-05/0.01393, allocations: 53.64 kB / 285.4 MB, free: 4.828 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.01408, allocations: 220.9 kB / 285.7 MB, free: 4.551 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.01427, allocations: 217.5 kB / 285.9 MB, free: 4.301 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.01427, allocations: 0 / 285.9 MB, free: 4.301 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000303/0.01458, allocations: 281.1 kB / 286.1 MB, free: 4.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.0146, allocations: 14.56 kB / 286.2 MB, free: 4.008 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.0146, allocations: 3.938 kB / 286.2 MB, free: 4.004 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.01462, allocations: 4 kB / 286.2 MB, free: 4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003672/0.01498, allocations: 163.8 kB / 286.3 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008562/0.01584, allocations: 1.818 MB / 288.1 MB, free: 1.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001494/0.01599, allocations: 31.97 kB / 288.2 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.01601, allocations: 12 kB / 288.2 MB, free: 1.867 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001342/0.01614, allocations: 179.8 kB / 288.4 MB, free: 1.688 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001332/0.01627, allocations: 228.7 kB / 288.6 MB, free: 1.406 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001788/0.01645, allocations: 221.5 kB / 288.8 MB, free: 1.152 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.493e-06/0.01646, allocations: 0 / 288.8 MB, free: 1.152 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0002787/0.01673, allocations: 281.2 kB / 289.1 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/0.01674, allocations: 8 kB / 289.1 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.01675, allocations: 0 / 289.1 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.771e-06/0.01675, allocations: 4 kB / 289.1 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002301/0.01698, allocations: 107.9 kB / 289.2 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.01699, allocations: 7.938 kB / 289.2 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.01711, allocations: 23.98 kB / 289.2 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.01713, allocations: 19.97 kB / 289.2 MB, free: 0.7031 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 (PI.I.local_reset,integrator.local_reset,kinematicPTP.noWphase) * 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.0004666/0.0176, allocations: 300 kB / 289.5 MB, free: 412 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.365e-05/0.01765, allocations: 47.77 kB / 289.6 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.12e-05/0.0177, allocations: 40.09 kB / 289.6 MB, free: 324 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.01771, allocations: 4 kB / 289.6 MB, free: 320 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.01771, allocations: 0 / 289.6 MB, free: 320 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.01771, allocations: 0 / 289.6 MB, free: 320 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006226/0.01834, allocations: 0.606 MB / 290.2 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.01834, allocations: 4 kB / 290.2 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001825/0.01852, allocations: 80.02 kB / 290.3 MB, free: 15.58 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.01852, allocations: 4 kB / 290.3 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.01854, allocations: 4 kB / 290.3 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.01854, allocations: 7.938 kB / 290.3 MB, free: 15.56 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.01854, allocations: 0 / 290.3 MB, free: 15.56 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003435/0.01889, allocations: 439.3 kB / 290.8 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.98e-05/0.01898, allocations: 59.72 kB / 290.8 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.01901, allocations: 8 kB / 290.8 MB, free: 15.03 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/0.01912, allocations: 35.91 kB / 290.9 MB, free: 15 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.424e-05/0.01918, allocations: 27.89 kB / 290.9 MB, free: 14.97 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-06/0.01919, allocations: 4 kB / 290.9 MB, free: 14.96 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001209/0.01931, allocations: 235 kB / 291.1 MB, free: 14.73 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01931, allocations: 0 / 291.1 MB, free: 14.73 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003634/0.01967, allocations: 132 kB / 291.3 MB, free: 14.61 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.0001033/0.01977, allocations: 111.1 kB / 291.4 MB, free: 14.48 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005125/0.02029, allocations: 369.4 kB / 291.7 MB, free: 14.12 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.02029, allocations: 0 / 291.7 MB, free: 14.12 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.466e-05/0.02038, allocations: 92.59 kB / 291.8 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004065/0.02079, allocations: 114 kB / 291.9 MB, free: 13.91 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.0221, allocations: 0.8829 MB / 292.8 MB, free: 12.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.301e-05/0.02217, allocations: 117.7 kB / 292.9 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001594/0.02233, allocations: 47.25 kB / 293 MB, free: 12.8 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.02253, allocations: 158.1 kB / 293.1 MB, free: 12.64 MB / 282.7 MB Notification: Performance of SimCode: time 8.32e-07/0.02253, allocations: 0 / 293.1 MB, free: 12.64 MB / 282.7 MB Notification: Performance of Templates: time 0.007977/0.03051, allocations: 5.258 MB / 298.4 MB, free: 7.488 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","",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.8427742780186236]