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.001444/0.001444, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.001667/0.001667, allocations: 214.9 kB / 23.73 MB, free: 4.16 MB / 14.72 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.528/1.528, allocations: 230.5 MB / 257.4 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002014/0.002014, allocations: 63.89 kB / 378.2 MB, free: 2.316 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3122, allocations: 53.41 MB / 431.6 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005168/0.3174, allocations: 2.903 MB / 434.5 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002386/0.3198, allocations: 0.9776 MB / 435.5 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000261/0.32, allocations: 15.88 kB / 435.5 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004039/0.3204, allocations: 87.17 kB / 435.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002769/0.3207, allocations: 107.1 kB / 435.7 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006579/0.3214, allocations: 235.7 kB / 435.9 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006583/0.322, allocations: 0.5184 MB / 436.5 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002852/0.3223, allocations: 121.5 kB / 436.6 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002778/0.3226, allocations: 199.2 kB / 436.8 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002909/0.3229, allocations: 183 kB / 437 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.213e-05/0.323, allocations: 40 kB / 437 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.736e-05/0.323, allocations: 47.94 kB / 437 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.3232, allocations: 119.5 kB / 437.2 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001954/0.3234, allocations: 171.1 kB / 437.3 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006202/0.324, allocations: 0.4924 MB / 437.8 MB, free: 312 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.324, allocations: 0 / 437.8 MB, free: 312 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.324, allocations: 0 / 437.8 MB, free: 312 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.324, allocations: 0 / 437.8 MB, free: 312 kB / 334.1 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.001474/0.3255, allocations: 0.7038 MB / 438.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.3255, allocations: 15.98 kB / 438.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.981e-05/0.3256, allocations: 52.61 kB / 438.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006903/0.3263, allocations: 306.1 kB / 438.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.856e-05/0.3264, allocations: 33.31 kB / 438.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.35e-05/0.3264, allocations: 36.38 kB / 439 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.3274, allocations: 0.4989 MB / 439.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.684e-05/0.3275, allocations: 11.95 kB / 439.5 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.641e-05/0.3275, allocations: 8 kB / 439.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.3275, allocations: 12 kB / 439.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.3285, allocations: 375.6 kB / 439.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002325/0.3309, allocations: 1.356 MB / 441.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009/0.3318, allocations: 302.6 kB / 441.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004572/0.3322, allocations: 156.7 kB / 441.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.3323, allocations: 4 kB / 441.7 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/0.3323, allocations: 42.5 kB / 441.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.124e-06/0.3323, allocations: 0 / 441.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.00348/0.3358, allocations: 1.225 MB / 442.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.527e-05/0.3359, allocations: 114.7 kB / 443 MB, free: 10.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004198/0.3363, allocations: 341.6 kB / 443.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.3363, allocations: 37.7 kB / 443.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/0.3365, allocations: 244.5 kB / 443.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.3366, allocations: 119.2 kB / 443.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.3368, allocations: 86.08 kB / 443.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.337, allocations: 346.8 kB / 444.2 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004927/0.3375, allocations: 174.5 kB / 444.4 MB, free: 9.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005883/0.338, allocations: 305.1 kB / 444.7 MB, free: 9.105 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009891/0.339, allocations: 392 kB / 445 MB, free: 8.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.339, allocations: 0 / 445 MB, free: 8.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001185/0.3402, allocations: 0.4969 MB / 445.5 MB, free: 8.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.3402, allocations: 8 kB / 445.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3402, allocations: 0 / 445.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.323e-05/0.3403, allocations: 4 kB / 445.5 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009162/0.3412, allocations: 211.8 kB / 445.8 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001927/0.3431, allocations: 1.446 MB / 447.2 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000365/0.3435, allocations: 47.89 kB / 447.2 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/0.3435, allocations: 12 kB / 447.3 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006021/0.3441, allocations: 272.9 kB / 447.5 MB, free: 6.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005503/0.3447, allocations: 297.2 kB / 447.8 MB, free: 5.766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008816/0.3455, allocations: 367.7 kB / 448.2 MB, free: 5.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.218e-06/0.3455, allocations: 4 kB / 448.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001119/0.3467, allocations: 465 kB / 448.6 MB, free: 4.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.3467, allocations: 8 kB / 448.6 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3467, allocations: 0 / 448.6 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.925e-06/0.3467, allocations: 4 kB / 448.6 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005056/0.3472, allocations: 124 kB / 448.8 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.3472, allocations: 4 kB / 448.8 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003266/0.3475, allocations: 39.95 kB / 448.8 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.217e-05/0.3476, allocations: 15.94 kB / 448.8 MB, free: 4.723 MB / 350.1 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.0001886/0.3478, allocations: 204.8 kB / 449 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.496e-05/0.3478, allocations: 39.77 kB / 449.1 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.3479, allocations: 44.08 kB / 449.1 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.348, allocations: 4 kB / 449.1 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.348, allocations: 4 kB / 449.1 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.348, allocations: 7.875 kB / 449.1 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/0.3498, allocations: 0.7942 MB / 449.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.3498, allocations: 3.938 kB / 449.9 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004655/0.3502, allocations: 87.88 kB / 450 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.226e-06/0.3502, allocations: 3.938 kB / 450 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.781e-05/0.3503, allocations: 8 kB / 450 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.995e-06/0.3503, allocations: 7.984 kB / 450 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3503, allocations: 0 / 450 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.3518, allocations: 0.6714 MB / 450.7 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001616/0.352, allocations: 71.72 kB / 450.8 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.602e-05/0.352, allocations: 4 kB / 450.8 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003206/0.3524, allocations: 35.95 kB / 450.8 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.3525, allocations: 23.95 kB / 450.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.106e-05/0.3525, allocations: 12 kB / 450.8 MB, free: 2.613 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002962/0.3528, allocations: 235.2 kB / 451.1 MB, free: 2.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3528, allocations: 3.938 kB / 451.1 MB, free: 2.387 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006136/0.3534, allocations: 132 kB / 451.2 MB, free: 2.258 MB / 350.1 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.0001385/0.3535, allocations: 107.2 kB / 451.3 MB, free: 2.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002111/0.3557, allocations: 0.6562 MB / 452 MB, free: 1.488 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3557, allocations: 0 / 452 MB, free: 1.488 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004902/0.3561, allocations: 171.8 kB / 452.1 MB, free: 1.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007023/0.3568, allocations: 117.9 kB / 452.2 MB, free: 1.219 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002148/0.359, allocations: 1.01 MB / 453.3 MB, free: 176 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000303/0.3593, allocations: 220.1 kB / 453.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002979/0.3596, allocations: 63.22 kB / 453.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.3597, allocations: 31.44 kB / 453.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3597, allocations: 3.938 kB / 453.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of Templates: time 0.01225/0.372, allocations: 5.228 MB / 458.8 MB, free: 10.68 MB / 366.1 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.851071299985051]