Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009472/0.0009472, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001124/0.001124, allocations: 170 kB / 24.82 MB, free: 9.254 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9758/0.9758, allocations: 177 MB / 205.1 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 273.3 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.04e-05/2.202e-05, allocations: 2.312 kB / 273.3 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003238/0.00326, allocations: 3.041 MB / 276.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.004877, allocations: 0.9698 MB / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002401/0.005118, allocations: 15.88 kB / 277.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003163/0.005434, allocations: 91.11 kB / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002246/0.005658, allocations: 111 kB / 277.5 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004671/0.006126, allocations: 243.4 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004704/0.006596, allocations: 0.5261 MB / 278.3 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002093/0.006805, allocations: 113.7 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002878/0.007093, allocations: 283.3 kB / 278.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001703/0.007263, allocations: 159.5 kB / 278.8 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.651e-05/0.00731, allocations: 40 kB / 278.9 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.315e-05/0.007353, allocations: 44 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.459e-05/0.007428, allocations: 103.6 kB / 279 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.241e-05/0.00752, allocations: 139.6 kB / 279.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003365/0.007857, allocations: 350.6 kB / 279.5 MB, free: 11.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.007859, allocations: 0 / 279.5 MB, free: 11.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.00786, allocations: 0 / 279.5 MB, free: 11.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.007865, allocations: 0 / 279.5 MB, free: 11.01 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.0007464/0.008612, allocations: 0.7841 MB / 280.3 MB, free: 10.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.008647, allocations: 15.98 kB / 280.3 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.275e-05/0.00873, allocations: 80.61 kB / 280.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.009035, allocations: 312.2 kB / 280.7 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.684e-05/0.009061, allocations: 33.38 kB / 280.7 MB, free: 9.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.791e-05/0.009109, allocations: 44.36 kB / 280.8 MB, free: 9.688 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003896/0.009499, allocations: 406.5 kB / 281.2 MB, free: 9.234 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.009515, allocations: 4.141 kB / 281.2 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.009537, allocations: 16.38 kB / 281.2 MB, free: 9.215 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.00955, allocations: 15.94 kB / 281.2 MB, free: 9.199 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001635/0.009714, allocations: 126.8 kB / 281.3 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.01094, allocations: 1.534 MB / 282.9 MB, free: 7.473 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002735/0.01121, allocations: 170.5 kB / 283 MB, free: 7.293 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.553e-05/0.01128, allocations: 59.64 kB / 283.1 MB, free: 7.23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.0113, allocations: 11.98 kB / 283.1 MB, free: 7.219 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.01133, allocations: 45.33 kB / 283.1 MB, free: 7.164 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.302e-06/0.01133, allocations: 0 / 283.1 MB, free: 7.164 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.0008093/0.01214, allocations: 0.6776 MB / 283.8 MB, free: 6.422 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.731e-05/0.01217, allocations: 106.8 kB / 283.9 MB, free: 6.293 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.01237, allocations: 366.5 kB / 284.3 MB, free: 5.918 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.01239, allocations: 29.7 kB / 284.3 MB, free: 5.883 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.01251, allocations: 295.2 kB / 284.6 MB, free: 5.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.564e-05/0.01257, allocations: 130.9 kB / 284.7 MB, free: 5.461 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.527e-05/0.01266, allocations: 83.77 kB / 284.8 MB, free: 5.371 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.01279, allocations: 0.5234 MB / 285.3 MB, free: 4.836 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.017e-05/0.01286, allocations: 53.59 kB / 285.4 MB, free: 4.781 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.01299, allocations: 232.8 kB / 285.6 MB, free: 4.496 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.01317, allocations: 209.5 kB / 285.8 MB, free: 4.254 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.01317, allocations: 0 / 285.8 MB, free: 4.254 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002737/0.01344, allocations: 277.2 kB / 286.1 MB, free: 3.977 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.01345, allocations: 8 kB / 286.1 MB, free: 3.969 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.01346, allocations: 3.938 kB / 286.1 MB, free: 3.965 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.01347, allocations: 4 kB / 286.1 MB, free: 3.961 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003627/0.01384, allocations: 168 kB / 286.3 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007858/0.01462, allocations: 1.822 MB / 288.1 MB, free: 1.863 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.01476, allocations: 27.98 kB / 288.1 MB, free: 1.836 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.01478, allocations: 15.98 kB / 288.1 MB, free: 1.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001215/0.0149, allocations: 179.8 kB / 288.3 MB, free: 1.641 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001318/0.01503, allocations: 221 kB / 288.5 MB, free: 1.363 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001679/0.0152, allocations: 221.2 kB / 288.7 MB, free: 1.109 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.132e-06/0.0152, allocations: 0 / 288.7 MB, free: 1.109 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0002498/0.01545, allocations: 277.1 kB / 289 MB, free: 0.832 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.656e-06/0.01546, allocations: 8 kB / 289 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-06/0.01546, allocations: 0 / 289 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.396e-06/0.01547, allocations: 8.156 kB / 289 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.01568, allocations: 115.8 kB / 289.1 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.487e-06/0.01568, allocations: 4 kB / 289.1 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.01579, allocations: 23.98 kB / 289.2 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.0158, allocations: 12 kB / 289.2 MB, free: 0.6641 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 0.0001154/0.01592, allocations: 303.8 kB / 289.5 MB, free: 368 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.602e-05/0.01596, allocations: 47.77 kB / 289.5 MB, free: 320 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.591e-05/0.01601, allocations: 44.09 kB / 289.6 MB, free: 276 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.01601, allocations: 8 kB / 289.6 MB, free: 268 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.01602, allocations: 0 / 289.6 MB, free: 268 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.01602, allocations: 4 kB / 289.6 MB, free: 264 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005861/0.01661, allocations: 0.6099 MB / 290.2 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.01661, allocations: 0 / 290.2 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001799/0.01679, allocations: 71.89 kB / 290.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.01679, allocations: 4 kB / 290.3 MB, free: 15.53 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.01681, allocations: 8 kB / 290.3 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.01681, allocations: 8.125 kB / 290.3 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.01681, allocations: 3.984 kB / 290.3 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003256/0.01714, allocations: 447.2 kB / 290.7 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.085e-05/0.01721, allocations: 63.72 kB / 290.8 MB, free: 14.97 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.01723, allocations: 8 kB / 290.8 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.01734, allocations: 23.97 kB / 290.8 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.108e-05/0.01739, allocations: 27.89 kB / 290.8 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/0.0174, allocations: 8 kB / 290.8 MB, free: 14.91 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001079/0.01751, allocations: 239 kB / 291.1 MB, free: 14.68 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01751, allocations: 0 / 291.1 MB, free: 14.68 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003422/0.01785, allocations: 132 kB / 291.2 MB, free: 14.55 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 0.0001002/0.01795, allocations: 111.1 kB / 291.3 MB, free: 14.43 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004884/0.01844, allocations: 365.7 kB / 291.7 MB, free: 14.06 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.01844, allocations: 3.938 kB / 291.7 MB, free: 14.06 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.347e-05/0.01854, allocations: 91.44 kB / 291.8 MB, free: 13.96 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003799/0.01892, allocations: 105.8 kB / 291.9 MB, free: 13.87 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.0201, allocations: 0.8754 MB / 292.7 MB, free: 12.94 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.073e-05/0.02017, allocations: 109.7 kB / 292.8 MB, free: 12.82 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001586/0.02033, allocations: 59.17 kB / 292.9 MB, free: 12.76 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002027/0.02053, allocations: 158.1 kB / 293.1 MB, free: 12.61 MB / 282.7 MB Notification: Performance of SimCode: time 5.51e-07/0.02053, allocations: 0 / 293.1 MB, free: 12.61 MB / 282.7 MB Notification: Performance of Templates: time 0.007403/0.02793, allocations: 5.254 MB / 298.3 MB, free: 7.426 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_trunk_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 2.8472039070911705]