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 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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=500,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=500,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] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001755/0.001755, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003253/0.003253, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.947/1.947, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB 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.001886/0.001886, allocations: 68.03 kB / 359 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3424, allocations: 50.54 MB / 409.5 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.007077/0.3495, allocations: 3.135 MB / 412.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002491/0.3521, allocations: 0.997 MB / 413.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002478/0.3523, allocations: 11.94 kB / 413.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004205/0.3528, allocations: 87.17 kB / 413.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002616/0.3531, allocations: 99.08 kB / 413.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006698/0.3538, allocations: 235.6 kB / 414.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006395/0.3544, allocations: 0.5107 MB / 414.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003662/0.3548, allocations: 173.2 kB / 414.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002342/0.3551, allocations: 191.2 kB / 415 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003133/0.3554, allocations: 207 kB / 415.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.237e-05/0.3555, allocations: 44 kB / 415.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.172e-05/0.3555, allocations: 44 kB / 415.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.3557, allocations: 107.6 kB / 415.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002061/0.3559, allocations: 210.8 kB / 415.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006386/0.3565, allocations: 497.8 kB / 416.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.3566, allocations: 0 / 416.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3566, allocations: 0 / 416.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.3566, allocations: 0 / 416.1 MB, free: 10.9 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.358, allocations: 0.7869 MB / 416.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3581, allocations: 8.031 kB / 416.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.838e-05/0.3582, allocations: 56.61 kB / 416.9 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005526/0.3587, allocations: 368 kB / 417.3 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.475e-05/0.3588, allocations: 29.38 kB / 417.3 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.806e-05/0.3588, allocations: 36.38 kB / 417.3 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000922/0.3598, allocations: 463.5 kB / 417.8 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.321e-05/0.3598, allocations: 7.891 kB / 417.8 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.517e-05/0.3599, allocations: 16 kB / 417.8 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.3599, allocations: 8 kB / 417.8 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009989/0.3609, allocations: 379.6 kB / 418.2 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002761/0.3636, allocations: 1.563 MB / 419.7 MB, free: 6.996 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.3648, allocations: 318.8 kB / 420.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006344/0.3654, allocations: 164.6 kB / 420.2 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.449e-05/0.3655, allocations: 7.938 kB / 420.2 MB, free: 6.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.348e-05/0.3656, allocations: 38.56 kB / 420.3 MB, free: 6.453 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.955e-06/0.3656, allocations: 0 / 420.3 MB, free: 6.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.004682/0.3703, allocations: 1.389 MB / 421.7 MB, free: 4.969 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.3704, allocations: 106.8 kB / 421.8 MB, free: 4.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006397/0.371, allocations: 361.5 kB / 422.1 MB, free: 4.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.901e-05/0.3711, allocations: 33.7 kB / 422.1 MB, free: 4.441 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002909/0.3714, allocations: 244.3 kB / 422.4 MB, free: 4.195 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.3716, allocations: 123 kB / 422.5 MB, free: 4.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000203/0.3718, allocations: 74.14 kB / 422.6 MB, free: 3.996 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002463/0.372, allocations: 354.8 kB / 422.9 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007305/0.3728, allocations: 170.5 kB / 423.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008122/0.3736, allocations: 249.7 kB / 423.3 MB, free: 3.195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.3751, allocations: 399.9 kB / 423.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.3751, allocations: 0 / 423.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001809/0.3769, allocations: 0.493 MB / 424.2 MB, free: 2.277 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.586e-05/0.377, allocations: 8 kB / 424.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.377, allocations: 0 / 424.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.94e-05/0.377, allocations: 4.219 kB / 424.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.3784, allocations: 211.7 kB / 424.4 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002677/0.3811, allocations: 1.585 MB / 426 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005828/0.3817, allocations: 31.97 kB / 426 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.564e-05/0.3818, allocations: 19.98 kB / 426.1 MB, free: 296 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008227/0.3826, allocations: 268.9 kB / 426.3 MB, free: 24 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007891/0.3834, allocations: 241.8 kB / 426.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001005/0.3844, allocations: 379.7 kB / 426.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.444e-06/0.3845, allocations: 0 / 426.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001594/0.3861, allocations: 469 kB / 427.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.3861, allocations: 4 kB / 427.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.3861, allocations: 4 kB / 427.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.919e-06/0.3861, allocations: 4 kB / 427.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007214/0.3869, allocations: 123.8 kB / 427.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.3869, allocations: 12.09 kB / 427.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004699/0.3874, allocations: 31.97 kB / 427.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.454e-05/0.3874, allocations: 19.98 kB / 427.6 MB, free: 14.69 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.0002488/0.3877, allocations: 204.1 kB / 427.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.3878, allocations: 39.72 kB / 427.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001405/0.3879, allocations: 48.25 kB / 427.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.388, allocations: 15.88 kB / 427.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.388, allocations: 0 / 427.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/0.388, allocations: 0 / 427.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002382/0.3904, allocations: 0.9193 MB / 428.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.3904, allocations: 3.938 kB / 428.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006103/0.391, allocations: 83.94 kB / 428.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.239e-06/0.391, allocations: 3.938 kB / 428.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.525e-05/0.3911, allocations: 8 kB / 428.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.3911, allocations: 8.125 kB / 428.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3911, allocations: 0 / 428.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002123/0.3932, allocations: 0.671 MB / 429.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002001/0.3935, allocations: 140.9 kB / 429.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.156e-05/0.3935, allocations: 12 kB / 429.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004765/0.394, allocations: 31.95 kB / 429.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.3941, allocations: 27.91 kB / 429.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.364e-05/0.3942, allocations: 16.12 kB / 429.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004021/0.3946, allocations: 247.2 kB / 430.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3946, allocations: 0 / 430.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007806/0.3954, allocations: 139.9 kB / 430.2 MB, free: 11.97 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.0001795/0.3956, allocations: 107.2 kB / 430.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00288/0.3985, allocations: 0.6918 MB / 431 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.818e-06/0.3985, allocations: 0 / 431 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007744/0.3993, allocations: 179.8 kB / 431.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.4003, allocations: 112 kB / 431.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002514/0.4029, allocations: 1.012 MB / 432.3 MB, free: 9.836 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005114/0.4034, allocations: 0.8195 MB / 433.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002737/0.4037, allocations: 63.22 kB / 433.2 MB, free: 8.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.4038, allocations: 35.44 kB / 433.2 MB, free: 8.891 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4038, allocations: 0 / 433.2 MB, free: 8.891 MB / 350.1 MB Notification: Performance of Templates: time 0.01024/0.4141, allocations: 4.696 MB / 437.9 MB, free: 4.23 MB / 350.1 MB 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/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_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches