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.001601/0.001601, allocations: 107 kB / 19.8 MB, free: 2.5 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.001717/0.001717, allocations: 215 kB / 22.99 MB, free: 5.578 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.48/1.48, allocations: 230.2 MB / 256.2 MB, free: 8.523 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.001802/0.001802, allocations: 72.06 kB / 376.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3318, allocations: 53.33 MB / 429.8 MB, free: 7.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005351/0.3371, allocations: 3.152 MB / 432.9 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002412/0.3395, allocations: 1.013 MB / 434 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002977/0.3398, allocations: 11.94 kB / 434 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004275/0.3403, allocations: 87.17 kB / 434.1 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002595/0.3405, allocations: 99.09 kB / 434.1 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006609/0.3412, allocations: 246.8 kB / 434.4 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000622/0.3418, allocations: 0.5146 MB / 434.9 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.3421, allocations: 125.2 kB / 435 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002549/0.3424, allocations: 199.2 kB / 435.2 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002745/0.3426, allocations: 206.9 kB / 435.4 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.673e-05/0.3427, allocations: 40 kB / 435.5 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.227e-05/0.3428, allocations: 43.94 kB / 435.5 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.3429, allocations: 107.7 kB / 435.6 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002088/0.3431, allocations: 214.8 kB / 435.8 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006506/0.3437, allocations: 0.4952 MB / 436.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3438, allocations: 0 / 436.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3438, allocations: 0 / 436.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.3438, allocations: 3.938 kB / 436.3 MB, free: 0.9688 MB / 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.001428/0.3452, allocations: 0.7752 MB / 437.1 MB, free: 148 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.3452, allocations: 8.031 kB / 437.1 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.3454, allocations: 52.61 kB / 437.2 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006919/0.346, allocations: 380 kB / 437.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.3461, allocations: 29.38 kB / 437.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.062e-05/0.3462, allocations: 40.36 kB / 437.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009843/0.3471, allocations: 455.5 kB / 438 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.13e-05/0.3472, allocations: 11.95 kB / 438 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.02e-05/0.3472, allocations: 12 kB / 438.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.3472, allocations: 8 kB / 438.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009658/0.3482, allocations: 379.6 kB / 438.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002288/0.3505, allocations: 1.575 MB / 440 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008161/0.3513, allocations: 294.6 kB / 440.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004041/0.3517, allocations: 160.8 kB / 440.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.535e-05/0.3517, allocations: 3.938 kB / 440.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.3518, allocations: 38.56 kB / 440.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.014e-06/0.3518, allocations: 0 / 440.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003273/0.3551, allocations: 1.389 MB / 441.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.688e-05/0.3551, allocations: 106.8 kB / 442 MB, free: 10.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004208/0.3556, allocations: 361.6 kB / 442.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.3556, allocations: 29.7 kB / 442.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002108/0.3558, allocations: 244.3 kB / 442.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.3559, allocations: 119.2 kB / 442.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/0.3561, allocations: 82.08 kB / 442.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.3563, allocations: 350.8 kB / 443.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004485/0.3567, allocations: 174.5 kB / 443.3 MB, free: 9.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005138/0.3572, allocations: 253.7 kB / 443.6 MB, free: 9.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008878/0.3581, allocations: 395.9 kB / 444 MB, free: 8.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.3581, allocations: 0 / 444 MB, free: 8.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001077/0.3592, allocations: 496.9 kB / 444.4 MB, free: 8.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3592, allocations: 11.94 kB / 444.5 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.3592, allocations: 0 / 444.5 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.3592, allocations: 4 kB / 444.5 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008602/0.3601, allocations: 208 kB / 444.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001936/0.362, allocations: 1.58 MB / 446.2 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.3624, allocations: 44.05 kB / 446.3 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.463e-05/0.3624, allocations: 16 kB / 446.3 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005379/0.3629, allocations: 272.9 kB / 446.6 MB, free: 6.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004668/0.3634, allocations: 241.7 kB / 446.8 MB, free: 5.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007829/0.3642, allocations: 383.6 kB / 447.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.573e-06/0.3642, allocations: 0 / 447.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009851/0.3652, allocations: 469.1 kB / 447.6 MB, free: 4.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.3652, allocations: 4 kB / 447.6 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.3652, allocations: 7.938 kB / 447.6 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.761e-06/0.3652, allocations: 4 kB / 447.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004744/0.3657, allocations: 119.8 kB / 447.8 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.3657, allocations: 7.938 kB / 447.8 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000317/0.366, allocations: 40.08 kB / 447.8 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.955e-05/0.366, allocations: 16 kB / 447.8 MB, free: 4.785 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.0001987/0.3662, allocations: 208.1 kB / 448 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.757e-05/0.3663, allocations: 39.72 kB / 448.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.3664, allocations: 44.25 kB / 448.1 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.3664, allocations: 7.938 kB / 448.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3664, allocations: 0 / 448.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/0.3664, allocations: 3.984 kB / 448.1 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001784/0.3682, allocations: 0.9232 MB / 449.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.3682, allocations: 0 / 449.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000407/0.3686, allocations: 87.88 kB / 449.1 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3686, allocations: 0 / 449.1 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.682e-05/0.3687, allocations: 11.98 kB / 449.1 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.3687, allocations: 4 kB / 449.2 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3687, allocations: 0 / 449.2 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001401/0.3701, allocations: 0.6711 MB / 449.8 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.3702, allocations: 136.9 kB / 450 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.79e-05/0.3703, allocations: 8 kB / 450 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000291/0.3705, allocations: 36.08 kB / 450 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.994e-05/0.3706, allocations: 27.97 kB / 450 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.3707, allocations: 8 kB / 450 MB, free: 2.457 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003036/0.371, allocations: 251.2 kB / 450.3 MB, free: 2.215 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.371, allocations: 3.938 kB / 450.3 MB, free: 2.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005525/0.3715, allocations: 135.9 kB / 450.4 MB, free: 2.078 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.0001723/0.3717, allocations: 111.2 kB / 450.5 MB, free: 1.957 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001852/0.3735, allocations: 0.6567 MB / 451.2 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3735, allocations: 0 / 451.2 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004558/0.374, allocations: 171.7 kB / 451.4 MB, free: 1.133 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006442/0.3746, allocations: 99.09 kB / 451.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.3767, allocations: 1.032 MB / 452.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004667/0.3771, allocations: 0.8155 MB / 453.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000254/0.3774, allocations: 63.23 kB / 453.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.3775, allocations: 35.38 kB / 453.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3775, allocations: 0 / 453.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of Templates: time 0.01072/0.3882, allocations: 4.844 MB / 458.2 MB, free: 10.22 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.87420941144228]