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.001214/0.001214, allocations: 196.4 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008396/0.0008396, allocations: 87.42 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.086e-05, allocations: 7.938 kB / 350.5 MB, free: 2.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09876/0.09881, allocations: 51.49 MB / 402 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3146/0.4135, allocations: 83.29 MB / 485.3 MB, free: 6.246 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001855/0.4137, allocations: 71.81 kB / 485.4 MB, free: 6.215 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0204/0.4341, allocations: 8.329 MB / 493.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4341, allocations: 0 / 493.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.382e-05/0.4342, allocations: 12 kB / 493.7 MB, free: 15.27 MB / 362.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.001156/0.4354, allocations: 0.6745 MB / 494.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.4354, allocations: 12.03 kB / 494.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.4355, allocations: 58.83 kB / 494.5 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005128/0.436, allocations: 353 kB / 494.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.183e-05/0.4361, allocations: 29.41 kB / 494.8 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.401e-05/0.4362, allocations: 40.67 kB / 494.9 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006284/0.4368, allocations: 385.8 kB / 495.2 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.4368, allocations: 3.906 kB / 495.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.877e-05/0.4369, allocations: 15.5 kB / 495.3 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.4369, allocations: 12 kB / 495.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004356/0.4373, allocations: 267.4 kB / 495.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.4394, allocations: 1.586 MB / 497.1 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004876/0.4399, allocations: 254.9 kB / 497.4 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001782/0.4401, allocations: 113.4 kB / 497.5 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.4401, allocations: 4 kB / 497.5 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.4402, allocations: 34.56 kB / 497.5 MB, free: 11.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 2.064e-06/0.4402, allocations: 0 / 497.5 MB, free: 11.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001528/0.4417, allocations: 0.9981 MB / 498.5 MB, free: 10.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.4418, allocations: 81.11 kB / 498.6 MB, free: 10.33 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003294/0.4421, allocations: 312.4 kB / 498.9 MB, free: 10.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.787e-05/0.4421, allocations: 33.7 kB / 498.9 MB, free: 9.984 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.4423, allocations: 248 kB / 499.2 MB, free: 9.738 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.806e-05/0.4424, allocations: 110.3 kB / 499.3 MB, free: 9.629 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.992e-05/0.4424, allocations: 12 kB / 499.3 MB, free: 9.617 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.4426, allocations: 346.8 kB / 499.6 MB, free: 9.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001915/0.4427, allocations: 112.9 kB / 499.7 MB, free: 9.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002448/0.443, allocations: 193.9 kB / 499.9 MB, free: 8.941 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002139/0.4432, allocations: 136.4 kB / 0.4884 GB, free: 8.809 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4432, allocations: 0 / 0.4884 GB, free: 8.809 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005732/0.4438, allocations: 384.9 kB / 0.4887 GB, free: 8.426 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003188/0.4441, allocations: 0.7824 MB / 0.4895 GB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.4442, allocations: 4 kB / 0.4895 GB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.4442, allocations: 4 kB / 0.4895 GB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009893/0.4452, allocations: 267.6 kB / 0.4897 GB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004966/0.4457, allocations: 0.6541 MB / 0.4904 GB, free: 6.637 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003306/0.446, allocations: 53.3 kB / 0.4904 GB, free: 6.586 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.876e-05/0.4461, allocations: 16 kB / 0.4904 GB, free: 6.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.634e-06/0.4461, allocations: 9.906 kB / 0.4905 GB, free: 6.562 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004685/0.4466, allocations: 324.6 kB / 0.4908 GB, free: 6.246 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-06/0.4466, allocations: 0 / 0.4908 GB, free: 6.246 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.741e-06/0.4466, allocations: 4 kB / 0.4908 GB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004891/0.4471, allocations: 132.1 kB / 0.4909 GB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.4471, allocations: 4 kB / 0.4909 GB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002824/0.4474, allocations: 47.92 kB / 0.4909 GB, free: 6.062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.4474, allocations: 8 kB / 0.491 GB, free: 6.055 MB / 362.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 () * 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.0001077/0.4475, allocations: 132.9 kB / 0.4911 GB, free: 5.918 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.624e-05/0.4476, allocations: 35.53 kB / 0.4911 GB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/0.4477, allocations: 52.36 kB / 0.4912 GB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.4477, allocations: 4 kB / 0.4912 GB, free: 5.824 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/0.4477, allocations: 1.438 kB / 0.4912 GB, free: 5.824 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.4477, allocations: 0 / 0.4912 GB, free: 5.824 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.4488, allocations: 0.8221 MB / 0.492 GB, free: 4.938 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.4489, allocations: 0 / 0.492 GB, free: 4.938 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004303/0.4493, allocations: 95.88 kB / 0.4921 GB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.225e-06/0.4493, allocations: 7.984 kB / 0.4921 GB, free: 4.836 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.4493, allocations: 20.02 kB / 0.4921 GB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.4494, allocations: 1.594 kB / 0.4921 GB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.4494, allocations: 4 kB / 0.4921 GB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006633/0.45, allocations: 0.5683 MB / 0.4927 GB, free: 4.195 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/0.4502, allocations: 136.7 kB / 0.4928 GB, free: 4.043 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.768e-05/0.4502, allocations: 12 kB / 0.4928 GB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003096/0.4505, allocations: 47.95 kB / 0.4928 GB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.383e-05/0.4506, allocations: 27.92 kB / 0.4929 GB, free: 3.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.4507, allocations: 4 kB / 0.4929 GB, free: 3.953 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002294/0.4509, allocations: 246.2 kB / 0.4931 GB, free: 3.719 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4509, allocations: 0 / 0.4931 GB, free: 3.719 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004801/0.4514, allocations: 136 kB / 0.4932 GB, free: 3.586 MB / 362.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 () * 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.0001417/0.4515, allocations: 119.2 kB / 0.4933 GB, free: 3.457 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001151/0.4527, allocations: 0.575 MB / 0.4939 GB, free: 2.887 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4527, allocations: 0 / 0.4939 GB, free: 2.887 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001986/0.4529, allocations: 131.8 kB / 0.494 GB, free: 2.758 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005046/0.4534, allocations: 97.19 kB / 0.4941 GB, free: 2.668 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.4548, allocations: 0.8121 MB / 0.4949 GB, free: 1.836 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003539/0.4552, allocations: 0.824 MB / 0.4957 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003121/0.4555, allocations: 87.14 kB / 0.4958 GB, free: 0.9023 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.343e-05/0.4556, allocations: 23.44 kB / 0.4958 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4556, allocations: 0 / 0.4958 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of Templates: time 0.008246/0.4639, allocations: 4.781 MB / 0.5005 GB, free: 12.18 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/jenkins/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