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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001071/0.001071, allocations: 200.7 kB / 18.1 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 226.5 MB / 245.4 MB, free: 6.426 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001144/0.001143, allocations: 98.55 kB / 297.5 MB, free: 6.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002651/0.0002653, allocations: 4 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.306, allocations: 51.3 MB / 409.4 MB, free: 27.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1063/0.4123, allocations: 83.3 MB / 492.7 MB, free: 8.164 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.4126, allocations: 75.97 kB / 492.7 MB, free: 8.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02306/0.4357, allocations: 8.351 MB / 0.4893 GB, free: 15.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.4357, allocations: 0 / 0.4893 GB, free: 15.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.704e-05/0.4358, allocations: 16.12 kB / 0.4894 GB, free: 15.71 MB / 378.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.001458/0.4372, allocations: 0.7173 MB / 0.4901 GB, free: 14.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.4373, allocations: 8.031 kB / 0.4901 GB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001579/0.4375, allocations: 56.22 kB / 0.4901 GB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000621/0.4381, allocations: 376.6 kB / 0.4905 GB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/0.4381, allocations: 29.38 kB / 0.4905 GB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.623e-05/0.4382, allocations: 40.31 kB / 0.4905 GB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009895/0.4392, allocations: 470.9 kB / 0.491 GB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.045e-05/0.4393, allocations: 4.188 kB / 0.491 GB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.533e-05/0.4393, allocations: 15.94 kB / 0.491 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.4393, allocations: 8 kB / 0.491 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.4404, allocations: 423.6 kB / 0.4914 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002835/0.4433, allocations: 1.586 MB / 0.493 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009032/0.4442, allocations: 346.6 kB / 0.4933 GB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004496/0.4447, allocations: 180.8 kB / 0.4935 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.732e-05/0.4447, allocations: 4 kB / 0.4935 GB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/0.4448, allocations: 46.48 kB / 0.4935 GB, free: 11.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 4.018e-06/0.4448, allocations: 0 / 0.4935 GB, free: 11.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.003499/0.4483, allocations: 1.511 MB / 0.495 GB, free: 9.602 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.594e-05/0.4484, allocations: 81.11 kB / 0.4951 GB, free: 9.504 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004946/0.4489, allocations: 361.6 kB / 0.4954 GB, free: 9.141 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.4489, allocations: 29.7 kB / 0.4955 GB, free: 9.105 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.4491, allocations: 239.9 kB / 0.4957 GB, free: 8.867 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.4492, allocations: 118.5 kB / 0.4958 GB, free: 8.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.028e-05/0.4493, allocations: 8 kB / 0.4958 GB, free: 8.742 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.4494, allocations: 354.8 kB / 0.4961 GB, free: 8.387 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004528/0.4499, allocations: 188.7 kB / 0.4963 GB, free: 8.203 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004941/0.4504, allocations: 264.8 kB / 0.4966 GB, free: 7.914 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009045/0.4513, allocations: 447.6 kB / 0.497 GB, free: 7.449 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4513, allocations: 0 / 0.497 GB, free: 7.449 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001077/0.4524, allocations: 0.5223 MB / 0.4975 GB, free: 6.922 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001219/0.4525, allocations: 152.6 kB / 0.4977 GB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.4526, allocations: 4 kB / 0.4977 GB, free: 6.738 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.4526, allocations: 4 kB / 0.4977 GB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00091/0.4535, allocations: 255.7 kB / 0.4979 GB, free: 6.484 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/0.4552, allocations: 1.548 MB / 0.4994 GB, free: 4.801 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003653/0.4555, allocations: 43.95 kB / 0.4995 GB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/0.4556, allocations: 19.94 kB / 0.4995 GB, free: 4.738 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.4556, allocations: 4 kB / 0.4995 GB, free: 4.734 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009154/0.4565, allocations: 439.6 kB / 0.4999 GB, free: 4.305 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.4565, allocations: 4 kB / 0.4999 GB, free: 4.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.033e-06/0.4566, allocations: 12.09 kB / 0.4999 GB, free: 4.289 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004725/0.457, allocations: 123.9 kB / 0.5 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.4571, allocations: 7.984 kB / 0.5 GB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003032/0.4574, allocations: 43.97 kB / 0.5001 GB, free: 4.117 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.4574, allocations: 16 kB / 0.5001 GB, free: 4.102 MB / 378.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 (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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002974/0.4577, allocations: 244.9 kB / 0.5003 GB, free: 3.852 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.858e-05/0.4578, allocations: 39.53 kB / 0.5004 GB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.75e-05/0.4579, allocations: 44.25 kB / 0.5004 GB, free: 3.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.4579, allocations: 4 kB / 0.5004 GB, free: 3.766 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.4579, allocations: 4 kB / 0.5004 GB, free: 3.762 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.4579, allocations: 0 / 0.5004 GB, free: 3.762 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001727/0.4597, allocations: 0.9696 MB / 0.5014 GB, free: 2.727 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.4597, allocations: 0 / 0.5014 GB, free: 2.727 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004149/0.4601, allocations: 104 kB / 0.5015 GB, free: 2.625 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.4601, allocations: 7.938 kB / 0.5015 GB, free: 2.617 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.083e-05/0.4602, allocations: 12 kB / 0.5015 GB, free: 2.605 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.4602, allocations: 3.938 kB / 0.5015 GB, free: 2.602 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.4602, allocations: 4 kB / 0.5015 GB, free: 2.598 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/0.4616, allocations: 0.7363 MB / 0.5022 GB, free: 1.832 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001638/0.4618, allocations: 136.7 kB / 0.5023 GB, free: 1.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.083e-05/0.4618, allocations: 8 kB / 0.5024 GB, free: 1.672 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002914/0.4621, allocations: 47.91 kB / 0.5024 GB, free: 1.625 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.475e-05/0.4622, allocations: 27.95 kB / 0.5024 GB, free: 1.598 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.4622, allocations: 8 kB / 0.5024 GB, free: 1.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000288/0.4625, allocations: 255.1 kB / 0.5027 GB, free: 1.344 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4625, allocations: 0 / 0.5027 GB, free: 1.344 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006166/0.4632, allocations: 147.9 kB / 0.5028 GB, free: 1.199 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001756/0.4633, allocations: 107.2 kB / 0.5029 GB, free: 1.086 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001954/0.4653, allocations: 0.7895 MB / 0.5037 GB, free: 304 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4653, allocations: 3.938 kB / 0.5037 GB, free: 300 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000526/0.4659, allocations: 208.1 kB / 0.5039 GB, free: 92 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2278/0.6937, allocations: 105 kB / 0.504 GB, free: 95.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00272/0.6965, allocations: 1.202 MB / 0.5052 GB, free: 95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005243/0.697, allocations: 0.8161 MB / 0.506 GB, free: 94.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00041/0.6975, allocations: 68.34 kB / 0.506 GB, free: 94.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.6976, allocations: 29.45 kB / 0.5061 GB, free: 94.27 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/0.6976, allocations: 0 / 0.5061 GB, free: 94.27 MB / 378.7 MB Notification: Performance of Templates: time 0.01008/0.7077, allocations: 4.246 MB / 0.5102 GB, free: 94.05 MB / 378.7 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 -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","../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches