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.0009301/0.0009301, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 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.006219/0.006219, allocations: 157.7 kB / 24.7 MB, free: 8.891 MB / 18.57 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 0.9359/0.9359, allocations: 177 MB / 204.8 MB, free: 5.75 MB / 186.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 2.164e-06/2.164e-06, allocations: 0 / 325.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.381e-05/4.598e-05, allocations: 3.125 kB / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003541/0.003587, allocations: 2.932 MB / 328.7 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002004/0.005592, allocations: 0.9698 MB / 329.7 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003847/0.005976, allocations: 19.88 kB / 329.7 MB, free: 11.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004416/0.006418, allocations: 87.17 kB / 329.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000274/0.006692, allocations: 111 kB / 329.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006176/0.007309, allocations: 227.5 kB / 330.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000509/0.007818, allocations: 0.53 MB / 330.6 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002501/0.008068, allocations: 113.7 kB / 330.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002758/0.008344, allocations: 287.2 kB / 331 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002096/0.008554, allocations: 159.5 kB / 331.2 MB, free: 9.938 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.453e-05/0.008618, allocations: 40 kB / 331.2 MB, free: 9.898 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.079e-05/0.008659, allocations: 44 kB / 331.3 MB, free: 9.855 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.496e-05/0.008754, allocations: 103.6 kB / 331.4 MB, free: 9.754 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.008863, allocations: 139.6 kB / 331.5 MB, free: 9.617 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005123/0.009375, allocations: 0.5022 MB / 332 MB, free: 9.113 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.00938, allocations: 0 / 332 MB, free: 9.113 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.009382, allocations: 0 / 332 MB, free: 9.113 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.00939, allocations: 0 / 332 MB, free: 9.113 MB / 298.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.0009515/0.01034, allocations: 0.7038 MB / 332.7 MB, free: 8.375 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.01039, allocations: 11.98 kB / 332.7 MB, free: 8.363 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.066e-05/0.01046, allocations: 52.61 kB / 332.8 MB, free: 8.312 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004679/0.01092, allocations: 313.4 kB / 333.1 MB, free: 7.977 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.01095, allocations: 25.38 kB / 333.1 MB, free: 7.953 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.274e-05/0.011, allocations: 40.36 kB / 333.1 MB, free: 7.914 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006135/0.01162, allocations: 0.4953 MB / 333.6 MB, free: 7.375 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.01164, allocations: 8.141 kB / 333.6 MB, free: 7.367 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.102e-05/0.01167, allocations: 16.38 kB / 333.7 MB, free: 7.352 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.01168, allocations: 19.92 kB / 333.7 MB, free: 7.332 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005599/0.01224, allocations: 371.7 kB / 334 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001489/0.01373, allocations: 1.364 MB / 335.4 MB, free: 5.539 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005248/0.01425, allocations: 294.6 kB / 335.7 MB, free: 5.238 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.01448, allocations: 156.7 kB / 335.8 MB, free: 5.082 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.01451, allocations: 7.984 kB / 335.8 MB, free: 5.074 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.447e-05/0.01453, allocations: 38.56 kB / 335.9 MB, free: 5.027 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.793e-06/0.01453, allocations: 0 / 335.9 MB, free: 5.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001843/0.01638, allocations: 1.23 MB / 337.1 MB, free: 3.738 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/0.01643, allocations: 110.8 kB / 337.2 MB, free: 3.605 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002721/0.0167, allocations: 341.6 kB / 337.6 MB, free: 3.266 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.01673, allocations: 29.7 kB / 337.6 MB, free: 3.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.01685, allocations: 248.5 kB / 337.8 MB, free: 2.984 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.266e-05/0.01692, allocations: 127.1 kB / 338 MB, free: 2.859 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.964e-05/0.01701, allocations: 78.14 kB / 338 MB, free: 2.777 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.01711, allocations: 350.8 kB / 338.4 MB, free: 2.426 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002474/0.01736, allocations: 166.7 kB / 338.5 MB, free: 2.262 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003083/0.01767, allocations: 313.7 kB / 338.8 MB, free: 1.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004887/0.01816, allocations: 391.9 kB / 339.2 MB, free: 1.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.01816, allocations: 0 / 339.2 MB, free: 1.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006085/0.01877, allocations: 489 kB / 339.7 MB, free: 1.012 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.01879, allocations: 11.94 kB / 339.7 MB, free: 1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.0188, allocations: 0 / 339.7 MB, free: 1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.01882, allocations: 4 kB / 339.7 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004588/0.01927, allocations: 215.9 kB / 339.9 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001126/0.0204, allocations: 1.446 MB / 341.4 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001924/0.02059, allocations: 35.95 kB / 341.4 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.02061, allocations: 16 kB / 341.4 MB, free: 15.19 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003253/0.02094, allocations: 277 kB / 341.7 MB, free: 14.92 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002968/0.02123, allocations: 297.7 kB / 342 MB, free: 14.58 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004596/0.02169, allocations: 379.6 kB / 342.4 MB, free: 14.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.353e-06/0.02169, allocations: 0 / 342.4 MB, free: 14.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0005544/0.02225, allocations: 465 kB / 342.8 MB, free: 13.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.518e-06/0.02226, allocations: 4 kB / 342.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.02226, allocations: 4 kB / 342.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.31e-06/0.02227, allocations: 4 kB / 342.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002507/0.02252, allocations: 124 kB / 342.9 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.02253, allocations: 7.984 kB / 343 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.02267, allocations: 39.97 kB / 343 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.02268, allocations: 16 kB / 343 MB, free: 13.52 MB / 314.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.0001235/0.02281, allocations: 204.1 kB / 343.2 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.205e-05/0.02285, allocations: 39.77 kB / 343.2 MB, free: 13.28 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.254e-05/0.02291, allocations: 48.09 kB / 343.3 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.02292, allocations: 4 kB / 343.3 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.02292, allocations: 7.875 kB / 343.3 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.02292, allocations: 0 / 343.3 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.02392, allocations: 0.7903 MB / 344.1 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.02393, allocations: 0 / 344.1 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002211/0.02415, allocations: 99.78 kB / 344.2 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.02415, allocations: 4 kB / 344.2 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.02417, allocations: 4 kB / 344.2 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.02417, allocations: 7.938 kB / 344.2 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.02418, allocations: 128 / 344.2 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008641/0.02504, allocations: 0.6829 MB / 344.9 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.02514, allocations: 55.8 kB / 344.9 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.992e-05/0.02517, allocations: 11.98 kB / 345 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.02532, allocations: 35.91 kB / 345 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.563e-05/0.02538, allocations: 23.95 kB / 345 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.02539, allocations: 8 kB / 345 MB, free: 11.42 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001691/0.02556, allocations: 239.2 kB / 345.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02556, allocations: 0 / 345.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003687/0.02593, allocations: 136 kB / 345.4 MB, free: 11.05 MB / 314.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.0001253/0.02606, allocations: 107.2 kB / 345.5 MB, free: 10.94 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.02714, allocations: 0.6521 MB / 346.1 MB, free: 10.29 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.02715, allocations: 0 / 346.1 MB, free: 10.29 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000246/0.02739, allocations: 168.3 kB / 346.3 MB, free: 10.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004364/0.02783, allocations: 107.7 kB / 346.4 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.02911, allocations: 0.9304 MB / 347.3 MB, free: 9.043 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001471/0.02926, allocations: 216.2 kB / 347.6 MB, free: 8.809 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.552e-05/0.02934, allocations: 36.5 kB / 347.6 MB, free: 8.773 MB / 314.7 MB Notification: Performance of SimCode: time 1.202e-06/0.02934, allocations: 0 / 347.6 MB, free: 8.773 MB / 314.7 MB Notification: Performance of Templates: time 0.006944/0.03629, allocations: 6.073 MB / 353.7 MB, free: 2.703 MB / 314.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.937809482216835]