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.000753/0.000753, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001145/0.001898, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006774/0.0006774, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009914/0.001669, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.8948/0.8948, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1038/0.9986, allocations: 53.65 MB / 243.4 MB, free: 15.52 MB / 250.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.363e-06/1.363e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.45e-05/1.586e-05, allocations: 6.109 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005742/0.005758, allocations: 3.108 MB / 247.8 MB, free: 11.1 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.007327, allocations: 1.028 MB / 248.8 MB, free: 10.06 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001968/0.007524, allocations: 23.81 kB / 248.9 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002408/0.007765, allocations: 83.17 kB / 248.9 MB, free: 9.957 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002146/0.00798, allocations: 111 kB / 249.1 MB, free: 9.848 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003426/0.01141, allocations: 235.4 kB / 249.3 MB, free: 9.617 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004736/0.01188, allocations: 0.5184 MB / 249.8 MB, free: 9.098 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.0121, allocations: 122.3 kB / 249.9 MB, free: 8.973 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003464/0.01244, allocations: 334.3 kB / 250.2 MB, free: 8.645 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002124/0.01266, allocations: 151.5 kB / 250.4 MB, free: 8.496 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.848e-05/0.01271, allocations: 44 kB / 250.4 MB, free: 8.453 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.718e-05/0.01277, allocations: 40 kB / 250.5 MB, free: 8.414 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.062e-05/0.01286, allocations: 83.67 kB / 250.6 MB, free: 8.332 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000116/0.01298, allocations: 107.8 kB / 250.7 MB, free: 8.227 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.01333, allocations: 310.7 kB / 251 MB, free: 7.922 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.01334, allocations: 3.938 kB / 251 MB, free: 7.918 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.01334, allocations: 0 / 251 MB, free: 7.918 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.01335, allocations: 4 kB / 251 MB, free: 7.914 MB / 250.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.003884/0.01723, allocations: 0.7373 MB / 251.7 MB, free: 7.152 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.01727, allocations: 8.031 kB / 251.7 MB, free: 7.145 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.745e-05/0.01736, allocations: 68.83 kB / 251.8 MB, free: 7.078 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006239/0.01799, allocations: 273.5 kB / 252.1 MB, free: 6.781 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.489e-05/0.01802, allocations: 25.38 kB / 252.1 MB, free: 6.758 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.752e-05/0.01808, allocations: 40.38 kB / 252.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004787/0.01856, allocations: 394.7 kB / 252.5 MB, free: 6.285 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.01858, allocations: 12.12 kB / 252.5 MB, free: 6.273 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.712e-05/0.01861, allocations: 16.38 kB / 252.5 MB, free: 6.258 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.01862, allocations: 15.94 kB / 252.5 MB, free: 6.242 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.01879, allocations: 109.7 kB / 252.7 MB, free: 6.133 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.02002, allocations: 1.112 MB / 253.8 MB, free: 4.969 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0033/0.02332, allocations: 204.2 kB / 254 MB, free: 4.754 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.975e-05/0.02339, allocations: 44.84 kB / 254 MB, free: 4.707 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.02342, allocations: 11.98 kB / 254 MB, free: 4.695 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.02344, allocations: 34.56 kB / 254.1 MB, free: 4.652 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.473e-06/0.02344, allocations: 0 / 254.1 MB, free: 4.652 MB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.0009287/0.02437, allocations: 0.6534 MB / 254.7 MB, free: 3.941 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.405e-05/0.02439, allocations: 55.41 kB / 254.8 MB, free: 3.875 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.0246, allocations: 319.2 kB / 255.1 MB, free: 3.551 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.02462, allocations: 29.7 kB / 255.1 MB, free: 3.516 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.575e-05/0.02472, allocations: 213.1 kB / 255.3 MB, free: 3.301 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.765e-05/0.02479, allocations: 126.9 kB / 255.4 MB, free: 3.176 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.18e-05/0.02488, allocations: 74.17 kB / 255.5 MB, free: 3.098 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.02498, allocations: 354.7 kB / 255.9 MB, free: 2.742 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.413e-05/0.02506, allocations: 49.67 kB / 255.9 MB, free: 2.691 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.02521, allocations: 189.7 kB / 256.1 MB, free: 2.461 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002075/0.02541, allocations: 185.2 kB / 256.3 MB, free: 2.25 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.02542, allocations: 4.031 kB / 256.3 MB, free: 2.246 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00028/0.0257, allocations: 236.3 kB / 256.5 MB, free: 2.008 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.02571, allocations: 8 kB / 256.5 MB, free: 2 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.02571, allocations: 0 / 256.5 MB, free: 2 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.02573, allocations: 7.938 kB / 256.5 MB, free: 1.992 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005544/0.02629, allocations: 200.8 kB / 256.7 MB, free: 1.797 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006846/0.02697, allocations: 1.247 MB / 258 MB, free: 480 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.02713, allocations: 23.98 kB / 258 MB, free: 456 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.02714, allocations: 12 kB / 258 MB, free: 444 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001262/0.02727, allocations: 142.7 kB / 258.1 MB, free: 296 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001263/0.0274, allocations: 177.7 kB / 258.3 MB, free: 68 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002061/0.0276, allocations: 202.4 kB / 258.5 MB, free: 15.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.423e-06/0.0276, allocations: 0 / 258.5 MB, free: 15.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0002576/0.02786, allocations: 228.4 kB / 258.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.755e-06/0.02787, allocations: 6.344 kB / 258.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.02787, allocations: 7.984 kB / 258.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.09e-06/0.02788, allocations: 8.219 kB / 258.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004729/0.02835, allocations: 147 kB / 258.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.02836, allocations: 8 kB / 258.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000144/0.0285, allocations: 27.92 kB / 258.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.02852, allocations: 12 kB / 258.9 MB, free: 15.4 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 (PI.I.local_reset,integrator.local_reset,kinematicPTP.noWphase) * 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 9.593e-05/0.02862, allocations: 204.2 kB / 259.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.18e-05/0.02867, allocations: 31.97 kB / 259.2 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.345e-05/0.02872, allocations: 40.09 kB / 259.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.02872, allocations: 4 kB / 259.2 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.02873, allocations: 3.938 kB / 259.2 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.02873, allocations: 3.984 kB / 259.2 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005908/0.02932, allocations: 0.4934 MB / 259.7 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.02933, allocations: 4 kB / 259.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002604/0.02959, allocations: 88 kB / 259.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.378e-05/0.02966, allocations: 39.77 kB / 259.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.02966, allocations: 0 / 259.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.02968, allocations: 15.92 kB / 259.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.02968, allocations: 4 kB / 259.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.02968, allocations: 0 / 259.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003339/0.03002, allocations: 386.6 kB / 260.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.291e-05/0.03005, allocations: 8 kB / 260.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001461/0.0302, allocations: 27.98 kB / 260.3 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.65e-05/0.03025, allocations: 28.17 kB / 260.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.03027, allocations: 7.984 kB / 260.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.844e-05/0.03036, allocations: 116.7 kB / 260.4 MB, free: 13.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03036, allocations: 4 kB / 260.4 MB, free: 13.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003754/0.03074, allocations: 132 kB / 260.6 MB, free: 13.71 MB / 266.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 8.455e-05/0.03082, allocations: 88.34 kB / 260.6 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005572/0.03138, allocations: 369.7 kB / 261 MB, free: 13.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.381e-05/0.0314, allocations: 7.938 kB / 261 MB, free: 13.24 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.03153, allocations: 105.9 kB / 261.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006819/0.03221, allocations: 0.9502 MB / 262.1 MB, free: 12 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003541/0.03575, allocations: 0.8107 MB / 262.9 MB, free: 11.15 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.01e-05/0.03583, allocations: 113.6 kB / 263 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001744/0.036, allocations: 55.23 kB / 263 MB, free: 10.97 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002302/0.03623, allocations: 137.3 kB / 263.2 MB, free: 10.83 MB / 266.7 MB Notification: Performance of SimCode: time 7.52e-07/0.03623, allocations: 0 / 263.2 MB, free: 10.83 MB / 266.7 MB Notification: Performance of Templates: time 0.009301/0.04554, allocations: 5.638 MB / 268.8 MB, free: 5.289 MB / 266.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9554695012047887]