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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001359/0.001359, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001676/0.001676, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 60.28 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1353, allocations: 50.52 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00475/0.1401, allocations: 3.117 MB / 362 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.1421, allocations: 0.9971 MB / 363 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002195/0.1423, allocations: 15.88 kB / 363 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003592/0.1427, allocations: 79.25 kB / 363.1 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002143/0.1429, allocations: 107.1 kB / 363.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006075/0.1436, allocations: 235 kB / 363.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005463/0.1441, allocations: 0.5107 MB / 363.9 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003122/0.1444, allocations: 177.2 kB / 364.1 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002175/0.1447, allocations: 191.2 kB / 364.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000273/0.1449, allocations: 211 kB / 364.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.62e-05/0.145, allocations: 40 kB / 364.5 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.074e-05/0.1451, allocations: 40 kB / 364.6 MB, free: 7.617 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.1452, allocations: 99.61 kB / 364.7 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.1454, allocations: 218.8 kB / 364.9 MB, free: 7.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004693/0.1459, allocations: 498.1 kB / 365.4 MB, free: 6.816 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1459, allocations: 4 kB / 365.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1459, allocations: 0 / 365.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.1459, allocations: 0 / 365.4 MB, free: 6.812 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.001294/0.1472, allocations: 0.7677 MB / 366.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.1473, allocations: 8.031 kB / 366.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.256e-05/0.1474, allocations: 52.38 kB / 366.2 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005625/0.1479, allocations: 371.7 kB / 366.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.956e-05/0.148, allocations: 33.36 kB / 366.6 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-05/0.1481, allocations: 36.38 kB / 366.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008649/0.1489, allocations: 459.5 kB / 367.1 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.112e-05/0.149, allocations: 3.906 kB / 367.1 MB, free: 4.988 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.933e-05/0.149, allocations: 16 kB / 367.1 MB, free: 4.973 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.149, allocations: 8 kB / 367.1 MB, free: 4.965 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009471/0.15, allocations: 383.6 kB / 367.5 MB, free: 4.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002112/0.1521, allocations: 1.559 MB / 369.1 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007942/0.1529, allocations: 320.3 kB / 369.4 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004054/0.1533, allocations: 164.8 kB / 369.5 MB, free: 2.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.475e-05/0.1534, allocations: 7.938 kB / 369.5 MB, free: 2.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.517e-05/0.1534, allocations: 34.56 kB / 369.6 MB, free: 2.398 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.853e-06/0.1534, allocations: 0 / 369.6 MB, free: 2.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003079/0.1565, allocations: 1.393 MB / 371 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.787e-05/0.1566, allocations: 110.8 kB / 371.1 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003777/0.157, allocations: 349.6 kB / 371.4 MB, free: 440 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.157, allocations: 33.7 kB / 371.4 MB, free: 400 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.1572, allocations: 243.9 kB / 371.7 MB, free: 152 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.543e-05/0.1573, allocations: 106.4 kB / 371.8 MB, free: 44 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.199/0.3563, allocations: 76.77 kB / 371.9 MB, free: 20.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3565, allocations: 355.2 kB / 372.2 MB, free: 20.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005131/0.357, allocations: 171 kB / 372.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004917/0.3575, allocations: 260.2 kB / 372.6 MB, free: 20 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008213/0.3583, allocations: 397.3 kB / 373 MB, free: 19.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3583, allocations: 0.7812 kB / 373 MB, free: 19.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001109/0.3595, allocations: 483.5 kB / 373.5 MB, free: 19.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.3595, allocations: 5.875 kB / 373.5 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.3595, allocations: 5.328 kB / 373.5 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/0.3595, allocations: 4.062 kB / 373.5 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008657/0.3604, allocations: 212.5 kB / 373.7 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/0.3617, allocations: 1.576 MB / 375.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003507/0.3621, allocations: 38.47 kB / 375.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.154e-05/0.3621, allocations: 20.34 kB / 375.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005023/0.3627, allocations: 268.2 kB / 375.6 MB, free: 18.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000456/0.3631, allocations: 245.6 kB / 375.9 MB, free: 18.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007688/0.3639, allocations: 376.7 kB / 376.2 MB, free: 18.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.295e-06/0.3639, allocations: 2.5 kB / 376.2 MB, free: 18.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009101/0.3648, allocations: 473.7 kB / 376.7 MB, free: 17.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.3649, allocations: 5.5 kB / 376.7 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.351e-06/0.3649, allocations: 5.312 kB / 376.7 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.795e-06/0.3649, allocations: 4.125 kB / 376.7 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004719/0.3654, allocations: 120.2 kB / 376.8 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.3654, allocations: 4.453 kB / 376.8 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003103/0.3657, allocations: 42.12 kB / 376.9 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.3657, allocations: 11.69 kB / 376.9 MB, free: 17.91 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.0001253/0.3659, allocations: 217.2 kB / 377.1 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.668e-05/0.3659, allocations: 38.22 kB / 377.1 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000105/0.366, allocations: 51.36 kB / 377.2 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.366, allocations: 4.5 kB / 377.2 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3661, allocations: 0 / 377.2 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.3661, allocations: 4.172 kB / 377.2 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001641/0.3677, allocations: 0.9216 MB / 378.1 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3677, allocations: 1.375 kB / 378.1 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003973/0.3681, allocations: 86.66 kB / 378.2 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.613e-06/0.3681, allocations: 2.344 kB / 378.2 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.646e-05/0.3682, allocations: 7.375 kB / 378.2 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.3682, allocations: 4 kB / 378.2 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.3682, allocations: 5 kB / 378.2 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/0.3696, allocations: 0.6761 MB / 378.9 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.3697, allocations: 134.3 kB / 379 MB, free: 16.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.492e-05/0.3698, allocations: 9.531 kB / 379 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002968/0.3701, allocations: 39.03 kB / 379.1 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.534e-05/0.3702, allocations: 27.23 kB / 379.1 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.143e-05/0.3702, allocations: 7.719 kB / 379.1 MB, free: 16.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002945/0.3705, allocations: 250.1 kB / 379.3 MB, free: 16.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3705, allocations: 3.938 kB / 379.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006163/0.3711, allocations: 133.5 kB / 379.5 MB, free: 16.49 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.0001125/0.3712, allocations: 103 kB / 379.6 MB, free: 16.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001897/0.3731, allocations: 0.6963 MB / 380.3 MB, free: 16.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.3732, allocations: 1.125 kB / 380.3 MB, free: 16.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004499/0.3736, allocations: 177.3 kB / 380.4 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006367/0.3743, allocations: 100.3 kB / 380.5 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001854/0.3761, allocations: 1.003 MB / 381.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.3765, allocations: 0.8185 MB / 382.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002843/0.3767, allocations: 65.12 kB / 382.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.3769, allocations: 29.64 kB / 382.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3769, allocations: 1.281 kB / 382.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of Templates: time 0.01065/0.3875, allocations: 4.635 MB / 387.1 MB, free: 13.89 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches