Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001036/0.001036, allocations: 79.73 kB / 21.97 MB, free: 2.602 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.001215/0.001215, allocations: 168.9 kB / 25.33 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.825/0.825, allocations: 158.6 MB / 187.2 MB, free: 2.535 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 251 MB, free: 3.609 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.863e-05/2.034e-05, allocations: 5.406 kB / 251 MB, free: 3.605 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.006734/0.006754, allocations: 3.074 MB / 254.1 MB, free: 0.5039 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004587/0.01134, allocations: 0.9979 MB / 255.1 MB, free: 15.5 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002088/0.01155, allocations: 23.81 kB / 255.1 MB, free: 15.47 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003224/0.01187, allocations: 87.17 kB / 255.2 MB, free: 15.39 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002372/0.01211, allocations: 118.9 kB / 255.3 MB, free: 15.27 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004557/0.01257, allocations: 231.6 kB / 255.6 MB, free: 15.04 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004893/0.01305, allocations: 0.5416 MB / 256.1 MB, free: 14.5 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002217/0.01328, allocations: 121.7 kB / 256.2 MB, free: 14.38 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003306/0.01658, allocations: 275.4 kB / 256.5 MB, free: 14.11 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.01678, allocations: 159.5 kB / 256.6 MB, free: 13.95 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.064e-05/0.01684, allocations: 40 kB / 256.7 MB, free: 13.91 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.463e-05/0.0169, allocations: 44 kB / 256.7 MB, free: 13.87 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.239e-05/0.01699, allocations: 103.6 kB / 256.8 MB, free: 13.77 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.01711, allocations: 143.6 kB / 257 MB, free: 13.62 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003825/0.0175, allocations: 350.5 kB / 257.3 MB, free: 13.28 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.0175, allocations: 4 kB / 257.3 MB, free: 13.28 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.0175, allocations: 0 / 257.3 MB, free: 13.28 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.0175, allocations: 0 / 257.3 MB, free: 13.28 MB / 250.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.0009238/0.01843, allocations: 0.7842 MB / 258.1 MB, free: 12.46 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.01846, allocations: 15.98 kB / 258.1 MB, free: 12.44 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.01858, allocations: 76.61 kB / 258.2 MB, free: 12.37 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004247/0.019, allocations: 328.2 kB / 258.5 MB, free: 12.02 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.378e-05/0.01903, allocations: 29.31 kB / 258.5 MB, free: 11.99 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.88e-05/0.01909, allocations: 44.38 kB / 258.6 MB, free: 11.95 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00354/0.02263, allocations: 389.2 kB / 259 MB, free: 11.52 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.02265, allocations: 8.078 kB / 259 MB, free: 11.52 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.066e-05/0.02268, allocations: 16.38 kB / 259 MB, free: 11.5 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.0227, allocations: 15.94 kB / 259 MB, free: 11.48 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002945/0.02299, allocations: 161.8 kB / 259.2 MB, free: 11.33 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.02462, allocations: 1.584 MB / 260.7 MB, free: 9.668 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003701/0.02499, allocations: 181.8 kB / 260.9 MB, free: 9.48 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.02511, allocations: 71.59 kB / 261 MB, free: 9.406 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/0.02513, allocations: 4 kB / 261 MB, free: 9.402 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003111/0.02825, allocations: 49.38 kB / 261 MB, free: 9.344 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.724e-06/0.02825, allocations: 0 / 261 MB, free: 9.344 MB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.001484/0.02973, allocations: 0.7794 MB / 261.8 MB, free: 8.504 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.02977, allocations: 88.98 kB / 261.9 MB, free: 8.398 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002911/0.03006, allocations: 374.7 kB / 262.3 MB, free: 8.02 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.075e-05/0.03009, allocations: 29.7 kB / 262.3 MB, free: 7.984 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001701/0.03026, allocations: 303.4 kB / 262.6 MB, free: 7.684 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.748e-05/0.03033, allocations: 115 kB / 262.7 MB, free: 7.57 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.03044, allocations: 87.84 kB / 262.8 MB, free: 7.473 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.03059, allocations: 0.5196 MB / 263.3 MB, free: 6.941 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.03072, allocations: 69.64 kB / 263.4 MB, free: 6.871 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001948/0.03091, allocations: 199.5 kB / 263.6 MB, free: 6.625 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003296/0.03421, allocations: 233.5 kB / 263.8 MB, free: 6.359 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.03421, allocations: 4.031 kB / 263.8 MB, free: 6.355 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005139/0.03472, allocations: 313 kB / 264.1 MB, free: 6.043 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.03474, allocations: 11.94 kB / 264.1 MB, free: 6.031 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.03475, allocations: 0 / 264.1 MB, free: 6.031 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.03477, allocations: 4 kB / 264.1 MB, free: 6.027 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005009/0.03527, allocations: 168 kB / 264.3 MB, free: 5.863 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.0365, allocations: 1.841 MB / 266.1 MB, free: 3.898 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.03667, allocations: 28.11 kB / 266.2 MB, free: 3.871 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.505e-05/0.03669, allocations: 19.98 kB / 266.2 MB, free: 3.852 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001929/0.03688, allocations: 195.8 kB / 266.4 MB, free: 3.656 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001849/0.03707, allocations: 195.5 kB / 266.6 MB, free: 3.422 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001415/0.03848, allocations: 237.3 kB / 266.8 MB, free: 3.152 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.084e-06/0.03849, allocations: 0 / 266.8 MB, free: 3.152 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0004206/0.03891, allocations: 313 kB / 267.1 MB, free: 2.84 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.858e-06/0.03892, allocations: 8 kB / 267.1 MB, free: 2.832 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-06/0.03892, allocations: 0 / 267.1 MB, free: 2.832 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.661e-06/0.03892, allocations: 4 kB / 267.1 MB, free: 2.828 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003314/0.03926, allocations: 112.1 kB / 267.2 MB, free: 2.719 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.03926, allocations: 4 kB / 267.2 MB, free: 2.715 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.03942, allocations: 23.98 kB / 267.2 MB, free: 2.691 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.03944, allocations: 19.94 kB / 267.3 MB, free: 2.672 MB / 250.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 (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.0001402/0.03958, allocations: 299.9 kB / 267.6 MB, free: 2.371 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.377e-05/0.03964, allocations: 47.77 kB / 267.6 MB, free: 2.324 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.603e-05/0.0397, allocations: 40.14 kB / 267.6 MB, free: 2.285 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.0397, allocations: 4 kB / 267.6 MB, free: 2.281 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.0397, allocations: 0 / 267.6 MB, free: 2.281 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.03971, allocations: 4 kB / 267.7 MB, free: 2.277 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008708/0.04058, allocations: 0.679 MB / 268.3 MB, free: 1.539 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.04058, allocations: 4 kB / 268.3 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002529/0.04083, allocations: 71.89 kB / 268.4 MB, free: 1.465 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.249e-06/0.04084, allocations: 4 kB / 268.4 MB, free: 1.461 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.04086, allocations: 4 kB / 268.4 MB, free: 1.457 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.04086, allocations: 7.938 kB / 268.4 MB, free: 1.449 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.04087, allocations: 128 / 268.4 MB, free: 1.449 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005061/0.04137, allocations: 483.5 kB / 268.9 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.268e-05/0.04146, allocations: 59.72 kB / 269 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.04157, allocations: 8 kB / 269 MB, free: 0.875 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.04172, allocations: 23.92 kB / 269 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.231e-05/0.0418, allocations: 31.89 kB / 269 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.04181, allocations: 8 kB / 269 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001841/0.04199, allocations: 247.1 kB / 269.3 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.04199, allocations: 0 / 269.3 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000481/0.04248, allocations: 144 kB / 269.4 MB, free: 440 kB / 250.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.0001159/0.04259, allocations: 103.1 kB / 269.5 MB, free: 324 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007377/0.04333, allocations: 401.6 kB / 269.9 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.04333, allocations: 0 / 269.9 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.04347, allocations: 99.72 kB / 270 MB, free: 15.81 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005117/0.04398, allocations: 102 kB / 270.1 MB, free: 15.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.04553, allocations: 0.8943 MB / 271 MB, free: 14.77 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.666e-05/0.04561, allocations: 109.7 kB / 271.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001758/0.04579, allocations: 51.25 kB / 271.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.72e-05/0.04587, allocations: 32.5 kB / 271.2 MB, free: 14.56 MB / 266.7 MB Notification: Performance of SimCode: time 1.462e-06/0.04587, allocations: 0 / 271.2 MB, free: 14.56 MB / 266.7 MB Notification: Performance of Templates: time 0.00856/0.05443, allocations: 5.158 MB / 276.3 MB, free: 9.445 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.6308071659877896]