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.001457/0.001457, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001626/0.001626, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.553/1.553, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.002242/0.002242, allocations: 47.91 kB / 378.2 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2413, allocations: 53.37 MB / 431.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004763/0.2461, allocations: 2.899 MB / 434.5 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002155/0.2482, allocations: 0.9659 MB / 435.4 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002237/0.2484, allocations: 23.81 kB / 435.5 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003296/0.2488, allocations: 83.23 kB / 435.5 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002763/0.2491, allocations: 107.1 kB / 435.6 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005873/0.2496, allocations: 247.1 kB / 435.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006022/0.2502, allocations: 0.5224 MB / 436.4 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002529/0.2505, allocations: 125.5 kB / 436.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002526/0.2507, allocations: 203.1 kB / 436.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002767/0.251, allocations: 211 kB / 436.9 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.928e-05/0.2511, allocations: 44 kB / 437 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.479e-05/0.2512, allocations: 44 kB / 437 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.2513, allocations: 99.62 kB / 437.1 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001909/0.2515, allocations: 179 kB / 437.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005568/0.252, allocations: 0.4963 MB / 437.8 MB, free: 492 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.252, allocations: 3.938 kB / 437.8 MB, free: 488 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.252, allocations: 0 / 437.8 MB, free: 488 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.252, allocations: 0 / 437.8 MB, free: 488 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.001403/0.2534, allocations: 0.7077 MB / 438.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.2535, allocations: 12.03 kB / 438.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.2536, allocations: 52.61 kB / 438.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000562/0.2541, allocations: 298.2 kB / 438.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.497e-05/0.2542, allocations: 29.38 kB / 438.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.017e-05/0.2542, allocations: 36.38 kB / 438.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009984/0.2552, allocations: 0.4989 MB / 439.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/0.2553, allocations: 7.953 kB / 439.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.946e-05/0.2553, allocations: 16 kB / 439.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.2553, allocations: 12 kB / 439.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.2563, allocations: 375.6 kB / 439.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002161/0.2585, allocations: 1.356 MB / 441.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008228/0.2593, allocations: 299.4 kB / 441.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004271/0.2597, allocations: 156.8 kB / 441.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.2598, allocations: 0 / 441.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.2598, allocations: 46.48 kB / 441.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.403e-06/0.2598, allocations: 0 / 441.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003212/0.263, allocations: 1.231 MB / 442.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.12e-05/0.2631, allocations: 106.8 kB / 443 MB, free: 11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004077/0.2635, allocations: 345.6 kB / 443.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.471e-05/0.2635, allocations: 33.7 kB / 443.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/0.2637, allocations: 248.6 kB / 443.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.537e-05/0.2638, allocations: 115 kB / 443.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/0.264, allocations: 82.09 kB / 443.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.2641, allocations: 350.8 kB / 444.1 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004775/0.2646, allocations: 174.5 kB / 444.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000572/0.2652, allocations: 305 kB / 444.6 MB, free: 9.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009075/0.2661, allocations: 392 kB / 445 MB, free: 8.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2661, allocations: 0 / 445 MB, free: 8.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001148/0.2672, allocations: 0.4892 MB / 445.5 MB, free: 8.383 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.2672, allocations: 7.984 kB / 445.5 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.2673, allocations: 4 kB / 445.5 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.2673, allocations: 4 kB / 445.5 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008892/0.2682, allocations: 211.8 kB / 445.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001706/0.2699, allocations: 1.457 MB / 447.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003551/0.2702, allocations: 39.89 kB / 447.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.238e-05/0.2703, allocations: 16 kB / 447.2 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005505/0.2708, allocations: 276.8 kB / 447.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005168/0.2713, allocations: 297.1 kB / 447.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008097/0.2721, allocations: 371.7 kB / 448.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.843e-06/0.2721, allocations: 0 / 448.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001044/0.2732, allocations: 465.2 kB / 448.6 MB, free: 5.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.2732, allocations: 8 kB / 448.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.2732, allocations: 0 / 448.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.765e-06/0.2732, allocations: 7.984 kB / 448.6 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000518/0.2737, allocations: 116.1 kB / 448.7 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.2738, allocations: 8 kB / 448.7 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003331/0.2741, allocations: 35.95 kB / 448.8 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.838e-05/0.2741, allocations: 23.88 kB / 448.8 MB, free: 4.895 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.0001805/0.2743, allocations: 204.1 kB / 449 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.535e-05/0.2744, allocations: 35.77 kB / 449 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001082/0.2745, allocations: 44.09 kB / 449.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.2745, allocations: 4 kB / 449.1 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.2745, allocations: 4 kB / 449.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.2745, allocations: 11.86 kB / 449.1 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001725/0.2762, allocations: 0.7942 MB / 449.9 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.2762, allocations: 0 / 449.9 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004803/0.2767, allocations: 87.88 kB / 450 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/0.2767, allocations: 3.938 kB / 450 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.922e-05/0.2767, allocations: 8 kB / 450 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.2767, allocations: 4 kB / 450 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.2767, allocations: 0 / 450 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.2782, allocations: 0.6759 MB / 450.7 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.2784, allocations: 63.72 kB / 450.7 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.665e-05/0.2785, allocations: 8 kB / 450.7 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003247/0.2788, allocations: 35.95 kB / 450.8 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.727e-05/0.2789, allocations: 23.95 kB / 450.8 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.151e-05/0.2789, allocations: 15.94 kB / 450.8 MB, free: 2.789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002647/0.2792, allocations: 231.2 kB / 451 MB, free: 2.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2792, allocations: 0 / 451 MB, free: 2.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005887/0.2798, allocations: 140 kB / 451.2 MB, free: 2.434 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.0001379/0.2799, allocations: 107.2 kB / 451.3 MB, free: 2.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001983/0.2819, allocations: 0.6561 MB / 451.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.2819, allocations: 0 / 451.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004771/0.2824, allocations: 175.8 kB / 452.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00067/0.283, allocations: 105.7 kB / 452.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.2851, allocations: 1.022 MB / 453.2 MB, free: 344 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.2853, allocations: 216 kB / 453.4 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002633/0.2856, allocations: 59.19 kB / 453.5 MB, free: 44 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.2857, allocations: 27.44 kB / 453.5 MB, free: 16 kB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2857, allocations: 4 kB / 453.5 MB, free: 12 kB / 350.1 MB Notification: Performance of Templates: time 0.01133/0.297, allocations: 5.356 MB / 458.9 MB, free: 10.75 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.668594470713288]