Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009571/0.000957, allocations: 175 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 221.3 MB / 235.5 MB, free: 2.887 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008003/0.0008002, allocations: 91.86 kB / 286.5 MB, free: 164 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.59e-05/2.594e-05, allocations: 4 kB / 343.8 MB, free: 4.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09398/0.09402, allocations: 50.41 MB / 394.2 MB, free: 1.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2898/0.3839, allocations: 79.31 MB / 473.5 MB, free: 8.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/0.3841, allocations: 79.95 kB / 473.6 MB, free: 8.152 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008223/0.3924, allocations: 3.026 MB / 476.6 MB, free: 5.125 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3924, allocations: 0 / 476.6 MB, free: 5.125 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.3924, allocations: 4 kB / 476.7 MB, free: 5.121 MB / 346.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.0007117/0.3931, allocations: 499.8 kB / 477.1 MB, free: 4.574 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.3932, allocations: 12.02 kB / 477.2 MB, free: 4.562 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.772e-05/0.3933, allocations: 31.61 kB / 477.2 MB, free: 4.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003062/0.3936, allocations: 227.6 kB / 477.4 MB, free: 4.266 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.738e-05/0.3937, allocations: 42.03 kB / 477.4 MB, free: 4.219 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.797e-05/0.3937, allocations: 16 kB / 477.5 MB, free: 4.203 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00051/0.3942, allocations: 304.9 kB / 477.8 MB, free: 3.891 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.3942, allocations: 3.938 kB / 477.8 MB, free: 3.887 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.3943, allocations: 7.953 kB / 477.8 MB, free: 3.879 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.3943, allocations: 4 kB / 477.8 MB, free: 3.875 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.3945, allocations: 96.47 kB / 477.9 MB, free: 3.781 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006981/0.3952, allocations: 486 kB / 478.3 MB, free: 3.254 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000256/0.3954, allocations: 165.2 kB / 478.5 MB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.3956, allocations: 85.7 kB / 478.6 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.3956, allocations: 4.062 kB / 478.6 MB, free: 2.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001929/0.3958, allocations: 99.7 kB / 478.7 MB, free: 2.871 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.823e-06/0.3958, allocations: 7.938 kB / 478.7 MB, free: 2.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003436/0.3962, allocations: 171.9 kB / 478.9 MB, free: 2.691 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.945e-05/0.3962, allocations: 89.05 kB / 479 MB, free: 2.586 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.3963, allocations: 132.4 kB / 479.1 MB, free: 2.445 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.3964, allocations: 29.7 kB / 479.1 MB, free: 2.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.278e-05/0.3965, allocations: 116.4 kB / 479.2 MB, free: 2.293 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.032e-05/0.3965, allocations: 39.53 kB / 479.3 MB, free: 2.254 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.463e-05/0.3965, allocations: 8 kB / 479.3 MB, free: 2.246 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.3966, allocations: 334.8 kB / 479.6 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.508e-05/0.3967, allocations: 40.23 kB / 479.6 MB, free: 1.871 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.3969, allocations: 126.7 kB / 479.8 MB, free: 1.711 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001087/0.397, allocations: 81.62 kB / 479.8 MB, free: 1.625 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.397, allocations: 0 / 479.8 MB, free: 1.625 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003298/0.3973, allocations: 236.5 kB / 480.1 MB, free: 1.383 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/0.3974, allocations: 37.69 kB / 480.1 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3974, allocations: 4 kB / 480.1 MB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.3974, allocations: 4 kB / 480.1 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002217/0.3976, allocations: 52.25 kB / 480.2 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.3977, allocations: 4 kB / 480.2 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.3978, allocations: 35.77 kB / 480.2 MB, free: 1.242 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.3979, allocations: 12 kB / 480.2 MB, free: 1.23 MB / 346.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 () * 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 9.117e-05/0.398, allocations: 128.6 kB / 480.3 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001466/0.3981, allocations: 101.4 kB / 480.4 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.841e-05/0.3982, allocations: 28.56 kB / 480.5 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.3982, allocations: 11.97 kB / 480.5 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3982, allocations: 4 kB / 480.5 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3982, allocations: 0 / 480.5 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000477/0.3987, allocations: 462.7 kB / 480.9 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3987, allocations: 0 / 480.9 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002017/0.3989, allocations: 43.91 kB / 481 MB, free: 408 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.3989, allocations: 8 kB / 481 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.399, allocations: 3.984 kB / 481 MB, free: 396 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.399, allocations: 4 kB / 481 MB, free: 392 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.399, allocations: 0 / 481 MB, free: 392 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003337/0.3993, allocations: 294.5 kB / 481.3 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.072e-05/0.3994, allocations: 88.92 kB / 481.4 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.411e-05/0.3994, allocations: 12 kB / 481.4 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001921/0.3996, allocations: 23.97 kB / 481.4 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.922e-05/0.3997, allocations: 23.92 kB / 481.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.3997, allocations: 7.938 kB / 481.4 MB, free: 15.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.742e-05/0.3998, allocations: 111 kB / 481.5 MB, free: 15.79 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3998, allocations: 0 / 481.5 MB, free: 15.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002673/0.4001, allocations: 47.84 kB / 481.6 MB, free: 15.75 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) * 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.0001222/0.4002, allocations: 111.2 kB / 481.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000301/0.4005, allocations: 206.9 kB / 481.9 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4005, allocations: 0 / 481.9 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.09e-05/0.4006, allocations: 43.94 kB / 481.9 MB, free: 15.37 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002823/0.4009, allocations: 61.45 kB / 482 MB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004478/0.4014, allocations: 227.2 kB / 482.2 MB, free: 15.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.4016, allocations: 0.7286 MB / 483 MB, free: 14.31 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.944e-05/0.4017, allocations: 21.27 kB / 483 MB, free: 14.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.371e-05/0.4018, allocations: 19.44 kB / 483 MB, free: 14.27 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4018, allocations: 0 / 483 MB, free: 14.27 MB / 362.7 MB Notification: Performance of Templates: time 0.003865/0.4057, allocations: 1.641 MB / 484.6 MB, free: 12.64 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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