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.001354/0.001354, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001563/0.001563, allocations: 170.6 kB / 24.91 MB, free: 8.723 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 0.9483/0.9483, allocations: 177.1 MB / 205.3 MB, free: 5.109 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.232e-06/1.232e-06, allocations: 0 / 273.4 MB, free: 1.199 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.994e-05/2.117e-05, allocations: 5.266 kB / 273.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.006846/0.006867, allocations: 3.037 MB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007688/0.01455, allocations: 1.004 MB / 277.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001882/0.01474, allocations: 19.88 kB / 277.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003051/0.01505, allocations: 91.05 kB / 277.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002218/0.01527, allocations: 115.1 kB / 277.7 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004547/0.01572, allocations: 231.5 kB / 277.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004453/0.01617, allocations: 0.5261 MB / 278.5 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.01637, allocations: 126.3 kB / 278.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006276/0.02265, allocations: 287.3 kB / 278.9 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.02284, allocations: 155.5 kB / 279 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.076e-05/0.02289, allocations: 40 kB / 279 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.787e-05/0.02294, allocations: 44 kB / 279.1 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.941e-05/0.02303, allocations: 103.6 kB / 279.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.02315, allocations: 143.6 kB / 279.3 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003593/0.02351, allocations: 346.6 kB / 279.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.02351, allocations: 0 / 279.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.02352, allocations: 0 / 279.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.02352, allocations: 0 / 279.7 MB, free: 10.93 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.0007575/0.02428, allocations: 0.6516 MB / 280.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.02431, allocations: 16.02 kB / 280.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.431e-05/0.02439, allocations: 68.83 kB / 280.4 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003248/0.02472, allocations: 269.5 kB / 280.7 MB, free: 9.875 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.854e-05/0.02475, allocations: 29.38 kB / 280.7 MB, free: 9.848 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.315e-05/0.0248, allocations: 36.38 kB / 280.7 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004181/0.02522, allocations: 398.7 kB / 281.1 MB, free: 9.379 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.02523, allocations: 8.141 kB / 281.1 MB, free: 9.371 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.02526, allocations: 20.38 kB / 281.1 MB, free: 9.352 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.02527, allocations: 11.94 kB / 281.2 MB, free: 9.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006194/0.03146, allocations: 121.6 kB / 281.3 MB, free: 9.219 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/0.03278, allocations: 1.097 MB / 282.4 MB, free: 8.066 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003001/0.03308, allocations: 208.2 kB / 282.6 MB, free: 7.848 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.145e-05/0.03315, allocations: 44.84 kB / 282.6 MB, free: 7.801 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.03318, allocations: 8 kB / 282.6 MB, free: 7.793 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.0332, allocations: 34.56 kB / 282.7 MB, free: 7.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.174e-06/0.03321, allocations: 0 / 282.7 MB, free: 7.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.00095/0.03416, allocations: 0.6408 MB / 283.3 MB, free: 7.051 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.0342, allocations: 110.8 kB / 283.4 MB, free: 6.918 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003221/0.03742, allocations: 311.3 kB / 283.7 MB, free: 6.602 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.03745, allocations: 29.7 kB / 283.7 MB, free: 6.566 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.03755, allocations: 209.2 kB / 284 MB, free: 6.355 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.537e-05/0.03763, allocations: 126.9 kB / 284.1 MB, free: 6.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.03773, allocations: 70.17 kB / 284.1 MB, free: 6.156 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.03783, allocations: 370.7 kB / 284.5 MB, free: 5.785 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.384e-05/0.03792, allocations: 45.67 kB / 284.6 MB, free: 5.738 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/0.03807, allocations: 185.7 kB / 284.7 MB, free: 5.508 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.03828, allocations: 197.6 kB / 284.9 MB, free: 5.285 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.03828, allocations: 0 / 284.9 MB, free: 5.285 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0003005/0.03858, allocations: 224.2 kB / 285.1 MB, free: 5.059 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.0386, allocations: 8 kB / 285.2 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.361e-06/0.0386, allocations: 0 / 285.2 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.03862, allocations: 11.94 kB / 285.2 MB, free: 5.039 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004616/0.03908, allocations: 164 kB / 285.3 MB, free: 4.879 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000749/0.03983, allocations: 1.239 MB / 286.6 MB, free: 3.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001668/0.04, allocations: 40.09 kB / 286.6 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.914e-05/0.04002, allocations: 12 kB / 286.6 MB, free: 3.508 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001333/0.04015, allocations: 130.7 kB / 286.7 MB, free: 3.375 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001452/0.04029, allocations: 185.8 kB / 286.9 MB, free: 3.148 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001929/0.04049, allocations: 186.5 kB / 287.1 MB, free: 2.938 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.522e-06/0.04049, allocations: 4.031 kB / 287.1 MB, free: 2.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0002782/0.04077, allocations: 220.1 kB / 287.3 MB, free: 2.711 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.824e-06/0.04077, allocations: 4 kB / 287.3 MB, free: 2.707 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.04078, allocations: 4 kB / 287.3 MB, free: 2.703 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.781e-06/0.04078, allocations: 4 kB / 287.3 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.04099, allocations: 111.8 kB / 287.4 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.487e-06/0.041, allocations: 4.219 kB / 287.4 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.0411, allocations: 31.98 kB / 287.5 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.04111, allocations: 12 kB / 287.5 MB, free: 2.543 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 8.966e-05/0.0412, allocations: 196.2 kB / 287.7 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.821e-05/0.04124, allocations: 35.91 kB / 287.7 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.264e-05/0.04128, allocations: 48.09 kB / 287.8 MB, free: 2.262 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.04129, allocations: 7.984 kB / 287.8 MB, free: 2.254 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.04129, allocations: 3.984 kB / 287.8 MB, free: 2.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.04129, allocations: 0 / 287.8 MB, free: 2.25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000502/0.0418, allocations: 0.4972 MB / 288.3 MB, free: 1.719 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.0418, allocations: 0 / 288.3 MB, free: 1.719 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.04197, allocations: 75.89 kB / 288.3 MB, free: 1.645 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.04197, allocations: 4 kB / 288.4 MB, free: 1.641 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.04199, allocations: 8 kB / 288.4 MB, free: 1.633 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.04199, allocations: 3.938 kB / 288.4 MB, free: 1.629 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.04199, allocations: 4 kB / 288.4 MB, free: 1.625 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002787/0.04227, allocations: 394.7 kB / 288.8 MB, free: 1.211 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.0424, allocations: 39.77 kB / 288.8 MB, free: 1.172 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.788e-05/0.04242, allocations: 11.98 kB / 288.8 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.04253, allocations: 19.98 kB / 288.8 MB, free: 1.141 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.582e-05/0.04257, allocations: 24.19 kB / 288.8 MB, free: 1.117 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.04258, allocations: 11.94 kB / 288.9 MB, free: 1.105 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.142e-05/0.04267, allocations: 116.7 kB / 289 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04267, allocations: 0 / 289 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002802/0.04295, allocations: 132 kB / 289.1 MB, free: 0.8594 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 9.25e-05/0.04304, allocations: 96.34 kB / 289.2 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004349/0.04347, allocations: 340.8 kB / 289.5 MB, free: 432 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.04348, allocations: 8 kB / 289.5 MB, free: 424 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.04359, allocations: 84.91 kB / 289.6 MB, free: 336 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.04393, allocations: 106 kB / 289.7 MB, free: 232 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08724/0.1312, allocations: 0.8011 MB / 290.5 MB, free: 25.06 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.173e-05/0.1312, allocations: 112.3 kB / 290.6 MB, free: 24.98 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002009/0.1314, allocations: 47.77 kB / 290.7 MB, free: 24.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001861/0.1316, allocations: 128.2 kB / 290.8 MB, free: 24.94 MB / 266.7 MB Notification: Performance of SimCode: time 1.292e-06/0.1316, allocations: 0.7188 kB / 290.8 MB, free: 24.94 MB / 266.7 MB Notification: Performance of Templates: time 0.0078/0.1394, allocations: 5.188 MB / 296 MB, free: 24.54 MB / 266.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.7319650589488447]