Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001076/0.001076, allocations: 198.2 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.18/1.18, allocations: 227.2 MB / 245 MB, free: 5.844 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008471/0.0008471, allocations: 103.9 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002022/0.0002022, allocations: 4 kB / 357.9 MB, free: 9.301 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1746/0.1749, allocations: 51.49 MB / 409.4 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08474/0.2596, allocations: 80.15 MB / 489.6 MB, free: 10.42 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.2599, allocations: 76.48 kB / 489.6 MB, free: 10.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008308/0.2682, allocations: 3.132 MB / 492.8 MB, free: 7.219 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2683, allocations: 0 / 492.8 MB, free: 7.219 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.2683, allocations: 4 kB / 492.8 MB, free: 7.215 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.000661/0.269, allocations: 0.5192 MB / 493.3 MB, free: 6.633 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.269, allocations: 12.03 kB / 493.3 MB, free: 6.621 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.2691, allocations: 27.72 kB / 493.3 MB, free: 6.594 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002791/0.2694, allocations: 230.7 kB / 493.6 MB, free: 6.328 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.517e-05/0.2695, allocations: 42.03 kB / 493.6 MB, free: 6.281 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.802e-05/0.2695, allocations: 23.95 kB / 493.6 MB, free: 6.258 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006255/0.2702, allocations: 339.3 kB / 494 MB, free: 5.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.515e-06/0.2702, allocations: 0 / 494 MB, free: 5.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.108e-05/0.2702, allocations: 4 kB / 494 MB, free: 5.906 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.2702, allocations: 4 kB / 494 MB, free: 5.902 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004086/0.2706, allocations: 148.5 kB / 494.1 MB, free: 5.758 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006747/0.2713, allocations: 482.1 kB / 494.6 MB, free: 5.234 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004665/0.2718, allocations: 217.1 kB / 494.8 MB, free: 5.004 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.2718, allocations: 4.062 kB / 494.8 MB, free: 5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003052/0.2721, allocations: 138.4 kB / 494.9 MB, free: 4.855 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.2722, allocations: 0 / 494.9 MB, free: 4.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007673/0.2729, allocations: 305.5 kB / 495.2 MB, free: 4.551 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.315e-05/0.273, allocations: 89.05 kB / 495.3 MB, free: 4.445 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.2731, allocations: 138 kB / 495.5 MB, free: 4.297 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.2732, allocations: 33.7 kB / 495.5 MB, free: 4.258 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.057e-05/0.2732, allocations: 112.4 kB / 495.6 MB, free: 4.141 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.008e-05/0.2733, allocations: 35.55 kB / 495.6 MB, free: 4.105 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.099e-05/0.2733, allocations: 4 kB / 495.6 MB, free: 4.102 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.2734, allocations: 334.8 kB / 496 MB, free: 3.766 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.2736, allocations: 68.19 kB / 496 MB, free: 3.699 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.2738, allocations: 146.7 kB / 496.2 MB, free: 3.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.2741, allocations: 115.3 kB / 496.3 MB, free: 3.402 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2741, allocations: 0 / 496.3 MB, free: 3.402 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005451/0.2746, allocations: 291.1 kB / 496.6 MB, free: 3.105 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.2747, allocations: 29.7 kB / 496.6 MB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2747, allocations: 4 kB / 496.6 MB, free: 3.066 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.2747, allocations: 7.953 kB / 496.6 MB, free: 3.059 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/0.2749, allocations: 55.84 kB / 496.7 MB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.2749, allocations: 7.938 kB / 496.7 MB, free: 2.996 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/0.2751, allocations: 35.88 kB / 496.7 MB, free: 2.961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.2751, allocations: 12 kB / 496.7 MB, free: 2.949 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.0001251/0.2752, allocations: 145.5 kB / 496.9 MB, free: 2.797 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001674/0.2754, allocations: 99.48 kB / 497 MB, free: 2.695 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.858e-05/0.2755, allocations: 24.7 kB / 497 MB, free: 2.668 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2755, allocations: 4 kB / 497 MB, free: 2.664 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.2755, allocations: 3.953 kB / 497 MB, free: 2.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.2755, allocations: 0 / 497 MB, free: 2.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006874/0.2762, allocations: 0.5021 MB / 497.5 MB, free: 2.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2762, allocations: 0 / 497.5 MB, free: 2.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/0.2764, allocations: 43.97 kB / 497.5 MB, free: 2.059 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.2764, allocations: 0 / 497.5 MB, free: 2.059 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.428e-05/0.2765, allocations: 15.94 kB / 497.6 MB, free: 2.043 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2765, allocations: 0 / 497.6 MB, free: 2.043 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.2765, allocations: 0 / 497.6 MB, free: 2.043 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005611/0.277, allocations: 346.5 kB / 497.9 MB, free: 1.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.185e-05/0.2771, allocations: 104.8 kB / 498 MB, free: 1.559 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.862e-05/0.2771, allocations: 4 kB / 498 MB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.2773, allocations: 27.98 kB / 498 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.349e-05/0.2774, allocations: 15.97 kB / 498 MB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.068e-05/0.2774, allocations: 11.98 kB / 498.1 MB, free: 1.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.55e-05/0.2775, allocations: 106.6 kB / 498.2 MB, free: 1.398 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2775, allocations: 0 / 498.2 MB, free: 1.398 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002921/0.2778, allocations: 44 kB / 498.2 MB, free: 1.355 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.0001298/0.2779, allocations: 123 kB / 498.3 MB, free: 1.227 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005136/0.2785, allocations: 253.4 kB / 498.6 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2785, allocations: 0 / 498.6 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001855/0.2787, allocations: 74.62 kB / 498.6 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.279, allocations: 54.25 kB / 498.7 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006047/0.2796, allocations: 375.8 kB / 499.1 MB, free: 460 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.2799, allocations: 0.7325 MB / 499.8 MB, free: 15.69 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.219e-05/0.28, allocations: 17.53 kB / 499.8 MB, free: 15.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.718e-05/0.28, allocations: 27.42 kB / 499.8 MB, free: 15.64 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.28, allocations: 0 / 499.8 MB, free: 15.64 MB / 378.7 MB Notification: Performance of Templates: time 0.004019/0.2841, allocations: 1.632 MB / 0.4897 GB, free: 14.03 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed Variables in the result:angle_input.amplitude,angle_input.f,angle_input.offset,angle_input.phase,angle_input.startTime,angle_input.y,rotationalClock.abs1.generateEvent,rotationalClock.abs2.generateEvent,rotationalClock.angle,rotationalClock.angular_offset.y_start,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction_sign.generateEvent,rotationalClock.sub.k1,rotationalClock.sub.k2,rotationalClock.useSolver,rotationalClock.y_clock.useSolver,sample_angle.y,time,trigger_interval_input.amplitude,trigger_interval_input.nperiod,trigger_interval_input.offset,trigger_interval_input.period,trigger_interval_input.startTime,trigger_interval_input.width