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.0009666/0.0009666, allocations: 196.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 225.6 MB / 234.8 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001068/0.001068, allocations: 92.38 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.924e-05/1.926e-05, allocations: 4 kB / 343.7 MB, free: 8.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.113, allocations: 51.48 MB / 395.2 MB, free: 4.777 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3231/0.4362, allocations: 79.42 MB / 474.6 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.4364, allocations: 75.31 kB / 474.7 MB, free: 12.6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007998/0.4445, allocations: 3.098 MB / 477.8 MB, free: 10.85 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.4445, allocations: 3.172 kB / 477.8 MB, free: 10.85 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.4445, allocations: 4 kB / 477.8 MB, free: 10.84 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.0006177/0.4451, allocations: 0.5009 MB / 478.3 MB, free: 10.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.4452, allocations: 8.031 kB / 478.3 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001572/0.4453, allocations: 30.86 kB / 478.3 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002447/0.4456, allocations: 227.5 kB / 478.5 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.392e-05/0.4457, allocations: 40.08 kB / 478.6 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.4457, allocations: 8 kB / 478.6 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000199/0.4459, allocations: 104 kB / 478.7 MB, free: 9.957 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004089/0.4463, allocations: 278.6 kB / 479 MB, free: 9.762 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.4463, allocations: 0 / 479 MB, free: 9.762 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.4464, allocations: 4 kB / 479 MB, free: 9.758 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.4464, allocations: 4 kB / 479 MB, free: 9.754 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006116/0.447, allocations: 439.9 kB / 479.4 MB, free: 9.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001942/0.4472, allocations: 158.3 kB / 479.5 MB, free: 9.289 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.877e-05/0.4473, allocations: 74.61 kB / 479.6 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.4473, allocations: 9.188 kB / 479.6 MB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000167/0.4475, allocations: 93.22 kB / 479.7 MB, free: 9.156 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.4475, allocations: 4 kB / 479.7 MB, free: 9.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002943/0.4478, allocations: 165.1 kB / 479.9 MB, free: 9.031 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.4479, allocations: 86.41 kB / 480 MB, free: 8.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.756e-05/0.448, allocations: 134.2 kB / 480.1 MB, free: 8.805 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.448, allocations: 25.7 kB / 480.1 MB, free: 8.773 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.017e-05/0.4481, allocations: 118.2 kB / 480.2 MB, free: 8.672 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.73e-05/0.4481, allocations: 33.44 kB / 480.3 MB, free: 8.652 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.166e-05/0.4481, allocations: 4 kB / 480.3 MB, free: 8.648 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.483e-05/0.4482, allocations: 324.5 kB / 480.6 MB, free: 8.332 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.705e-05/0.4482, allocations: 41.48 kB / 480.6 MB, free: 8.309 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.683e-05/0.4483, allocations: 111.6 kB / 480.7 MB, free: 8.188 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.142e-05/0.4484, allocations: 58.08 kB / 480.8 MB, free: 8.152 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4484, allocations: 0 / 480.8 MB, free: 8.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002544/0.4487, allocations: 187.4 kB / 481 MB, free: 8.008 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.4487, allocations: 34.58 kB / 481 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.4487, allocations: 4 kB / 481 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.4488, allocations: 6.719 kB / 481 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001943/0.449, allocations: 47.58 kB / 481.1 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.565e-06/0.449, allocations: 9.797 kB / 481.1 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.4492, allocations: 34.31 kB / 481.1 MB, free: 7.887 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.4492, allocations: 11.81 kB / 481.1 MB, free: 7.879 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 7.846e-05/0.4493, allocations: 112.9 kB / 481.2 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.4494, allocations: 99.42 kB / 481.3 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.587e-05/0.4494, allocations: 18.06 kB / 481.4 MB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.4494, allocations: 8 kB / 481.4 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.4495, allocations: 0 / 481.4 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.4495, allocations: 7.938 kB / 481.4 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003459/0.4498, allocations: 417.6 kB / 481.8 MB, free: 7.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.4498, allocations: 0 / 481.8 MB, free: 7.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/0.45, allocations: 39.91 kB / 481.8 MB, free: 7.211 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.45, allocations: 4 kB / 481.8 MB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.4501, allocations: 11.36 kB / 481.8 MB, free: 7.199 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.4501, allocations: 4 kB / 481.8 MB, free: 7.195 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.4501, allocations: 3.953 kB / 481.8 MB, free: 7.191 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002324/0.4503, allocations: 273.1 kB / 482.1 MB, free: 6.941 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.764e-05/0.4503, allocations: 88.92 kB / 482.2 MB, free: 6.836 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.4504, allocations: 3.938 kB / 482.2 MB, free: 6.832 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.4506, allocations: 31.92 kB / 482.2 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.923e-05/0.4506, allocations: 15.28 kB / 482.2 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.4506, allocations: 15.25 kB / 482.3 MB, free: 6.781 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.343e-05/0.4507, allocations: 108.6 kB / 482.4 MB, free: 6.688 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4507, allocations: 0 / 482.4 MB, free: 6.688 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002826/0.451, allocations: 39.84 kB / 482.4 MB, free: 6.648 MB / 346.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.0001068/0.4511, allocations: 113.2 kB / 482.5 MB, free: 6.531 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002293/0.4513, allocations: 192.2 kB / 482.7 MB, free: 6.371 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.4514, allocations: 1.781 kB / 482.7 MB, free: 6.371 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.36e-05/0.4514, allocations: 38.69 kB / 482.7 MB, free: 6.344 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.4517, allocations: 52.45 kB / 482.8 MB, free: 6.309 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003679/0.4521, allocations: 205.3 kB / 483 MB, free: 6.113 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001233/0.4522, allocations: 0.7321 MB / 483.7 MB, free: 5.352 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.891e-05/0.4523, allocations: 17.33 kB / 483.7 MB, free: 5.332 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.919e-05/0.4524, allocations: 23.06 kB / 483.8 MB, free: 5.312 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4524, allocations: 0 / 483.8 MB, free: 5.312 MB / 346.7 MB Notification: Performance of Templates: time 0.003498/0.4559, allocations: 1.556 MB / 485.3 MB, free: 3.816 MB / 346.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