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.001664/0.001664, allocations: 79.59 kB / 21.18 MB, free: 3.383 MB / 18.57 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.001824/0.001824, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 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.018/1.018, allocations: 177.1 MB / 205 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] 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 1.974e-06/1.974e-06, allocations: 0 / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.268e-05/3.465e-05, allocations: 2.312 kB / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004031/0.004066, allocations: 3.08 MB / 276 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001933/0.005999, allocations: 0.9775 MB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003423/0.006342, allocations: 15.88 kB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003954/0.006737, allocations: 91.17 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002774/0.007015, allocations: 111 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005718/0.007586, allocations: 231.5 kB / 277.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005426/0.008129, allocations: 0.53 MB / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002482/0.008377, allocations: 121.6 kB / 278.1 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003101/0.008687, allocations: 279.3 kB / 278.4 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002122/0.008899, allocations: 155.5 kB / 278.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.118e-05/0.008951, allocations: 40 kB / 278.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.47e-05/0.008995, allocations: 44 kB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.974e-05/0.009095, allocations: 107.6 kB / 278.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.009215, allocations: 139.6 kB / 278.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003875/0.009603, allocations: 350.6 kB / 279.2 MB, free: 11.28 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.009607, allocations: 4 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.009608, allocations: 0 / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.009616, allocations: 0 / 279.2 MB, free: 11.27 MB / 266.7 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.0008805/0.0105, allocations: 0.7725 MB / 280 MB, free: 10.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.01054, allocations: 16.03 kB / 280 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.01065, allocations: 80.61 kB / 280.1 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004006/0.01105, allocations: 312.3 kB / 280.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.53e-05/0.01109, allocations: 29.38 kB / 280.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.111e-05/0.01115, allocations: 36.38 kB / 280.4 MB, free: 9.973 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005082/0.01166, allocations: 438.6 kB / 280.9 MB, free: 9.492 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.01168, allocations: 8.078 kB / 280.9 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/0.0117, allocations: 16.38 kB / 280.9 MB, free: 9.469 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.409e-05/0.01172, allocations: 11.94 kB / 280.9 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002601/0.01198, allocations: 169.7 kB / 281.1 MB, free: 9.289 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.01351, allocations: 1.572 MB / 282.6 MB, free: 7.641 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003891/0.0139, allocations: 191.2 kB / 282.8 MB, free: 7.438 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.01401, allocations: 67.64 kB / 282.9 MB, free: 7.367 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.01404, allocations: 7.984 kB / 282.9 MB, free: 7.359 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.01407, allocations: 41.39 kB / 282.9 MB, free: 7.309 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.244e-06/0.01407, allocations: 4 kB / 282.9 MB, free: 7.305 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.001516/0.01559, allocations: 0.7896 MB / 283.7 MB, free: 6.449 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.01564, allocations: 106.8 kB / 283.8 MB, free: 6.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/0.0159, allocations: 374.6 kB / 284.2 MB, free: 5.938 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/0.01593, allocations: 29.7 kB / 284.2 MB, free: 5.902 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001435/0.01607, allocations: 295.5 kB / 284.5 MB, free: 5.609 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.614e-05/0.01615, allocations: 118.9 kB / 284.6 MB, free: 5.492 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.364e-05/0.01624, allocations: 83.84 kB / 284.7 MB, free: 5.402 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.01638, allocations: 0.5196 MB / 285.2 MB, free: 4.871 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.01649, allocations: 69.64 kB / 285.3 MB, free: 4.801 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001756/0.01667, allocations: 236.8 kB / 285.5 MB, free: 4.508 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000245/0.01691, allocations: 237.5 kB / 285.8 MB, free: 4.238 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.01691, allocations: 0 / 285.8 MB, free: 4.238 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0003838/0.0173, allocations: 325.1 kB / 286.1 MB, free: 3.914 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.01732, allocations: 7.938 kB / 286.1 MB, free: 3.906 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.01732, allocations: 4 kB / 286.1 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.01734, allocations: 4 kB / 286.1 MB, free: 3.898 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003831/0.01773, allocations: 164 kB / 286.3 MB, free: 3.738 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009399/0.01867, allocations: 1.837 MB / 288.1 MB, free: 1.781 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.01881, allocations: 28.11 kB / 288.1 MB, free: 1.754 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.01883, allocations: 15.98 kB / 288.1 MB, free: 1.738 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001589/0.01899, allocations: 199.8 kB / 288.3 MB, free: 1.539 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001831/0.01918, allocations: 232.8 kB / 288.6 MB, free: 1.254 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002379/0.01941, allocations: 237.3 kB / 288.8 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.423e-06/0.01942, allocations: 4.031 kB / 288.8 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0003486/0.01976, allocations: 301.2 kB / 289.1 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.614e-06/0.01977, allocations: 4 kB / 289.1 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-06/0.01978, allocations: 4 kB / 289.1 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.208e-06/0.01978, allocations: 4 kB / 289.1 MB, free: 0.668 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002222/0.02, allocations: 111.8 kB / 289.2 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.02001, allocations: 4.219 kB / 289.2 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.02012, allocations: 27.97 kB / 289.2 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.02013, allocations: 19.94 kB / 289.3 MB, free: 0.5078 MB / 266.7 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.0001259/0.02026, allocations: 295.9 kB / 289.6 MB, free: 216 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.01e-05/0.02031, allocations: 47.77 kB / 289.6 MB, free: 168 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.361e-05/0.02035, allocations: 44.09 kB / 289.6 MB, free: 124 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.02036, allocations: 4 kB / 289.6 MB, free: 120 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.02036, allocations: 0 / 289.6 MB, free: 120 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.02036, allocations: 3.984 kB / 289.6 MB, free: 116 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009629/0.02133, allocations: 0.6718 MB / 290.3 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.02133, allocations: 8 kB / 290.3 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001894/0.02152, allocations: 75.89 kB / 290.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.02152, allocations: 0 / 290.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.02154, allocations: 8 kB / 290.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.02154, allocations: 7.938 kB / 290.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.02155, allocations: 0 / 290.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004215/0.02197, allocations: 475.4 kB / 290.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.114e-05/0.02205, allocations: 63.7 kB / 290.9 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/0.02207, allocations: 8 kB / 291 MB, free: 14.72 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.02218, allocations: 23.92 kB / 291 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.313e-05/0.02225, allocations: 27.95 kB / 291 MB, free: 14.67 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.02226, allocations: 8 kB / 291 MB, free: 14.66 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001491/0.02241, allocations: 251.1 kB / 291.3 MB, free: 14.41 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02241, allocations: 0 / 291.3 MB, free: 14.41 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003444/0.02275, allocations: 132 kB / 291.4 MB, free: 14.29 MB / 282.7 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 9.815e-05/0.02285, allocations: 111.1 kB / 291.5 MB, free: 14.16 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006039/0.02346, allocations: 401.9 kB / 291.9 MB, free: 13.77 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.02346, allocations: 4.25 kB / 291.9 MB, free: 13.76 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.02357, allocations: 103.7 kB / 292 MB, free: 13.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/0.024, allocations: 107.4 kB / 292.1 MB, free: 13.56 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.02544, allocations: 0.8944 MB / 293 MB, free: 12.62 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.589e-05/0.02551, allocations: 113.7 kB / 293.1 MB, free: 12.48 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.02567, allocations: 55.23 kB / 293.2 MB, free: 12.43 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.935e-05/0.02575, allocations: 32.5 kB / 293.2 MB, free: 12.4 MB / 282.7 MB Notification: Performance of SimCode: time 1.082e-06/0.02575, allocations: 0 / 293.2 MB, free: 12.4 MB / 282.7 MB Notification: Performance of Templates: time 0.007518/0.03327, allocations: 4.832 MB / 298 MB, free: 7.652 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.347736784722656]