Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001245/0.001245, allocations: 115.6 kB / 20.43 MB, free: 1.449 MB / 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.001445/0.001445, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.545/1.545, allocations: 230.6 MB / 257.5 MB, free: 8.02 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+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_4.1.0_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_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 43.92 kB / 378.3 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.285, allocations: 53.37 MB / 431.6 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004716/0.2897, allocations: 3.156 MB / 434.8 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00252/0.2922, allocations: 1.012 MB / 435.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004073/0.2926, allocations: 19.88 kB / 435.8 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004829/0.2931, allocations: 87.17 kB / 435.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003072/0.2934, allocations: 111.1 kB / 436 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000905/0.2943, allocations: 239.5 kB / 436.2 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007801/0.2951, allocations: 0.5146 MB / 436.7 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004008/0.2955, allocations: 129.7 kB / 436.9 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003112/0.2958, allocations: 207.1 kB / 437.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003323/0.2961, allocations: 207 kB / 437.3 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.482e-05/0.2962, allocations: 40 kB / 437.3 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.031e-05/0.2963, allocations: 44 kB / 437.4 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001802/0.2964, allocations: 107.6 kB / 437.5 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000233/0.2967, allocations: 214.8 kB / 437.7 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007078/0.2974, allocations: 0.4912 MB / 438.2 MB, free: 352 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.2974, allocations: 0 / 438.2 MB, free: 352 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.2974, allocations: 0 / 438.2 MB, free: 352 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.2974, allocations: 0 / 438.2 MB, free: 352 kB / 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.001498/0.2989, allocations: 0.7077 MB / 438.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.2989, allocations: 12.03 kB / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.2991, allocations: 56.61 kB / 438.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006845/0.2997, allocations: 294.2 kB / 439.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.775e-05/0.2998, allocations: 25.38 kB / 439.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.081e-05/0.2998, allocations: 36.38 kB / 439.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009317/0.3008, allocations: 463.5 kB / 439.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.74e-05/0.3008, allocations: 3.953 kB / 439.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.117e-05/0.3008, allocations: 16 kB / 439.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.3009, allocations: 12 kB / 439.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009782/0.3018, allocations: 379.6 kB / 440.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002303/0.3041, allocations: 1.5 MB / 441.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008525/0.305, allocations: 295.4 kB / 441.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004389/0.3054, allocations: 160.7 kB / 442.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.761e-05/0.3055, allocations: 11.94 kB / 442.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.3055, allocations: 34.56 kB / 442.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 3.686e-06/0.3055, allocations: 3.984 kB / 442.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003304/0.3088, allocations: 1.239 MB / 443.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.362e-05/0.3089, allocations: 106.8 kB / 443.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000457/0.3094, allocations: 357.6 kB / 443.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.3094, allocations: 33.7 kB / 443.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.3096, allocations: 252.4 kB / 444.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.863e-05/0.3097, allocations: 119 kB / 444.2 MB, free: 9.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.3098, allocations: 78.12 kB / 444.3 MB, free: 9.906 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.31, allocations: 346.8 kB / 444.6 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004748/0.3105, allocations: 174.5 kB / 444.8 MB, free: 9.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005311/0.311, allocations: 261.6 kB / 445.1 MB, free: 9.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009939/0.312, allocations: 391.3 kB / 445.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.312, allocations: 4 kB / 445.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001132/0.3131, allocations: 0.4895 MB / 445.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.3132, allocations: 4 kB / 445.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.3132, allocations: 4 kB / 445.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.3132, allocations: 4 kB / 446 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008859/0.3141, allocations: 207.9 kB / 446.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001957/0.316, allocations: 1.472 MB / 447.6 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003362/0.3164, allocations: 35.95 kB / 447.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/0.3164, allocations: 16 kB / 447.7 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005545/0.317, allocations: 269 kB / 447.9 MB, free: 6.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004756/0.3174, allocations: 249.6 kB / 448.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008122/0.3182, allocations: 371.4 kB / 448.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.653e-06/0.3182, allocations: 0 / 448.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001049/0.3193, allocations: 477.3 kB / 449 MB, free: 4.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.3193, allocations: 4 kB / 449 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.3193, allocations: 4 kB / 449 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.801e-06/0.3193, allocations: 8.219 kB / 449 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004929/0.3198, allocations: 119.8 kB / 449.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.3198, allocations: 11.92 kB / 449.2 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002992/0.3201, allocations: 35.95 kB / 449.2 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.054e-05/0.3202, allocations: 16 kB / 449.2 MB, free: 4.734 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.0001813/0.3203, allocations: 208.1 kB / 449.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.242e-05/0.3204, allocations: 39.72 kB / 449.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.914e-05/0.3205, allocations: 52.19 kB / 449.5 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.3205, allocations: 11.88 kB / 449.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3205, allocations: 0 / 449.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3205, allocations: 3.984 kB / 449.5 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001759/0.3223, allocations: 0.8833 MB / 450.4 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.3223, allocations: 0 / 450.4 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004237/0.3227, allocations: 92 kB / 450.5 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.3227, allocations: 0 / 450.5 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.3227, allocations: 8 kB / 450.5 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.3227, allocations: 4 kB / 450.5 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3227, allocations: 0 / 450.5 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/0.3242, allocations: 0.6716 MB / 451.2 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/0.3244, allocations: 67.73 kB / 451.2 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.881e-05/0.3244, allocations: 8.125 kB / 451.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003007/0.3247, allocations: 35.95 kB / 451.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.65e-05/0.3248, allocations: 31.94 kB / 451.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.3248, allocations: 12 kB / 451.3 MB, free: 2.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002801/0.3251, allocations: 247.1 kB / 451.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3251, allocations: 4 kB / 451.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005451/0.3256, allocations: 139.9 kB / 451.7 MB, free: 2.137 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.0001338/0.3258, allocations: 95.25 kB / 451.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00192/0.3277, allocations: 0.6607 MB / 452.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3277, allocations: 0 / 452.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004578/0.3282, allocations: 176.5 kB / 452.6 MB, free: 1.199 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006544/0.3288, allocations: 108 kB / 452.7 MB, free: 1.105 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001952/0.3308, allocations: 1.01 MB / 453.8 MB, free: 60 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005849/0.3313, allocations: 0.8311 MB / 454.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002366/0.3316, allocations: 59.23 kB / 454.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.3317, allocations: 31.44 kB / 454.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3317, allocations: 4 kB / 454.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of Templates: time 0.01099/0.3427, allocations: 4.949 MB / 459.6 MB, free: 10.19 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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.823866273043677]