Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.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.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001315/0.001315, allocations: 195.7 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 226.5 MB / 245.3 MB, free: 8.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008096/0.0008096, allocations: 98.75 kB / 297.4 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002847/0.000285, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2491, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1049/0.3541, allocations: 80.12 MB / 488.8 MB, free: 11.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003331/0.3544, allocations: 75.95 kB / 488.9 MB, free: 11.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009332/0.3638, allocations: 3.149 MB / 492 MB, free: 8.262 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3638, allocations: 0 / 492 MB, free: 8.262 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.852e-05/0.3639, allocations: 4 kB / 492 MB, free: 8.258 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0007939/0.3647, allocations: 0.5116 MB / 492.5 MB, free: 7.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.3647, allocations: 12.03 kB / 492.5 MB, free: 7.668 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001654/0.3649, allocations: 32.64 kB / 492.6 MB, free: 7.637 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003014/0.3652, allocations: 231.8 kB / 492.8 MB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.444e-05/0.3653, allocations: 42.59 kB / 492.8 MB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.096e-05/0.3653, allocations: 20.36 kB / 492.9 MB, free: 7.309 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000724/0.3661, allocations: 337.5 kB / 493.2 MB, free: 6.965 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.3661, allocations: 4 kB / 493.2 MB, free: 6.961 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.3661, allocations: 8 kB / 493.2 MB, free: 6.953 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.3661, allocations: 4 kB / 493.2 MB, free: 6.949 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004575/0.3666, allocations: 143.9 kB / 493.3 MB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007947/0.3674, allocations: 493.1 kB / 493.8 MB, free: 6.273 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005181/0.3679, allocations: 209.2 kB / 494 MB, free: 6.051 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002688/0.3682, allocations: 115.6 kB / 494.1 MB, free: 5.934 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.3683, allocations: 8 kB / 494.1 MB, free: 5.926 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000329/0.3686, allocations: 123.4 kB / 494.3 MB, free: 5.793 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 3.226e-06/0.3686, allocations: 0 / 494.3 MB, free: 5.793 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008283/0.3694, allocations: 308.3 kB / 494.6 MB, free: 5.488 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.608e-05/0.3695, allocations: 93.11 kB / 494.7 MB, free: 5.379 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.3697, allocations: 150.3 kB / 494.8 MB, free: 5.215 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.3697, allocations: 29.7 kB / 494.8 MB, free: 5.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.346e-05/0.3698, allocations: 112.5 kB / 494.9 MB, free: 5.062 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.802e-05/0.3699, allocations: 39.45 kB / 495 MB, free: 5.023 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.178e-05/0.3699, allocations: 4 kB / 495 MB, free: 5.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.37, allocations: 334.8 kB / 495.3 MB, free: 4.684 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001996/0.3702, allocations: 76.12 kB / 495.4 MB, free: 4.609 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002436/0.3705, allocations: 150.7 kB / 495.5 MB, free: 4.426 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004343/0.3709, allocations: 248.7 kB / 495.8 MB, free: 4.141 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3709, allocations: 0 / 495.8 MB, free: 4.141 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005799/0.3715, allocations: 286.9 kB / 496.1 MB, free: 3.848 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.424e-05/0.3716, allocations: 37.69 kB / 496.1 MB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.3716, allocations: 352 / 496.1 MB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.3716, allocations: 8 kB / 496.1 MB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000203/0.3718, allocations: 47.91 kB / 496.2 MB, free: 3.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.3718, allocations: 4 kB / 496.2 MB, free: 3.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001646/0.372, allocations: 35.77 kB / 496.2 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.372, allocations: 12 kB / 496.2 MB, free: 3.699 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 13 (rotationalClock.changed.y,rotationalClock.changed.u,$CLKPRE.rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition1,$PRE.trigger_interval_input.T_start,trigger_interval_input.T_start,$PRE.trigger_interval_input.count,trigger_interval_input.count,rotationalClock.less.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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.0001475/0.3722, allocations: 153.5 kB / 496.4 MB, free: 3.539 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001871/0.3724, allocations: 101.5 kB / 496.5 MB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.474e-05/0.3725, allocations: 20.72 kB / 496.5 MB, free: 3.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3725, allocations: 4 kB / 496.5 MB, free: 3.406 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3725, allocations: 0 / 496.5 MB, free: 3.406 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.3725, allocations: 7.922 kB / 496.5 MB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00078/0.3733, allocations: 0.4943 MB / 497 MB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3733, allocations: 0 / 497 MB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001857/0.3735, allocations: 47.91 kB / 497 MB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.3735, allocations: 4 kB / 497 MB, free: 2.797 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.3735, allocations: 11.92 kB / 497 MB, free: 2.785 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.3736, allocations: 0 / 497 MB, free: 2.785 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3736, allocations: 4 kB / 497 MB, free: 2.781 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006067/0.3742, allocations: 333.6 kB / 497.4 MB, free: 2.438 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.631e-05/0.3743, allocations: 100.8 kB / 497.5 MB, free: 2.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.678e-05/0.3743, allocations: 11.94 kB / 497.5 MB, free: 2.309 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.3745, allocations: 27.97 kB / 497.5 MB, free: 2.281 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.885e-05/0.3746, allocations: 11.98 kB / 497.5 MB, free: 2.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.193e-05/0.3746, allocations: 15.98 kB / 497.5 MB, free: 2.254 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.985e-05/0.3747, allocations: 109.9 kB / 497.6 MB, free: 2.148 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3747, allocations: 3.938 kB / 497.6 MB, free: 2.145 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003207/0.375, allocations: 43.98 kB / 497.7 MB, free: 2.102 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.less.y,$whenCondition1,trigger_interval_input.T_start,trigger_interval_input.count,$whenCondition2) * Number of discrete states: 1 (trigger_interval_input.count) * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001459/0.3752, allocations: 111.2 kB / 497.8 MB, free: 1.984 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005692/0.3758, allocations: 251.2 kB / 498 MB, free: 1.727 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3758, allocations: 0 / 498 MB, free: 1.727 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001971/0.376, allocations: 82.16 kB / 498.1 MB, free: 1.648 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004483/0.3764, allocations: 63.94 kB / 498.2 MB, free: 1.586 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007361/0.3772, allocations: 397 kB / 498.6 MB, free: 1.164 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.3775, allocations: 0.7324 MB / 499.3 MB, free: 416 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.479e-05/0.3776, allocations: 23.42 kB / 499.3 MB, free: 392 kB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3776, allocations: 3.938 kB / 499.3 MB, free: 388 kB / 362.7 MB Notification: Performance of Templates: time 0.00381/0.3814, allocations: 2.13 MB / 0.4897 GB, free: 14.26 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches