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.0009608/0.0009608, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.0009762/0.0009762, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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 1.012/1.012, allocations: 177 MB / 204.8 MB, free: 5.602 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.633e-06/1.633e-06, allocations: 3.938 kB / 272.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.35e-05/2.514e-05, allocations: 5.266 kB / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003593/0.003618, allocations: 3.078 MB / 276 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.005554, allocations: 0.9736 MB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003471/0.005902, allocations: 19.88 kB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004108/0.006312, allocations: 95.11 kB / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003098/0.006622, allocations: 107 kB / 277.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005762/0.007198, allocations: 239.5 kB / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005631/0.007761, allocations: 0.5339 MB / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002575/0.008019, allocations: 109.7 kB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003558/0.008375, allocations: 287.3 kB / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.008568, allocations: 155.5 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.613e-05/0.008624, allocations: 44 kB / 278.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.631e-05/0.00867, allocations: 40 kB / 278.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.941e-05/0.00876, allocations: 103.6 kB / 278.7 MB, free: 11.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.008867, allocations: 143.6 kB / 278.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003886/0.009256, allocations: 342.6 kB / 279.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.009259, allocations: 4 kB / 279.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.009261, allocations: 0 / 279.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.009267, allocations: 0 / 279.1 MB, free: 11.21 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.0008539/0.01012, allocations: 0.7803 MB / 279.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.01016, allocations: 15.98 kB / 279.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.01027, allocations: 84.61 kB / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003813/0.01065, allocations: 312.2 kB / 280.3 MB, free: 9.961 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.524e-05/0.01069, allocations: 29.38 kB / 280.3 MB, free: 9.934 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.717e-05/0.01074, allocations: 40.36 kB / 280.4 MB, free: 9.895 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005094/0.01125, allocations: 438.6 kB / 280.8 MB, free: 9.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.01127, allocations: 4.141 kB / 280.8 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/0.0113, allocations: 16.38 kB / 280.8 MB, free: 9.391 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.01132, allocations: 15.94 kB / 280.9 MB, free: 9.375 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002511/0.01157, allocations: 153.8 kB / 281 MB, free: 9.227 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.01313, allocations: 1.592 MB / 282.6 MB, free: 7.559 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004032/0.01353, allocations: 190 kB / 282.8 MB, free: 7.359 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.01364, allocations: 67.66 kB / 282.8 MB, free: 7.289 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.01367, allocations: 4 kB / 282.8 MB, free: 7.285 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.0137, allocations: 33.39 kB / 282.9 MB, free: 7.242 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.843e-06/0.0137, allocations: 8 kB / 282.9 MB, free: 7.234 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.00111/0.01481, allocations: 0.7903 MB / 283.7 MB, free: 6.379 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.01486, allocations: 106.8 kB / 283.8 MB, free: 6.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002586/0.01512, allocations: 366.7 kB / 284.1 MB, free: 5.871 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.01514, allocations: 33.7 kB / 284.2 MB, free: 5.832 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.01528, allocations: 287.3 kB / 284.5 MB, free: 5.547 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.853e-05/0.01535, allocations: 122.9 kB / 284.6 MB, free: 5.426 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.582e-05/0.01545, allocations: 87.84 kB / 284.7 MB, free: 5.332 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.01559, allocations: 0.5196 MB / 285.2 MB, free: 4.801 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.01571, allocations: 69.66 kB / 285.2 MB, free: 4.73 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.01588, allocations: 236.9 kB / 285.5 MB, free: 4.441 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000248/0.01613, allocations: 225.5 kB / 285.7 MB, free: 4.184 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.01613, allocations: 0 / 285.7 MB, free: 4.184 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0003911/0.01652, allocations: 329 kB / 286 MB, free: 3.855 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.01654, allocations: 7.938 kB / 286 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.01655, allocations: 4 kB / 286 MB, free: 3.844 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.01657, allocations: 4 kB / 286 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003895/0.01696, allocations: 168 kB / 286.2 MB, free: 3.676 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.01805, allocations: 1.844 MB / 288 MB, free: 1.711 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/0.01821, allocations: 32.11 kB / 288.1 MB, free: 1.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.01831, allocations: 16 kB / 288.1 MB, free: 1.664 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001717/0.01848, allocations: 195.8 kB / 288.3 MB, free: 1.469 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001843/0.01866, allocations: 236.8 kB / 288.5 MB, free: 1.176 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002338/0.0189, allocations: 233.2 kB / 288.7 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.703e-06/0.0189, allocations: 4.031 kB / 288.7 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0003327/0.01923, allocations: 301.2 kB / 289 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.726e-06/0.01924, allocations: 8 kB / 289 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.975e-06/0.01924, allocations: 0 / 289 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.913e-06/0.01925, allocations: 7.984 kB / 289.1 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.01948, allocations: 107.9 kB / 289.2 MB, free: 496 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.01948, allocations: 8.156 kB / 289.2 MB, free: 488 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.01959, allocations: 27.98 kB / 289.2 MB, free: 460 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.01961, allocations: 16 kB / 289.2 MB, free: 444 kB / 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 (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.0001604/0.01977, allocations: 292 kB / 289.5 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.238e-05/0.01982, allocations: 47.77 kB / 289.5 MB, free: 96 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.601e-05/0.01987, allocations: 40.09 kB / 289.6 MB, free: 56 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.01987, allocations: 7.984 kB / 289.6 MB, free: 48 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.01988, allocations: 0 / 289.6 MB, free: 48 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.01988, allocations: 0 / 289.6 MB, free: 48 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000959/0.02084, allocations: 0.6797 MB / 290.3 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.02085, allocations: 3.938 kB / 290.3 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002169/0.02106, allocations: 71.89 kB / 290.3 MB, free: 15.24 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.02107, allocations: 4 kB / 290.3 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.02109, allocations: 8 kB / 290.4 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.02109, allocations: 3.938 kB / 290.4 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.02109, allocations: 3.938 kB / 290.4 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004182/0.02151, allocations: 479.4 kB / 290.8 MB, free: 14.71 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.664e-05/0.02159, allocations: 55.73 kB / 290.9 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.984e-05/0.02162, allocations: 8 kB / 290.9 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.02174, allocations: 27.91 kB / 290.9 MB, free: 14.62 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.643e-05/0.02181, allocations: 31.89 kB / 291 MB, free: 14.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.02183, allocations: 12.06 kB / 291 MB, free: 14.58 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001545/0.02198, allocations: 243.1 kB / 291.2 MB, free: 14.35 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02198, allocations: 0 / 291.2 MB, free: 14.35 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003899/0.02237, allocations: 132 kB / 291.3 MB, free: 14.22 MB / 282.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.0001418/0.02251, allocations: 115.1 kB / 291.4 MB, free: 14.09 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007101/0.02322, allocations: 401.9 kB / 291.8 MB, free: 13.7 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.02323, allocations: 4.25 kB / 291.8 MB, free: 13.69 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001652/0.02339, allocations: 95.52 kB / 291.9 MB, free: 13.59 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006563/0.02405, allocations: 111.3 kB / 292 MB, free: 13.49 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002205/0.02625, allocations: 0.8833 MB / 292.9 MB, free: 12.55 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001106/0.02636, allocations: 109.7 kB / 293 MB, free: 12.43 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002615/0.02663, allocations: 59.23 kB / 293.1 MB, free: 12.38 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.02675, allocations: 28.5 kB / 293.1 MB, free: 12.35 MB / 282.7 MB Notification: Performance of SimCode: time 2.404e-06/0.02675, allocations: 3.938 kB / 293.1 MB, free: 12.34 MB / 282.7 MB Notification: Performance of Templates: time 0.01168/0.03842, allocations: 5.106 MB / 298.2 MB, free: 7.309 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 -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: 3.0225587440654635]