Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000909/0.000909, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00104/0.001949, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007675/0.0007675, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008943/0.001662, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 177.5 MB / 190 MB, free: 4.797 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08747/1.454, allocations: 53.87 MB / 243.9 MB, free: 14.86 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.201e-05/1.319e-05, allocations: 5.406 kB / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003075/0.003088, allocations: 3.096 MB / 248.3 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.004388, allocations: 1.031 MB / 249.3 MB, free: 9.422 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001846/0.004573, allocations: 15.88 kB / 249.3 MB, free: 9.406 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002089/0.004782, allocations: 87.17 kB / 249.4 MB, free: 9.32 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001749/0.004957, allocations: 103 kB / 249.5 MB, free: 9.219 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003692/0.005326, allocations: 243.4 kB / 249.8 MB, free: 8.98 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004455/0.005771, allocations: 0.5184 MB / 250.3 MB, free: 8.461 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001846/0.005956, allocations: 126.3 kB / 250.4 MB, free: 8.332 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00027/0.006226, allocations: 322.3 kB / 250.7 MB, free: 8.016 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001679/0.006394, allocations: 159.5 kB / 250.9 MB, free: 7.859 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.386e-05/0.006438, allocations: 40 kB / 250.9 MB, free: 7.82 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.268e-05/0.00648, allocations: 44 kB / 251 MB, free: 7.777 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.644e-05/0.006547, allocations: 79.69 kB / 251 MB, free: 7.699 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.297e-05/0.00663, allocations: 111.8 kB / 251.2 MB, free: 7.59 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002867/0.006916, allocations: 310.7 kB / 251.5 MB, free: 7.285 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.006925, allocations: 0 / 251.5 MB, free: 7.285 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.31e-07/0.006925, allocations: 0 / 251.5 MB, free: 7.285 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.006937, allocations: 0 / 251.5 MB, free: 7.285 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.0007257/0.007662, allocations: 0.745 MB / 252.2 MB, free: 6.516 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/0.007691, allocations: 12.03 kB / 252.2 MB, free: 6.504 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.063e-05/0.007761, allocations: 60.89 kB / 252.3 MB, free: 6.445 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002701/0.008031, allocations: 269.5 kB / 252.5 MB, free: 6.152 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.008061, allocations: 29.38 kB / 252.6 MB, free: 6.125 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.651e-05/0.008108, allocations: 44.36 kB / 252.6 MB, free: 6.082 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003422/0.00845, allocations: 394.7 kB / 253 MB, free: 5.652 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.008466, allocations: 8.125 kB / 253 MB, free: 5.645 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.008485, allocations: 16.38 kB / 253 MB, free: 5.629 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.008494, allocations: 11.94 kB / 253 MB, free: 5.617 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001457/0.00864, allocations: 117.6 kB / 253.1 MB, free: 5.5 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.009776, allocations: 1.112 MB / 254.3 MB, free: 4.336 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002402/0.01002, allocations: 204.2 kB / 254.5 MB, free: 4.121 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.293e-05/0.01008, allocations: 48.84 kB / 254.5 MB, free: 4.07 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.0101, allocations: 4 kB / 254.5 MB, free: 4.066 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.937e-05/0.01012, allocations: 42.56 kB / 254.5 MB, free: 4.016 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.593e-06/0.01012, allocations: 0 / 254.5 MB, free: 4.016 MB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.0008177/0.01094, allocations: 0.655 MB / 255.2 MB, free: 3.305 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.819e-05/0.01097, allocations: 55.41 kB / 255.3 MB, free: 3.238 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001727/0.01114, allocations: 307.3 kB / 255.6 MB, free: 2.922 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.889e-05/0.01116, allocations: 41.64 kB / 255.6 MB, free: 2.875 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.716e-05/0.01124, allocations: 217.1 kB / 255.8 MB, free: 2.656 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.267e-05/0.0113, allocations: 118.9 kB / 255.9 MB, free: 2.539 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.465e-05/0.01137, allocations: 78.16 kB / 256 MB, free: 2.457 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.185e-05/0.01145, allocations: 350.7 kB / 256.3 MB, free: 2.105 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.097e-05/0.01151, allocations: 53.66 kB / 256.4 MB, free: 2.051 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.01162, allocations: 189.7 kB / 256.6 MB, free: 1.82 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001657/0.01179, allocations: 201.1 kB / 256.8 MB, free: 1.594 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.01179, allocations: 0 / 256.8 MB, free: 1.594 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002132/0.01201, allocations: 224.4 kB / 257 MB, free: 1.367 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.899e-06/0.01202, allocations: 7.938 kB / 257 MB, free: 1.359 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.01202, allocations: 4 kB / 257 MB, free: 1.355 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.01203, allocations: 12.16 kB / 257 MB, free: 1.344 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004255/0.01246, allocations: 191.8 kB / 257.2 MB, free: 1.156 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006444/0.0131, allocations: 1.242 MB / 258.5 MB, free: 15.83 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.01322, allocations: 23.92 kB / 258.5 MB, free: 15.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.01324, allocations: 12 kB / 258.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001091/0.01335, allocations: 138.7 kB / 258.6 MB, free: 15.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001113/0.01346, allocations: 181.8 kB / 258.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001508/0.01361, allocations: 198.4 kB / 259 MB, free: 15.21 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.893e-06/0.01361, allocations: 4 kB / 259 MB, free: 15.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0001931/0.01381, allocations: 224.6 kB / 259.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.252e-06/0.01381, allocations: 8 kB / 259.2 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-06/0.01381, allocations: 0 / 259.2 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.108e-06/0.01382, allocations: 4 kB / 259.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002719/0.01409, allocations: 143.8 kB / 259.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.01409, allocations: 7.984 kB / 259.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.0142, allocations: 35.92 kB / 259.4 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.01421, allocations: 12.03 kB / 259.4 MB, free: 14.77 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.286e-05/0.0143, allocations: 208.1 kB / 259.6 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.653e-05/0.01433, allocations: 31.97 kB / 259.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.268e-05/0.01437, allocations: 44.09 kB / 259.7 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.01438, allocations: 3.938 kB / 259.7 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.01438, allocations: 3.938 kB / 259.7 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.01438, allocations: 7.984 kB / 259.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00046/0.01484, allocations: 0.4935 MB / 260.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.01484, allocations: 0 / 260.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002018/0.01505, allocations: 91.81 kB / 260.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.483e-05/0.0151, allocations: 35.77 kB / 260.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.0151, allocations: 4 kB / 260.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.01511, allocations: 4 kB / 260.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.01512, allocations: 4 kB / 260.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.01512, allocations: 3.984 kB / 260.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005729/0.01569, allocations: 386.7 kB / 260.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.01572, allocations: 12 kB / 260.7 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.01582, allocations: 19.98 kB / 260.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.01586, allocations: 24.19 kB / 260.8 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.735e-06/0.01587, allocations: 4 kB / 260.8 MB, free: 13.33 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.574e-05/0.01595, allocations: 128.7 kB / 260.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01595, allocations: 0 / 260.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000258/0.01621, allocations: 132 kB / 261 MB, free: 13.08 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 6.574e-05/0.01628, allocations: 88.36 kB / 261.1 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004111/0.01669, allocations: 363.1 kB / 261.5 MB, free: 12.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/0.0167, allocations: 15.88 kB / 261.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.594e-05/0.0168, allocations: 105.2 kB / 261.6 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005438/0.01734, allocations: 0.9548 MB / 262.6 MB, free: 11.37 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00267/0.02001, allocations: 0.815 MB / 263.4 MB, free: 10.51 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.465e-05/0.02007, allocations: 109.7 kB / 263.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001348/0.02021, allocations: 47.25 kB / 263.5 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001883/0.0204, allocations: 137.3 kB / 263.7 MB, free: 10.2 MB / 266.7 MB Notification: Performance of SimCode: time 8.12e-07/0.0204, allocations: 0 / 263.7 MB, free: 10.2 MB / 266.7 MB Notification: Performance of Templates: time 0.007174/0.02757, allocations: 5.649 MB / 269.3 MB, free: 4.629 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_trunk_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9183667097240686]