Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.00155/0.00155, allocations: 117.9 kB / 21.18 MB, free: 0.6289 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.001669/0.001669, allocations: 203.6 kB / 24.46 MB, free: 3.902 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.809/1.809, allocations: 230.5 MB / 258.1 MB, free: 8.137 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 67.83 kB / 378.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3297, allocations: 53.32 MB / 432 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004884/0.3346, allocations: 3.148 MB / 435.2 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.3365, allocations: 1.009 MB / 436.2 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002124/0.3367, allocations: 15.88 kB / 436.2 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003708/0.3371, allocations: 87.22 kB / 436.3 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002404/0.3373, allocations: 103.1 kB / 436.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005864/0.3379, allocations: 246.3 kB / 436.6 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006015/0.3385, allocations: 0.5146 MB / 437.2 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002689/0.3388, allocations: 121.3 kB / 437.3 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002496/0.3391, allocations: 203.1 kB / 437.5 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002741/0.3393, allocations: 206.9 kB / 437.7 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.654e-05/0.3394, allocations: 40 kB / 437.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.739e-05/0.3394, allocations: 40 kB / 437.8 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.3396, allocations: 107.7 kB / 437.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001963/0.3398, allocations: 218.7 kB / 438.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005859/0.3404, allocations: 0.4993 MB / 438.6 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3404, allocations: 0 / 438.6 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3404, allocations: 0 / 438.6 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.777e-06/0.3404, allocations: 0 / 438.6 MB, free: 0.8086 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.001413/0.3418, allocations: 0.7791 MB / 439.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.3418, allocations: 8.922 kB / 439.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.3419, allocations: 52.61 kB / 439.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006152/0.3425, allocations: 376 kB / 439.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/0.3426, allocations: 33.36 kB / 439.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.811e-05/0.3427, allocations: 40.36 kB / 439.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009243/0.3436, allocations: 451.5 kB / 440.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.3436, allocations: 11.94 kB / 440.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.763e-05/0.3437, allocations: 16 kB / 440.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.3437, allocations: 8 kB / 440.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009876/0.3447, allocations: 379.6 kB / 440.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002192/0.3469, allocations: 1.563 MB / 442.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008198/0.3477, allocations: 298.8 kB / 442.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000445/0.3481, allocations: 165.2 kB / 442.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/0.3481, allocations: 3.938 kB / 442.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.3482, allocations: 38.56 kB / 442.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.513e-06/0.3482, allocations: 0 / 442.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.0033/0.3515, allocations: 1.385 MB / 444.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.548e-05/0.3516, allocations: 106.8 kB / 444.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004094/0.352, allocations: 361.6 kB / 444.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.833e-05/0.352, allocations: 29.7 kB / 444.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.3522, allocations: 248.3 kB / 444.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.923e-05/0.3523, allocations: 115 kB / 445 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.3525, allocations: 82.12 kB / 445.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.3526, allocations: 346.8 kB / 445.4 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004727/0.3531, allocations: 170.5 kB / 445.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000539/0.3536, allocations: 261.6 kB / 445.8 MB, free: 9.129 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009406/0.3546, allocations: 395.9 kB / 446.2 MB, free: 8.715 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3546, allocations: 0 / 446.2 MB, free: 8.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00113/0.3557, allocations: 492.9 kB / 446.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.3557, allocations: 8 kB / 446.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.3557, allocations: 3.938 kB / 446.7 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.3558, allocations: 4 kB / 446.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009133/0.3567, allocations: 211.9 kB / 446.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00186/0.3585, allocations: 1.572 MB / 448.5 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003293/0.3589, allocations: 44.02 kB / 448.5 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.114e-05/0.3589, allocations: 19.98 kB / 448.6 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005593/0.3595, allocations: 272.9 kB / 448.8 MB, free: 5.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004978/0.36, allocations: 249.6 kB / 449.1 MB, free: 5.684 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008369/0.3608, allocations: 379.6 kB / 449.4 MB, free: 5.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.643e-06/0.3608, allocations: 0 / 449.4 MB, free: 5.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.00104/0.3618, allocations: 477.1 kB / 449.9 MB, free: 4.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.3618, allocations: 4 kB / 449.9 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.485e-06/0.3618, allocations: 4 kB / 449.9 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.501e-06/0.3618, allocations: 4 kB / 449.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000472/0.3623, allocations: 115.9 kB / 450 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.3623, allocations: 7.938 kB / 450 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000295/0.3626, allocations: 40.11 kB / 450.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.3627, allocations: 19.94 kB / 450.1 MB, free: 4.621 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.0001707/0.3628, allocations: 204.1 kB / 450.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.871e-05/0.3629, allocations: 39.72 kB / 450.3 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.821e-05/0.363, allocations: 48.23 kB / 450.4 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.363, allocations: 7.938 kB / 450.4 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.363, allocations: 0 / 450.4 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.363, allocations: 4 kB / 450.4 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001734/0.3647, allocations: 0.9155 MB / 451.3 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3647, allocations: 0 / 451.3 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000419/0.3652, allocations: 91.8 kB / 451.4 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.3652, allocations: 0 / 451.4 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.545e-05/0.3652, allocations: 12 kB / 451.4 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.3652, allocations: 4 kB / 451.4 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3652, allocations: 4.125 kB / 451.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.3667, allocations: 0.6677 MB / 452.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.3668, allocations: 140.8 kB / 452.2 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.216e-05/0.3669, allocations: 12 kB / 452.2 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002924/0.3672, allocations: 35.95 kB / 452.3 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.516e-05/0.3673, allocations: 23.97 kB / 452.3 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.3673, allocations: 11.94 kB / 452.3 MB, free: 2.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002821/0.3676, allocations: 247.2 kB / 452.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3676, allocations: 0 / 452.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005245/0.3681, allocations: 135.9 kB / 452.7 MB, free: 1.914 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.0001369/0.3682, allocations: 111.1 kB / 452.8 MB, free: 1.797 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00194/0.3702, allocations: 0.6606 MB / 453.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3702, allocations: 0 / 453.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004548/0.3706, allocations: 167.8 kB / 453.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006368/0.3713, allocations: 101.3 kB / 453.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/0.3732, allocations: 1.065 MB / 454.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004737/0.3737, allocations: 0.8234 MB / 455.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.3738, allocations: 31.44 kB / 455.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3738, allocations: 0 / 455.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of Templates: time 0.009414/0.3832, allocations: 5.995 MB / 461.6 MB, free: 8.902 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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: 8.226304636802524]