Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00176/0.00176, allocations: 200.7 kB / 18.1 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 226.5 MB / 245.4 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008087/0.0008087, allocations: 96.53 kB / 297.5 MB, free: 6.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002408/0.0002409, allocations: 11.98 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2457, allocations: 51.28 MB / 409.4 MB, free: 27.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09789/0.3436, allocations: 79.63 MB / 489 MB, free: 11.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002142/0.3439, allocations: 75.95 kB / 489.1 MB, free: 11.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007604/0.3515, allocations: 2.833 MB / 491.9 MB, free: 8.965 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3515, allocations: 0 / 491.9 MB, free: 8.965 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.3516, allocations: 4 kB / 491.9 MB, free: 8.961 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005362/0.3521, allocations: 438.9 kB / 492.3 MB, free: 8.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.3522, allocations: 8.031 kB / 492.3 MB, free: 8.473 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.743e-05/0.3522, allocations: 20.75 kB / 492.4 MB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002346/0.3525, allocations: 217.4 kB / 492.6 MB, free: 8.203 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.3525, allocations: 12.38 kB / 492.6 MB, free: 8.191 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.838e-05/0.3525, allocations: 16.36 kB / 492.6 MB, free: 8.176 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005036/0.3531, allocations: 259 kB / 492.8 MB, free: 7.898 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.3531, allocations: 4.188 kB / 492.9 MB, free: 7.895 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.3531, allocations: 7.938 kB / 492.9 MB, free: 7.887 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.3531, allocations: 4 kB / 492.9 MB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002499/0.3534, allocations: 95.88 kB / 493 MB, free: 7.789 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006487/0.354, allocations: 0.596 MB / 493.6 MB, free: 7.121 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003308/0.3544, allocations: 155.9 kB / 493.7 MB, free: 6.941 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.3545, allocations: 74.64 kB / 493.8 MB, free: 6.859 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.3546, allocations: 4 kB / 493.8 MB, free: 6.855 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.3546, allocations: 38.55 kB / 493.8 MB, free: 6.809 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 2.544e-06/0.3546, allocations: 4 kB / 493.8 MB, free: 6.805 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005267/0.3552, allocations: 197.3 kB / 494 MB, free: 6.605 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.934e-05/0.3552, allocations: 122.8 kB / 494.1 MB, free: 6.461 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.3554, allocations: 158.2 kB / 494.3 MB, free: 6.297 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.3554, allocations: 25.7 kB / 494.3 MB, free: 6.266 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.396e-05/0.3555, allocations: 112.5 kB / 494.4 MB, free: 6.152 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.883e-05/0.3555, allocations: 31.62 kB / 494.5 MB, free: 6.121 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-06/0.3555, allocations: 4 kB / 494.5 MB, free: 6.117 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.3556, allocations: 322.8 kB / 494.8 MB, free: 5.793 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.3557, allocations: 43.97 kB / 494.8 MB, free: 5.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.3559, allocations: 144.9 kB / 495 MB, free: 5.562 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002871/0.3562, allocations: 197.5 kB / 495.2 MB, free: 5.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.3562, allocations: 4.375 kB / 495.2 MB, free: 5.316 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003691/0.3566, allocations: 213.7 kB / 495.4 MB, free: 5.102 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.3566, allocations: 12 kB / 495.4 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/0.3566, allocations: 4 kB / 495.4 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.3567, allocations: 7.938 kB / 495.4 MB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.3568, allocations: 47.92 kB / 495.4 MB, free: 5.031 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/0.3568, allocations: 7.984 kB / 495.4 MB, free: 5.023 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.3569, allocations: 31.77 kB / 495.5 MB, free: 4.992 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.357, allocations: 8 kB / 495.5 MB, free: 4.984 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 prepare postOptimizeDAE: time 0.0001052/0.3571, allocations: 133.8 kB / 495.6 MB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/0.3572, allocations: 93.47 kB / 495.7 MB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.289e-05/0.3573, allocations: 16.72 kB / 495.7 MB, free: 4.727 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.3573, allocations: 7.984 kB / 495.7 MB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3573, allocations: 0 / 495.7 MB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3573, allocations: 0 / 495.7 MB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00025/0.3576, allocations: 213.5 kB / 495.9 MB, free: 4.461 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.3576, allocations: 0 / 495.9 MB, free: 4.461 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001837/0.3578, allocations: 55.84 kB / 496 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.3578, allocations: 0 / 496 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.3578, allocations: 4 kB / 496 MB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.3578, allocations: 0 / 496 MB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3578, allocations: 0 / 496 MB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005027/0.3583, allocations: 403.3 kB / 496.4 MB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.601e-05/0.3584, allocations: 96.94 kB / 496.5 MB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/0.3585, allocations: 8 kB / 496.5 MB, free: 3.867 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.3586, allocations: 16.05 kB / 496.5 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.976e-05/0.3587, allocations: 4 kB / 496.5 MB, free: 3.848 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.3587, allocations: 7.984 kB / 496.5 MB, free: 3.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.416e-05/0.3588, allocations: 120.1 kB / 496.6 MB, free: 3.723 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3588, allocations: 0 / 496.6 MB, free: 3.723 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003312/0.3591, allocations: 31.84 kB / 496.7 MB, free: 3.691 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0001221/0.3592, allocations: 99.25 kB / 496.8 MB, free: 3.586 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003101/0.3596, allocations: 138.8 kB / 496.9 MB, free: 3.453 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3596, allocations: 0.9375 kB / 496.9 MB, free: 3.453 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.25e-05/0.3597, allocations: 35.92 kB / 496.9 MB, free: 3.418 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004818/0.3602, allocations: 71.91 kB / 497 MB, free: 3.348 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000704/0.3609, allocations: 0.4969 MB / 497.5 MB, free: 2.816 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002613/0.3611, allocations: 0.7282 MB / 498.2 MB, free: 2.062 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.289e-05/0.3612, allocations: 13.42 kB / 498.2 MB, free: 2.043 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.729e-05/0.3612, allocations: 11.44 kB / 498.3 MB, free: 2.035 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.3613, allocations: 4 kB / 498.3 MB, free: 2.031 MB / 362.7 MB Notification: Performance of Templates: time 0.003609/0.3649, allocations: 1.166 MB / 499.4 MB, free: 0.9102 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches