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.0008525/0.0008525, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.00129/0.00129, allocations: 164.2 kB / 24.91 MB, free: 8.762 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.9669/0.9669, allocations: 177 MB / 205.2 MB, free: 5.461 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 1.272e-06/1.272e-06, allocations: 0 / 273.4 MB, free: 1.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.708e-05/1.835e-05, allocations: 6.25 kB / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003338/0.003356, allocations: 3.079 MB / 276.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.00482, allocations: 1.016 MB / 277.5 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001935/0.005013, allocations: 15.88 kB / 277.5 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000321/0.005334, allocations: 91.11 kB / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001901/0.005524, allocations: 119 kB / 277.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004136/0.005938, allocations: 227.5 kB / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003997/0.006337, allocations: 0.5261 MB / 278.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002111/0.006549, allocations: 126.3 kB / 278.6 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002375/0.006786, allocations: 287.2 kB / 278.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001804/0.006966, allocations: 155.5 kB / 279 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.53e-05/0.007012, allocations: 40 kB / 279.1 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.877e-05/0.007051, allocations: 44 kB / 279.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.108e-05/0.007132, allocations: 103.6 kB / 279.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.119e-05/0.007223, allocations: 139.6 kB / 279.4 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003137/0.007537, allocations: 346.5 kB / 279.7 MB, free: 10.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.322e-06/0.007538, allocations: 0 / 279.7 MB, free: 10.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.007539, allocations: 0 / 279.7 MB, free: 10.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.007544, allocations: 0 / 279.7 MB, free: 10.89 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.0006963/0.00824, allocations: 0.6594 MB / 280.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.008277, allocations: 15.97 kB / 280.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.182e-05/0.008348, allocations: 64.89 kB / 280.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002884/0.008637, allocations: 269.5 kB / 280.7 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.008666, allocations: 29.38 kB / 280.7 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.421e-05/0.008711, allocations: 36.38 kB / 280.8 MB, free: 9.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003714/0.009082, allocations: 394.7 kB / 281.1 MB, free: 9.336 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.009099, allocations: 12.14 kB / 281.2 MB, free: 9.324 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.009119, allocations: 12.38 kB / 281.2 MB, free: 9.312 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.009129, allocations: 15.94 kB / 281.2 MB, free: 9.297 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001493/0.009279, allocations: 121.6 kB / 281.3 MB, free: 9.176 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.0103, allocations: 1.101 MB / 282.4 MB, free: 8.023 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002679/0.01057, allocations: 204.2 kB / 282.6 MB, free: 7.809 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.009e-05/0.01064, allocations: 52.77 kB / 282.7 MB, free: 7.754 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.01066, allocations: 4 kB / 282.7 MB, free: 7.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.01069, allocations: 42.56 kB / 282.7 MB, free: 7.699 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.944e-06/0.01069, allocations: 0 / 282.7 MB, free: 7.699 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.0008693/0.01156, allocations: 0.6376 MB / 283.3 MB, free: 7.004 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.126e-05/0.01161, allocations: 114.8 kB / 283.4 MB, free: 6.867 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/0.01179, allocations: 307.3 kB / 283.7 MB, free: 6.555 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.0118, allocations: 29.7 kB / 283.8 MB, free: 6.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.326e-05/0.01189, allocations: 209.2 kB / 284 MB, free: 6.309 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.018e-05/0.01195, allocations: 126.9 kB / 284.1 MB, free: 6.184 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.575e-05/0.01203, allocations: 82.14 kB / 284.2 MB, free: 6.098 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.033e-05/0.01212, allocations: 354.7 kB / 284.5 MB, free: 5.742 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.585e-05/0.01219, allocations: 53.67 kB / 284.6 MB, free: 5.688 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/0.0123, allocations: 185.7 kB / 284.8 MB, free: 5.461 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001621/0.01246, allocations: 193.6 kB / 285 MB, free: 5.242 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.01246, allocations: 4.031 kB / 285 MB, free: 5.238 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002271/0.01269, allocations: 216.2 kB / 285.2 MB, free: 5.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.0127, allocations: 8 kB / 285.2 MB, free: 5.012 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.01271, allocations: 3.938 kB / 285.2 MB, free: 5.008 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.01272, allocations: 7.938 kB / 285.2 MB, free: 5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004084/0.01313, allocations: 192 kB / 285.4 MB, free: 4.812 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006544/0.01379, allocations: 1.243 MB / 286.6 MB, free: 3.488 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.0139, allocations: 27.92 kB / 286.6 MB, free: 3.461 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.72e-05/0.01392, allocations: 15.98 kB / 286.7 MB, free: 3.445 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001018/0.01402, allocations: 134.7 kB / 286.8 MB, free: 3.309 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001111/0.01413, allocations: 185.8 kB / 287 MB, free: 3.078 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001532/0.01428, allocations: 190.7 kB / 287.2 MB, free: 2.863 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.673e-06/0.01428, allocations: 0 / 287.2 MB, free: 2.863 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0002012/0.01449, allocations: 220.2 kB / 287.4 MB, free: 2.641 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.626e-06/0.01449, allocations: 11.12 kB / 287.4 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.0145, allocations: 3.984 kB / 287.4 MB, free: 2.629 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.538e-06/0.0145, allocations: 8.156 kB / 287.4 MB, free: 2.621 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002694/0.01477, allocations: 141.2 kB / 287.5 MB, free: 2.484 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.945e-06/0.01477, allocations: 4 kB / 287.5 MB, free: 2.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.01488, allocations: 35.91 kB / 287.6 MB, free: 2.445 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.01489, allocations: 8 kB / 287.6 MB, free: 2.438 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.909e-05/0.01498, allocations: 204.2 kB / 287.8 MB, free: 2.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.868e-05/0.01502, allocations: 35.97 kB / 287.8 MB, free: 2.195 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.428e-05/0.01506, allocations: 44.09 kB / 287.9 MB, free: 2.152 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.01506, allocations: 11.94 kB / 287.9 MB, free: 2.141 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.01507, allocations: 3.938 kB / 287.9 MB, free: 2.137 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.01507, allocations: 3.984 kB / 287.9 MB, free: 2.133 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004712/0.01554, allocations: 497.3 kB / 288.4 MB, free: 1.613 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.01555, allocations: 0 / 288.4 MB, free: 1.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002228/0.01577, allocations: 91.95 kB / 288.5 MB, free: 1.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.01577, allocations: 0 / 288.5 MB, free: 1.523 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.01579, allocations: 8 kB / 288.5 MB, free: 1.516 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.01579, allocations: 7.984 kB / 288.5 MB, free: 1.508 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.01579, allocations: 0 / 288.5 MB, free: 1.508 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002736/0.01606, allocations: 386.6 kB / 288.8 MB, free: 1.102 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.958e-05/0.01612, allocations: 43.67 kB / 288.9 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.481e-05/0.01615, allocations: 8 kB / 288.9 MB, free: 1.051 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.01625, allocations: 23.98 kB / 288.9 MB, free: 1.027 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.255e-05/0.0163, allocations: 28.19 kB / 288.9 MB, free: 1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.01631, allocations: 8 kB / 289 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.894e-05/0.01639, allocations: 112.7 kB / 289.1 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01639, allocations: 0 / 289.1 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000316/0.01671, allocations: 140 kB / 289.2 MB, free: 0.7461 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.467e-05/0.0168, allocations: 84.34 kB / 289.3 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005084/0.01731, allocations: 344.3 kB / 289.6 MB, free: 324 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.01732, allocations: 7.938 kB / 289.6 MB, free: 316 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.77e-05/0.01739, allocations: 84.69 kB / 289.7 MB, free: 228 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.01771, allocations: 98.19 kB / 289.8 MB, free: 132 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.01898, allocations: 0.8143 MB / 290.6 MB, free: 15.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.34e-05/0.01904, allocations: 113.7 kB / 290.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001294/0.01917, allocations: 47.25 kB / 290.8 MB, free: 15.1 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001908/0.01936, allocations: 133.3 kB / 290.9 MB, free: 14.97 MB / 282.7 MB Notification: Performance of SimCode: time 8.22e-07/0.01936, allocations: 0 / 290.9 MB, free: 14.97 MB / 282.7 MB Notification: Performance of Templates: time 0.007954/0.02731, allocations: 5.549 MB / 296.5 MB, free: 9.496 MB / 282.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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6830218438990414]