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.001057/0.001057, allocations: 78.28 kB / 21.42 MB, free: 3.078 MB / 18.57 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.001122/0.001122, allocations: 147.9 kB / 24.81 MB, free: 9.285 MB / 18.57 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 0.9009/0.9009, allocations: 173.3 MB / 201.4 MB, free: 9.199 MB / 186.7 MB " [Timeout remaining time 179] 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.893e-06/1.893e-06, allocations: 0 / 268.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.498e-05/2.687e-05, allocations: 10.25 kB / 268.4 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.01175/0.01178, allocations: 3.024 MB / 271.4 MB, free: 3.137 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.01387, allocations: 0.9465 MB / 272.4 MB, free: 2.188 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001989/0.01586, allocations: 15.88 kB / 272.4 MB, free: 2.172 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003449/0.0162, allocations: 91.16 kB / 272.5 MB, free: 2.082 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002411/0.01644, allocations: 122.9 kB / 272.6 MB, free: 1.961 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004484/0.01689, allocations: 227.5 kB / 272.8 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004345/0.01733, allocations: 0.5339 MB / 273.3 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001903/0.01752, allocations: 113.7 kB / 273.5 MB, free: 1.09 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002631/0.01778, allocations: 291.3 kB / 273.7 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001763/0.01796, allocations: 151.5 kB / 273.9 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.772e-05/0.01801, allocations: 44 kB / 273.9 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.236e-05/0.01805, allocations: 40 kB / 274 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.117e-05/0.01813, allocations: 111.6 kB / 274.1 MB, free: 476 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.281e-05/0.01822, allocations: 135.6 kB / 274.2 MB, free: 340 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003191/0.01854, allocations: 350.6 kB / 274.6 MB, free: 15.99 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.01854, allocations: 0 / 274.6 MB, free: 15.99 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.01854, allocations: 0 / 274.6 MB, free: 15.99 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.01855, allocations: 0 / 274.6 MB, free: 15.99 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.0007291/0.01928, allocations: 0.7802 MB / 275.3 MB, free: 15.17 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.01931, allocations: 12.03 kB / 275.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.54e-05/0.01939, allocations: 80.61 kB / 275.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002942/0.01968, allocations: 320.2 kB / 275.7 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.816e-05/0.01971, allocations: 29.38 kB / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.413e-05/0.01976, allocations: 36.38 kB / 275.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004098/0.02017, allocations: 380.7 kB / 276.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.02018, allocations: 0 / 276.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/0.0202, allocations: 16 kB / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.02021, allocations: 8 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001652/0.02038, allocations: 134.7 kB / 276.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.0216, allocations: 1.537 MB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/0.02186, allocations: 174.2 kB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.386e-05/0.02192, allocations: 55.66 kB / 278.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.299e-05/0.02194, allocations: 8 kB / 278.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.984e-05/0.02196, allocations: 33.39 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.643e-06/0.02197, allocations: 0 / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.0008205/0.02279, allocations: 0.6972 MB / 278.8 MB, free: 11.44 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/0.02282, allocations: 81.11 kB / 278.9 MB, free: 11.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.02302, allocations: 366.5 kB / 279.3 MB, free: 10.97 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.02304, allocations: 33.7 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.02316, allocations: 295.2 kB / 279.6 MB, free: 10.63 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.766e-05/0.02322, allocations: 118.9 kB / 279.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.832e-05/0.02329, allocations: 83.81 kB / 279.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.02343, allocations: 0.5234 MB / 280.3 MB, free: 9.891 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.808e-05/0.02349, allocations: 61.58 kB / 280.4 MB, free: 9.828 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.02361, allocations: 183.4 kB / 280.5 MB, free: 9.598 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000182/0.0238, allocations: 209.5 kB / 280.8 MB, free: 9.355 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.0238, allocations: 0 / 280.8 MB, free: 9.355 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002776/0.02407, allocations: 293.2 kB / 281 MB, free: 9.062 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.02409, allocations: 4 kB / 281 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.02409, allocations: 4 kB / 281 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.02411, allocations: 4 kB / 281 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003475/0.02445, allocations: 167.7 kB / 281.2 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007531/0.02521, allocations: 1.822 MB / 283 MB, free: 6.957 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/0.02533, allocations: 35.91 kB / 283.1 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.02535, allocations: 12 kB / 283.1 MB, free: 6.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000114/0.02546, allocations: 183.9 kB / 283.3 MB, free: 6.727 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001099/0.02557, allocations: 187.5 kB / 283.4 MB, free: 6.496 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001614/0.02573, allocations: 205.2 kB / 283.6 MB, free: 6.258 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.082e-06/0.02573, allocations: 0 / 283.6 MB, free: 6.258 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0002428/0.02598, allocations: 289.2 kB / 283.9 MB, free: 5.969 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.163e-06/0.02598, allocations: 4 kB / 283.9 MB, free: 5.965 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/0.02599, allocations: 4 kB / 283.9 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.187e-06/0.02599, allocations: 4 kB / 283.9 MB, free: 5.957 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000205/0.0262, allocations: 111.8 kB / 284 MB, free: 5.848 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.627e-06/0.0262, allocations: 4 kB / 284.1 MB, free: 5.844 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.0263, allocations: 24.2 kB / 284.1 MB, free: 5.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.02631, allocations: 19.98 kB / 284.1 MB, free: 5.801 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.0001096/0.02642, allocations: 291.9 kB / 284.4 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.405e-05/0.02647, allocations: 47.77 kB / 284.4 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.43e-05/0.02651, allocations: 48.08 kB / 284.5 MB, free: 5.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.02651, allocations: 4 kB / 284.5 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.02652, allocations: 0 / 284.5 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.02652, allocations: 4 kB / 284.5 MB, free: 5.402 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005476/0.02707, allocations: 0.6138 MB / 285.1 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.02707, allocations: 0 / 285.1 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.02725, allocations: 75.89 kB / 285.2 MB, free: 4.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.02725, allocations: 4 kB / 285.2 MB, free: 4.664 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.02726, allocations: 4 kB / 285.2 MB, free: 4.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.02726, allocations: 8 kB / 285.2 MB, free: 4.652 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.02727, allocations: 3.938 kB / 285.2 MB, free: 4.648 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003157/0.02758, allocations: 443.2 kB / 285.6 MB, free: 4.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.343e-05/0.02765, allocations: 55.73 kB / 285.7 MB, free: 4.125 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.424e-05/0.02768, allocations: 12.03 kB / 285.7 MB, free: 4.113 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.02778, allocations: 23.97 kB / 285.7 MB, free: 4.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.568e-05/0.02783, allocations: 27.89 kB / 285.7 MB, free: 4.062 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.02784, allocations: 8 kB / 285.7 MB, free: 4.055 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001055/0.02795, allocations: 235 kB / 286 MB, free: 3.828 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02795, allocations: 0 / 286 MB, free: 3.828 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003131/0.02826, allocations: 136 kB / 286.1 MB, free: 3.695 MB / 266.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 7.892e-05/0.02834, allocations: 103.2 kB / 286.2 MB, free: 3.586 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005058/0.02884, allocations: 361.3 kB / 286.6 MB, free: 3.223 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.02885, allocations: 0 / 286.6 MB, free: 3.223 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.371e-05/0.02893, allocations: 92.27 kB / 286.7 MB, free: 3.129 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.02928, allocations: 112.4 kB / 286.8 MB, free: 3.027 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.03038, allocations: 0.8838 MB / 287.6 MB, free: 2.094 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.332e-05/0.03044, allocations: 113.7 kB / 287.8 MB, free: 1.965 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.03058, allocations: 47.23 kB / 287.8 MB, free: 1.922 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/0.03076, allocations: 158.1 kB / 288 MB, free: 1.766 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.03076, allocations: 3.938 kB / 288 MB, free: 1.762 MB / 266.7 MB Notification: Performance of Templates: time 0.09178/0.1225, allocations: 5.282 MB / 293.2 MB, free: 29.14 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] 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","",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.4680507322773337]