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.001651/0.001651, allocations: 90.31 kB / 20.69 MB, free: 1.02 MB / 14.72 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.001423/0.001423, allocations: 158.2 kB / 23.95 MB, free: 4.152 MB / 14.72 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 1.44/1.44, allocations: 177 MB / 204.1 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] 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.392e-06/1.392e-06, allocations: 0 / 325 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.783e-05/1.923e-05, allocations: 2.281 kB / 325 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003991/0.00401, allocations: 2.926 MB / 327.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001955/0.005965, allocations: 0.9725 MB / 328.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002098/0.006175, allocations: 21.97 kB / 328.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003321/0.006507, allocations: 83.53 kB / 329 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002692/0.006776, allocations: 111 kB / 329.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005768/0.007353, allocations: 237.5 kB / 329.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005972/0.00795, allocations: 0.5231 MB / 329.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002399/0.00819, allocations: 114.5 kB / 330 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003508/0.008541, allocations: 284.3 kB / 330.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.008793, allocations: 155.7 kB / 330.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.944e-05/0.008862, allocations: 44.88 kB / 330.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.283e-05/0.008935, allocations: 41.25 kB / 330.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.009064, allocations: 106.7 kB / 330.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001872/0.009251, allocations: 140.1 kB / 330.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005719/0.009823, allocations: 0.5077 MB / 331.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.009826, allocations: 0 / 331.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.009827, allocations: 5.031 kB / 331.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.009834, allocations: 0 / 331.2 MB, free: 12.54 MB / 302.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.001296/0.01113, allocations: 0.6915 MB / 331.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.01116, allocations: 13.39 kB / 331.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.629e-05/0.01126, allocations: 58.39 kB / 332 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005131/0.01177, allocations: 305 kB / 332.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.234e-05/0.0118, allocations: 28.03 kB / 332.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.44e-05/0.01187, allocations: 41.22 kB / 332.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009469/0.01282, allocations: 0.4997 MB / 332.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.01284, allocations: 9.25 kB / 332.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.012e-05/0.01288, allocations: 16.72 kB / 332.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.01289, allocations: 13.19 kB / 332.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.01394, allocations: 374.5 kB / 333.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.01595, allocations: 1.367 MB / 334.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008372/0.01679, allocations: 295.7 kB / 334.9 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000465/0.01726, allocations: 149.9 kB / 335.1 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.01728, allocations: 7.156 kB / 335.1 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.01731, allocations: 37.66 kB / 335.1 MB, free: 9.648 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.493e-06/0.01731, allocations: 0 / 335.1 MB, free: 9.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003312/0.02063, allocations: 1.238 MB / 336.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.509e-05/0.0207, allocations: 107.2 kB / 336.5 MB, free: 8.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003648/0.02107, allocations: 341.3 kB / 336.8 MB, free: 8.531 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.376e-05/0.0211, allocations: 30.86 kB / 336.8 MB, free: 8.496 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/0.02128, allocations: 249 kB / 337.1 MB, free: 8.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.728e-05/0.02137, allocations: 125 kB / 337.2 MB, free: 8.164 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.0215, allocations: 80.8 kB / 337.3 MB, free: 8.109 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.02165, allocations: 347.6 kB / 337.6 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004873/0.02214, allocations: 169.4 kB / 337.8 MB, free: 7.688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005785/0.02272, allocations: 313.7 kB / 338.1 MB, free: 7.438 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009609/0.02368, allocations: 388.8 kB / 338.5 MB, free: 7.203 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.02368, allocations: 0 / 338.5 MB, free: 7.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001181/0.02486, allocations: 494 kB / 338.9 MB, free: 6.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.02488, allocations: 11.94 kB / 339 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.02488, allocations: 0 / 339 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.0249, allocations: 4 kB / 339 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009632/0.02586, allocations: 215.9 kB / 339.2 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001716/0.02758, allocations: 1.446 MB / 340.6 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003445/0.02792, allocations: 35.95 kB / 340.6 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.219e-05/0.02795, allocations: 12 kB / 340.7 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005555/0.02851, allocations: 277 kB / 340.9 MB, free: 4.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005408/0.02905, allocations: 301.7 kB / 341.2 MB, free: 4.316 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008703/0.02992, allocations: 379.7 kB / 341.6 MB, free: 3.918 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.597e-06/0.02992, allocations: 4 kB / 341.6 MB, free: 3.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001068/0.03099, allocations: 465 kB / 342.1 MB, free: 3.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.031, allocations: 8 kB / 342.1 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.525e-06/0.03101, allocations: 0 / 342.1 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.843e-06/0.03101, allocations: 7.984 kB / 342.1 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005201/0.03153, allocations: 124 kB / 342.2 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.03154, allocations: 4 kB / 342.2 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003249/0.03186, allocations: 39.95 kB / 342.2 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.775e-05/0.03189, allocations: 16 kB / 342.3 MB, free: 3.254 MB / 302.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.0001555/0.03205, allocations: 210.7 kB / 342.5 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.191e-05/0.03212, allocations: 39.77 kB / 342.5 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.026e-05/0.03221, allocations: 44.09 kB / 342.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.03222, allocations: 11.98 kB / 342.5 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.03222, allocations: 0 / 342.5 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.03222, allocations: 0 / 342.5 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001659/0.03388, allocations: 0.7903 MB / 343.3 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.03389, allocations: 0 / 343.3 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004429/0.03433, allocations: 91.81 kB / 343.4 MB, free: 2.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.03433, allocations: 0 / 343.4 MB, free: 2.016 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.442e-05/0.03436, allocations: 8 kB / 343.4 MB, free: 2.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.645e-06/0.03436, allocations: 11.92 kB / 343.4 MB, free: 1.996 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.03436, allocations: 0 / 343.4 MB, free: 1.996 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/0.0359, allocations: 0.6758 MB / 344.1 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.03602, allocations: 51.8 kB / 344.2 MB, free: 1.242 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.836e-05/0.03607, allocations: 8 kB / 344.2 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003291/0.03639, allocations: 43.89 kB / 344.2 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.503e-05/0.03647, allocations: 23.95 kB / 344.2 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.03649, allocations: 8 kB / 344.3 MB, free: 1.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002605/0.03675, allocations: 239.2 kB / 344.5 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.03675, allocations: 0 / 344.5 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005243/0.03727, allocations: 132 kB / 344.6 MB, free: 0.8008 MB / 302.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.0001127/0.03739, allocations: 103.2 kB / 344.7 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00202/0.03941, allocations: 0.6603 MB / 345.4 MB, free: 32 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.03941, allocations: 0 / 345.4 MB, free: 32 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000506/0.03991, allocations: 171.8 kB / 345.5 MB, free: 15.86 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006452/0.04056, allocations: 105.7 kB / 345.7 MB, free: 15.76 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.04232, allocations: 0.9014 MB / 346.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.04253, allocations: 216.2 kB / 346.8 MB, free: 14.58 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002206/0.04275, allocations: 59.22 kB / 346.8 MB, free: 14.53 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.04286, allocations: 32.5 kB / 346.9 MB, free: 14.5 MB / 318.1 MB Notification: Performance of SimCode: time 3.21e-07/0.04286, allocations: 0 / 346.9 MB, free: 14.5 MB / 318.1 MB Notification: Performance of Templates: time 0.01017/0.05303, allocations: 4.812 MB / 351.7 MB, free: 9.766 MB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.311521001160145]