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.0006951/0.0006951, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001016/0.001711, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.0006792/0.0006792, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009162/0.001595, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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.786/0.786, allocations: 158.6 MB / 171.2 MB, free: 2.504 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1142/0.9002, allocations: 49.5 MB / 220.7 MB, free: 1.359 MB / 218.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.242e-06/1.242e-06, allocations: 0 / 222 MB, free: 76 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.468e-05/1.592e-05, allocations: 5.406 kB / 222 MB, free: 72 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004244/0.00426, allocations: 3.1 MB / 225.1 MB, free: 12.94 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.006315, allocations: 1.029 MB / 226.1 MB, free: 11.9 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002765/0.006592, allocations: 19.81 kB / 226.1 MB, free: 11.88 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002875/0.006879, allocations: 91.16 kB / 226.2 MB, free: 11.79 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003042/0.007183, allocations: 127 kB / 226.3 MB, free: 11.67 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005375/0.007721, allocations: 223.5 kB / 226.6 MB, free: 11.45 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006032/0.008324, allocations: 0.5261 MB / 227.1 MB, free: 10.92 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002482/0.008572, allocations: 126.2 kB / 227.2 MB, free: 10.8 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004279/0.009, allocations: 330.4 kB / 227.5 MB, free: 10.47 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002458/0.009246, allocations: 163.5 kB / 227.7 MB, free: 10.31 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.429e-05/0.00932, allocations: 40 kB / 227.7 MB, free: 10.27 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.384e-05/0.009384, allocations: 40 kB / 227.8 MB, free: 10.23 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.466e-05/0.009479, allocations: 79.69 kB / 227.9 MB, free: 10.16 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.009606, allocations: 115.7 kB / 228 MB, free: 10.04 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003869/0.009993, allocations: 310.7 kB / 228.3 MB, free: 9.738 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.01, allocations: 0 / 228.3 MB, free: 9.738 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.01, allocations: 3.938 kB / 228.3 MB, free: 9.734 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.596e-05/0.01002, allocations: 0 / 228.3 MB, free: 9.734 MB / 234.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.0009448/0.01096, allocations: 0.745 MB / 229 MB, free: 8.965 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.551e-05/0.01099, allocations: 8.031 kB / 229 MB, free: 8.957 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.633e-05/0.01106, allocations: 72.86 kB / 229.1 MB, free: 8.887 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002746/0.01134, allocations: 273.5 kB / 229.4 MB, free: 8.594 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/0.01137, allocations: 29.38 kB / 229.4 MB, free: 8.562 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.262e-05/0.01141, allocations: 40.33 kB / 229.4 MB, free: 8.523 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000324/0.01173, allocations: 364.1 kB / 229.8 MB, free: 8.129 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.01175, allocations: 192 / 229.8 MB, free: 8.129 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.885e-05/0.01176, allocations: 20.38 kB / 229.8 MB, free: 8.109 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/0.01177, allocations: 11.94 kB / 229.8 MB, free: 8.098 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001434/0.01192, allocations: 121.6 kB / 229.9 MB, free: 7.977 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009624/0.01288, allocations: 1.108 MB / 231 MB, free: 6.82 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002369/0.01312, allocations: 208.1 kB / 231.3 MB, free: 6.605 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.321e-05/0.01317, allocations: 48.84 kB / 231.3 MB, free: 6.555 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.01319, allocations: 4 kB / 231.3 MB, free: 6.551 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.01321, allocations: 38.56 kB / 231.3 MB, free: 6.504 MB / 234.7 MB Notification: Performance of pre-optimization done (n=30): time 1.173e-06/0.01321, allocations: 0 / 231.3 MB, free: 6.504 MB / 234.7 MB Notification: Performance of matching and sorting (n=32): time 0.000746/0.01396, allocations: 0.6501 MB / 232 MB, free: 5.801 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.377e-05/0.01398, allocations: 55.41 kB / 232 MB, free: 5.734 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.01414, allocations: 319.2 kB / 232.4 MB, free: 5.414 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.01416, allocations: 29.7 kB / 232.4 MB, free: 5.379 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.829e-05/0.01423, allocations: 217.1 kB / 232.6 MB, free: 5.16 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.615e-05/0.01429, allocations: 119 kB / 232.7 MB, free: 5.043 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.892e-05/0.01436, allocations: 74.16 kB / 232.8 MB, free: 4.965 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.795e-05/0.01444, allocations: 358.7 kB / 233.1 MB, free: 4.605 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.296e-05/0.0145, allocations: 49.66 kB / 233.2 MB, free: 4.551 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.794e-05/0.0146, allocations: 163.1 kB / 233.3 MB, free: 4.355 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.01475, allocations: 197.1 kB / 233.5 MB, free: 4.133 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.01476, allocations: 0 / 233.5 MB, free: 4.133 MB / 234.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002086/0.01497, allocations: 228.5 kB / 233.8 MB, free: 3.902 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.01498, allocations: 8 kB / 233.8 MB, free: 3.895 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.01498, allocations: 0 / 233.8 MB, free: 3.895 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.01499, allocations: 7.938 kB / 233.8 MB, free: 3.887 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004151/0.01541, allocations: 200 kB / 234 MB, free: 3.691 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005745/0.01598, allocations: 1.25 MB / 235.2 MB, free: 2.352 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/0.01611, allocations: 23.98 kB / 235.2 MB, free: 2.328 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.01612, allocations: 12 kB / 235.3 MB, free: 2.316 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001024/0.01623, allocations: 138.7 kB / 235.4 MB, free: 2.176 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.042e-05/0.01632, allocations: 151.2 kB / 235.5 MB, free: 1.996 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003727/0.01669, allocations: 206.3 kB / 235.7 MB, free: 1.766 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.915e-06/0.01669, allocations: 4 kB / 235.7 MB, free: 1.762 MB / 234.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0001832/0.01687, allocations: 216.5 kB / 236 MB, free: 1.543 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.659e-06/0.01688, allocations: 8 kB / 236 MB, free: 1.535 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.355e-06/0.01689, allocations: 0 / 236 MB, free: 1.535 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.206e-06/0.01689, allocations: 4 kB / 236 MB, free: 1.531 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002621/0.01715, allocations: 148 kB / 236.1 MB, free: 1.387 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.426e-06/0.01715, allocations: 4 kB / 236.1 MB, free: 1.383 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.785e-05/0.01725, allocations: 31.91 kB / 236.1 MB, free: 1.352 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.01726, allocations: 16 kB / 236.2 MB, free: 1.336 MB / 234.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.338e-05/0.01735, allocations: 204.1 kB / 236.4 MB, free: 1.129 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.615e-05/0.01738, allocations: 35.91 kB / 236.4 MB, free: 1.094 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.228e-05/0.01743, allocations: 44.14 kB / 236.4 MB, free: 1.047 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.01743, allocations: 4 kB / 236.4 MB, free: 1.043 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.01743, allocations: 7.875 kB / 236.5 MB, free: 1.035 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.01744, allocations: 3.984 kB / 236.5 MB, free: 1.031 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004517/0.01789, allocations: 0.4895 MB / 236.9 MB, free: 0.5078 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.01789, allocations: 4 kB / 236.9 MB, free: 0.5039 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001938/0.01808, allocations: 83.95 kB / 237 MB, free: 432 kB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.511e-05/0.01814, allocations: 47.75 kB / 237.1 MB, free: 384 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.01814, allocations: 0 / 237.1 MB, free: 384 kB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.01815, allocations: 8 kB / 237.1 MB, free: 376 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.01816, allocations: 4 kB / 237.1 MB, free: 372 kB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.01816, allocations: 0 / 237.1 MB, free: 372 kB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002682/0.01842, allocations: 390.4 kB / 237.5 MB, free: 15.95 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.423e-05/0.01845, allocations: 8 kB / 237.5 MB, free: 15.94 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.88e-05/0.01855, allocations: 23.98 kB / 237.5 MB, free: 15.91 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.4e-05/0.01859, allocations: 27.95 kB / 237.5 MB, free: 15.89 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.0186, allocations: 4 kB / 237.5 MB, free: 15.88 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.125e-05/0.01868, allocations: 128.6 kB / 237.7 MB, free: 15.76 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01868, allocations: 0 / 237.7 MB, free: 15.76 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002697/0.01895, allocations: 136 kB / 237.8 MB, free: 15.63 MB / 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 7.396e-05/0.01902, allocations: 80.36 kB / 237.9 MB, free: 15.54 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004206/0.01945, allocations: 362 kB / 238.2 MB, free: 15.18 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/0.01946, allocations: 4 kB / 238.2 MB, free: 15.18 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.614e-05/0.01955, allocations: 96.91 kB / 238.3 MB, free: 15.08 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005347/0.02009, allocations: 0.9926 MB / 239.3 MB, free: 13.9 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/0.02279, allocations: 0.8298 MB / 240.1 MB, free: 13.03 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.326e-05/0.02285, allocations: 117.6 kB / 240.3 MB, free: 12.89 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001468/0.023, allocations: 51.25 kB / 240.3 MB, free: 12.84 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001888/0.02319, allocations: 141.3 kB / 240.4 MB, free: 12.7 MB / 250.7 MB Notification: Performance of SimCode: time 7.72e-07/0.02319, allocations: 0 / 240.4 MB, free: 12.7 MB / 250.7 MB Notification: Performance of Templates: time 0.007259/0.03045, allocations: 5.668 MB / 246.1 MB, free: 7.062 MB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.2435421450063586]