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.001289/0.001289, allocations: 116.8 kB / 19.18 MB, free: 3.762 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.001378/0.001378, allocations: 210.6 kB / 22.13 MB, free: 0.8125 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.474/1.474, allocations: 230.2 MB / 255.2 MB, free: 15.24 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.001873/0.001873, allocations: 63.89 kB / 374.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1126, allocations: 53.32 MB / 427.8 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004843/0.1174, allocations: 3.129 MB / 431 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.1194, allocations: 1.001 MB / 432 MB, free: 340 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002243/0.1197, allocations: 19.88 kB / 432 MB, free: 320 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003431/0.12, allocations: 87.22 kB / 432.1 MB, free: 232 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002457/0.1202, allocations: 107.1 kB / 432.2 MB, free: 124 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2135/0.3337, allocations: 234.2 kB / 432.4 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009675/0.3347, allocations: 0.515 MB / 432.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003072/0.335, allocations: 120 kB / 433 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000291/0.3353, allocations: 198.8 kB / 433.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002725/0.3356, allocations: 210.9 kB / 433.4 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.662e-05/0.3357, allocations: 40.22 kB / 433.5 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.156e-05/0.3358, allocations: 41.84 kB / 433.5 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.3359, allocations: 104.7 kB / 433.6 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.3361, allocations: 213.8 kB / 433.8 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005665/0.3366, allocations: 0.4988 MB / 434.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3366, allocations: 1.219 kB / 434.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3366, allocations: 0 / 434.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.3366, allocations: 1.75 kB / 434.3 MB, free: 7.816 MB / 350.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.001249/0.3379, allocations: 0.7762 MB / 435.1 MB, free: 7.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.3379, allocations: 15.11 kB / 435.1 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.625e-05/0.338, allocations: 54.42 kB / 435.2 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005081/0.3385, allocations: 367.8 kB / 435.5 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.3386, allocations: 26.81 kB / 435.6 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.803e-05/0.3386, allocations: 39.06 kB / 435.6 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009388/0.3396, allocations: 458.2 kB / 436 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.719e-05/0.3396, allocations: 13.52 kB / 436.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.127e-05/0.3396, allocations: 16.72 kB / 436.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.3397, allocations: 9.25 kB / 436.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.3407, allocations: 374.3 kB / 436.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00212/0.3428, allocations: 1.567 MB / 438 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008913/0.3437, allocations: 301.7 kB / 438.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004632/0.3442, allocations: 153 kB / 438.5 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.3442, allocations: 2.969 kB / 438.5 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.3442, allocations: 41.14 kB / 438.5 MB, free: 5.977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.482e-06/0.3442, allocations: 7.844 kB / 438.5 MB, free: 5.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003355/0.3476, allocations: 1.386 MB / 439.9 MB, free: 5.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/0.3476, allocations: 107 kB / 440 MB, free: 5.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004064/0.348, allocations: 358.8 kB / 440.3 MB, free: 4.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.3481, allocations: 30.98 kB / 440.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.3482, allocations: 256.2 kB / 440.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.109e-05/0.3483, allocations: 117.1 kB / 440.7 MB, free: 4.605 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.3484, allocations: 78.08 kB / 440.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.277e-05/0.3485, allocations: 349.1 kB / 441.2 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004841/0.349, allocations: 173.7 kB / 441.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000523/0.3495, allocations: 253.2 kB / 441.6 MB, free: 4.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009382/0.3504, allocations: 393.3 kB / 442 MB, free: 3.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3504, allocations: 3.938 kB / 442 MB, free: 3.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001204/0.3516, allocations: 491.6 kB / 442.4 MB, free: 3.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.3517, allocations: 7.25 kB / 442.5 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.3517, allocations: 8.031 kB / 442.5 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.3517, allocations: 4.469 kB / 442.5 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009772/0.3527, allocations: 211.2 kB / 442.7 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001549/0.3542, allocations: 1.567 MB / 444.2 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003842/0.3546, allocations: 39.67 kB / 444.3 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.962e-05/0.3546, allocations: 14.31 kB / 444.3 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005729/0.3552, allocations: 275.2 kB / 444.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004828/0.3557, allocations: 242.7 kB / 444.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008215/0.3565, allocations: 376.9 kB / 445.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.164e-06/0.3565, allocations: 1.156 kB / 445.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001076/0.3576, allocations: 474.4 kB / 445.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.3576, allocations: 8.5 kB / 445.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3576, allocations: 2.156 kB / 445.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.867e-06/0.3576, allocations: 5.391 kB / 445.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005169/0.3581, allocations: 123.3 kB / 445.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.3581, allocations: 8.359 kB / 445.8 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003308/0.3585, allocations: 37.36 kB / 445.8 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.3585, allocations: 11.81 kB / 445.8 MB, free: 1.523 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.0001334/0.3586, allocations: 207.3 kB / 446 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.192e-05/0.3587, allocations: 43.02 kB / 446.1 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.3588, allocations: 50.36 kB / 446.1 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3588, allocations: 7.156 kB / 446.1 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.3588, allocations: 1.062 kB / 446.1 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.3588, allocations: 1.828 kB / 446.1 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001713/0.3605, allocations: 0.9117 MB / 447 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3605, allocations: 2.109 kB / 447 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004388/0.361, allocations: 91.42 kB / 447.1 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.361, allocations: 6.281 kB / 447.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.413e-05/0.361, allocations: 7.547 kB / 447.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.361, allocations: 2.922 kB / 447.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.361, allocations: 2.125 kB / 447.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/0.3625, allocations: 0.6796 MB / 447.8 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.3626, allocations: 137 kB / 448 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.804e-05/0.3626, allocations: 9.031 kB / 448 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003087/0.3629, allocations: 36.78 kB / 448 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.816e-05/0.363, allocations: 26.91 kB / 448 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.363, allocations: 7.531 kB / 448 MB, free: 232 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002582/0.3633, allocations: 249.3 kB / 448.3 MB, free: 100 kB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3633, allocations: 4 kB / 448.3 MB, free: 96 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006089/0.3639, allocations: 133.9 kB / 448.4 MB, free: 80 kB / 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.0001364/0.364, allocations: 107 kB / 448.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002112/0.3661, allocations: 0.6596 MB / 449.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.3662, allocations: 0 / 449.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005093/0.3667, allocations: 178.3 kB / 449.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006739/0.3673, allocations: 98.77 kB / 449.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.3694, allocations: 1.054 MB / 450.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005466/0.37, allocations: 0.8242 MB / 451.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/0.3701, allocations: 32.05 kB / 451.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3701, allocations: 0 / 451.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of Templates: time 0.01145/0.3816, allocations: 6.001 MB / 457.4 MB, free: 12.54 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.782492636004463]