Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001764/0.001764, allocations: 120.5 kB / 21.94 MB, free: 8 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002136/0.002136, allocations: 204.8 kB / 25.24 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.637/1.637, allocations: 207.6 MB / 236 MB, free: 9.973 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002058/0.002058, allocations: 47.92 kB / 348.4 MB, free: 9.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3399, allocations: 49.17 MB / 397.6 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004668/0.3446, allocations: 3.153 MB / 400.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002198/0.3468, allocations: 1.024 MB / 401.8 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003385/0.3471, allocations: 21.47 kB / 401.8 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004009/0.3475, allocations: 88.69 kB / 401.9 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002654/0.3478, allocations: 111.4 kB / 402 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006672/0.3485, allocations: 238.3 kB / 402.2 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006572/0.3491, allocations: 0.5304 MB / 402.8 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002998/0.3494, allocations: 126.9 kB / 402.9 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002928/0.3497, allocations: 205.7 kB / 403.1 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002993/0.35, allocations: 206.5 kB / 403.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.622e-05/0.3501, allocations: 52.69 kB / 403.3 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.62e-05/0.3502, allocations: 40.28 kB / 403.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.3503, allocations: 103.5 kB / 403.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001922/0.3505, allocations: 216 kB / 403.7 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006607/0.3512, allocations: 0.4943 MB / 404.2 MB, free: 5.262 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.3512, allocations: 5.25 kB / 404.2 MB, free: 5.258 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.3512, allocations: 3 kB / 404.2 MB, free: 5.258 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.908e-06/0.3512, allocations: 0 / 404.2 MB, free: 5.258 MB / 318.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.001303/0.3525, allocations: 0.6998 MB / 404.9 MB, free: 4.762 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.3525, allocations: 13.77 kB / 404.9 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.817e-05/0.3526, allocations: 53.95 kB / 405 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006643/0.3533, allocations: 319.8 kB / 405.3 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.527e-05/0.3533, allocations: 29.06 kB / 405.3 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.904e-05/0.3534, allocations: 41 kB / 405.3 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009084/0.3543, allocations: 450.6 kB / 405.8 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.3543, allocations: 7.203 kB / 405.8 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.509e-05/0.3544, allocations: 15.28 kB / 405.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.3544, allocations: 13.19 kB / 405.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009682/0.3554, allocations: 372.3 kB / 406.2 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002087/0.3574, allocations: 1.499 MB / 407.7 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008065/0.3582, allocations: 301.8 kB / 408 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004365/0.3587, allocations: 155.6 kB / 408.1 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.554e-05/0.3587, allocations: 7.344 kB / 408.1 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/0.3587, allocations: 35.94 kB / 408.2 MB, free: 2.836 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.733e-06/0.3587, allocations: 1.375 kB / 408.2 MB, free: 2.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003063/0.3618, allocations: 1.24 MB / 409.4 MB, free: 2.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.3618, allocations: 84.83 kB / 409.5 MB, free: 2.117 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004142/0.3623, allocations: 358.3 kB / 409.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/0.3623, allocations: 36.45 kB / 409.9 MB, free: 1.895 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.3624, allocations: 250.6 kB / 410.1 MB, free: 1.684 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.913e-05/0.3625, allocations: 118.9 kB / 410.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.3626, allocations: 80.03 kB / 410.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.357e-05/0.3627, allocations: 353.6 kB / 410.7 MB, free: 1.207 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004532/0.3632, allocations: 173.5 kB / 410.8 MB, free: 1.152 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005148/0.3637, allocations: 243.6 kB / 411.1 MB, free: 1.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000883/0.3646, allocations: 404.6 kB / 411.5 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3646, allocations: 0 / 411.5 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001071/0.3657, allocations: 499.4 kB / 411.9 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.3657, allocations: 5.281 kB / 411.9 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.3657, allocations: 2.906 kB / 412 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.3657, allocations: 11.66 kB / 412 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008625/0.3666, allocations: 206.1 kB / 412.2 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001732/0.3683, allocations: 1.481 MB / 413.6 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003787/0.3687, allocations: 39.67 kB / 413.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.815e-05/0.3687, allocations: 10.25 kB / 413.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005759/0.3693, allocations: 276.4 kB / 414 MB, free: 14.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004781/0.3698, allocations: 231.8 kB / 414.2 MB, free: 14.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008187/0.3706, allocations: 376.7 kB / 414.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.605e-06/0.3706, allocations: 1.344 kB / 414.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001025/0.3716, allocations: 468 kB / 415 MB, free: 14.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.3716, allocations: 6.469 kB / 415 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.3716, allocations: 1.812 kB / 415 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.394e-06/0.3716, allocations: 5.469 kB / 415 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004721/0.3721, allocations: 122.8 kB / 415.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.3721, allocations: 11.09 kB / 415.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.3724, allocations: 33.5 kB / 415.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.925e-05/0.3725, allocations: 21.36 kB / 415.2 MB, free: 14.14 MB / 334.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.0001958/0.3727, allocations: 199.7 kB / 415.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.017e-05/0.3727, allocations: 42.33 kB / 415.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001103/0.3728, allocations: 46.22 kB / 415.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.3728, allocations: 11.56 kB / 415.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.3729, allocations: 0 / 415.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.3729, allocations: 5.141 kB / 415.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001831/0.3747, allocations: 0.8839 MB / 416.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3747, allocations: 1.875 kB / 416.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004182/0.3751, allocations: 85.16 kB / 416.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.3751, allocations: 2.844 kB / 416.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.797e-05/0.3752, allocations: 7.031 kB / 416.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.3752, allocations: 6.969 kB / 416.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3752, allocations: 1.438 kB / 416.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.3766, allocations: 0.6839 MB / 417.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/0.3768, allocations: 63.19 kB / 417.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.003e-05/0.3768, allocations: 7.469 kB / 417.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002885/0.3771, allocations: 37.77 kB / 417.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.3772, allocations: 28.42 kB / 417.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.3772, allocations: 6.406 kB / 417.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000338/0.3776, allocations: 249.9 kB / 417.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3776, allocations: 0 / 417.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006174/0.3782, allocations: 145.8 kB / 417.7 MB, free: 12.47 MB / 334.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.0001362/0.3783, allocations: 105.4 kB / 417.8 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.3803, allocations: 0.6547 MB / 418.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.3803, allocations: 1.438 kB / 418.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000458/0.3808, allocations: 171.4 kB / 418.6 MB, free: 12.01 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006924/0.3815, allocations: 113.1 kB / 418.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.3836, allocations: 1.052 MB / 419.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004939/0.3841, allocations: 0.8198 MB / 420.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.3843, allocations: 36.14 kB / 420.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of SimCode: time 1.242e-06/0.3843, allocations: 0 / 420.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of Templates: time 0.01093/0.3952, allocations: 6.075 MB / 426.7 MB, free: 5.539 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.499660716857761]