Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008665/0.0008668, allocations: 91.8 kB / 17.31 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009297/0.0009297, allocations: 178.8 kB / 18.21 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 223.3 MB / 242.3 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002158/0.0002159, allocations: 4 kB / 302.1 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07174/0.07198, allocations: 50.42 MB / 352.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.002801/0.07479, allocations: 2.758 MB / 355.2 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.0763, allocations: 0.9311 MB / 356.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002281/0.07654, allocations: 11.94 kB / 356.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002676/0.07682, allocations: 67.48 kB / 356.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002356/0.07706, allocations: 99.27 kB / 356.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004672/0.07754, allocations: 195.7 kB / 356.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004693/0.07802, allocations: 498.9 kB / 357 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002595/0.07829, allocations: 157.1 kB / 357.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001863/0.07848, allocations: 159.2 kB / 357.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.07869, allocations: 171 kB / 357.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.365e-05/0.07874, allocations: 16 kB / 357.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.198e-05/0.07879, allocations: 16 kB / 357.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.329e-05/0.07888, allocations: 79.55 kB / 357.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001542/0.07904, allocations: 208.5 kB / 357.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002811/0.07933, allocations: 347.4 kB / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.07934, allocations: 0 / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.07935, allocations: 0 / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.822e-06/0.07936, allocations: 4 kB / 358.2 MB, free: 13.98 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.001111/0.08047, allocations: 0.7055 MB / 358.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.08051, allocations: 12.03 kB / 358.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.379e-05/0.08061, allocations: 52.38 kB / 358.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003817/0.08099, allocations: 363.6 kB / 359.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.028e-05/0.08103, allocations: 29.38 kB / 359.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.186e-05/0.0811, allocations: 44.06 kB / 359.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008767/0.08198, allocations: 462.4 kB / 359.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.08202, allocations: 15.84 kB / 359.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.288e-05/0.08205, allocations: 12 kB / 359.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.08207, allocations: 12 kB / 359.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.0831, allocations: 423.6 kB / 360.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.08501, allocations: 1.586 MB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008059/0.08583, allocations: 339.6 kB / 362.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004558/0.0863, allocations: 192.6 kB / 362.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.08633, allocations: 4 kB / 362.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.052e-05/0.08636, allocations: 38.56 kB / 362.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.453e-06/0.08637, allocations: 0 / 362.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003293/0.08966, allocations: 1.518 MB / 363.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.08972, allocations: 81.11 kB / 364 MB, free: 7.797 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003409/0.09006, allocations: 361.5 kB / 364.4 MB, free: 7.438 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.0901, allocations: 33.7 kB / 364.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.09025, allocations: 239.9 kB / 364.6 MB, free: 7.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.746e-05/0.09033, allocations: 114.3 kB / 364.7 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.753e-05/0.0904, allocations: 37.7 kB / 364.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.09051, allocations: 354.7 kB / 365.1 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004831/0.091, allocations: 188.7 kB / 365.3 MB, free: 6.461 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005243/0.09153, allocations: 276.8 kB / 365.6 MB, free: 6.164 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009597/0.0925, allocations: 443.3 kB / 366 MB, free: 5.703 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.09251, allocations: 0 / 366 MB, free: 5.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001141/0.09366, allocations: 0.5244 MB / 366.5 MB, free: 5.172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.122e-05/0.09374, allocations: 150.8 kB / 366.7 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.09376, allocations: 4 kB / 366.7 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.09378, allocations: 8 kB / 366.7 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009642/0.09475, allocations: 259.7 kB / 366.9 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001807/0.09656, allocations: 1.548 MB / 368.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003441/0.09692, allocations: 48.06 kB / 368.5 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.677e-05/0.09696, allocations: 19.97 kB / 368.6 MB, free: 2.984 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.841e-06/0.09697, allocations: 4 kB / 368.6 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009818/0.09795, allocations: 447.6 kB / 369 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.09797, allocations: 4 kB / 369 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.799e-06/0.09798, allocations: 4 kB / 369 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004976/0.09848, allocations: 136 kB / 369.1 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.0985, allocations: 7.984 kB / 369.2 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002903/0.0988, allocations: 35.97 kB / 369.2 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.09883, allocations: 16 kB / 369.2 MB, free: 2.344 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.0001809/0.09902, allocations: 245 kB / 369.4 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.289e-05/0.09909, allocations: 39.53 kB / 369.5 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.456e-05/0.09918, allocations: 44.25 kB / 369.5 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.09919, allocations: 4 kB / 369.5 MB, free: 2.008 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.0992, allocations: 0 / 369.5 MB, free: 2.008 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.09921, allocations: 7.875 kB / 369.5 MB, free: 2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/0.1008, allocations: 0.9619 MB / 370.5 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.1008, allocations: 4 kB / 370.5 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004423/0.1013, allocations: 103.9 kB / 370.6 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.1013, allocations: 4 kB / 370.6 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.247e-05/0.1013, allocations: 8 kB / 370.6 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.1013, allocations: 0 / 370.6 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.1013, allocations: 4 kB / 370.6 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.1028, allocations: 0.7407 MB / 371.4 MB, free: 84 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1349/0.2377, allocations: 133.2 kB / 371.5 MB, free: 24.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.132e-05/0.2378, allocations: 9.516 kB / 371.5 MB, free: 24.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003674/0.2382, allocations: 43.98 kB / 371.5 MB, free: 24.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.608e-05/0.2383, allocations: 23.47 kB / 371.6 MB, free: 24.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.2383, allocations: 10.11 kB / 371.6 MB, free: 24.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002882/0.2386, allocations: 249.3 kB / 371.8 MB, free: 24.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.2386, allocations: 0 / 371.8 MB, free: 24.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005713/0.2392, allocations: 134.9 kB / 371.9 MB, free: 24.41 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 9.759e-05/0.2393, allocations: 106.3 kB / 372.1 MB, free: 24.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002114/0.2414, allocations: 0.8025 MB / 372.9 MB, free: 24.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2414, allocations: 1.469 kB / 372.9 MB, free: 24.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004859/0.2419, allocations: 201.1 kB / 373.1 MB, free: 24.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006997/0.2426, allocations: 103.2 kB / 373.2 MB, free: 24.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001681/0.2443, allocations: 1.3 MB / 374.5 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002238/0.2446, allocations: 0.8171 MB / 375.3 MB, free: 22.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.2447, allocations: 32.5 kB / 375.3 MB, free: 22.91 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2447, allocations: 0 / 375.3 MB, free: 22.91 MB / 302.1 MB Notification: Performance of Templates: time 0.008822/0.2535, allocations: 5.901 MB / 381.2 MB, free: 21.89 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches