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.001303/0.001303, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008092/0.0008089, allocations: 86.19 kB / 292.1 MB, free: 5.941 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.411e-05/2.429e-05, allocations: 4 kB / 350.5 MB, free: 2.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09122/0.09127, allocations: 51.49 MB / 402 MB, free: 15.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3557/0.447, allocations: 80.09 MB / 482.1 MB, free: 9.363 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.4473, allocations: 79.03 kB / 482.2 MB, free: 9.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008372/0.4557, allocations: 3.112 MB / 485.3 MB, free: 6.703 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.798e-06/0.4557, allocations: 0 / 485.3 MB, free: 6.703 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.749e-05/0.4558, allocations: 7.062 kB / 485.3 MB, free: 6.699 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.000759/0.4565, allocations: 0.5073 MB / 485.8 MB, free: 6.152 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.4566, allocations: 12.03 kB / 485.8 MB, free: 6.141 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001823/0.4568, allocations: 23.81 kB / 485.8 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000289/0.4571, allocations: 229.3 kB / 486.1 MB, free: 5.867 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.056e-05/0.4572, allocations: 45.02 kB / 486.1 MB, free: 5.824 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.003e-05/0.4572, allocations: 15.94 kB / 486.1 MB, free: 5.812 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005494/0.4578, allocations: 302.2 kB / 486.4 MB, free: 5.578 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.4578, allocations: 7.938 kB / 486.4 MB, free: 5.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.4578, allocations: 3.938 kB / 486.4 MB, free: 5.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.4578, allocations: 4 kB / 486.4 MB, free: 5.566 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000195/0.458, allocations: 95.16 kB / 486.5 MB, free: 5.504 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007789/0.4588, allocations: 486.2 kB / 487 MB, free: 5.047 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002304/0.4591, allocations: 159.6 kB / 487.2 MB, free: 4.914 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.4592, allocations: 88.83 kB / 487.3 MB, free: 4.848 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.4592, allocations: 8.062 kB / 487.3 MB, free: 4.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002021/0.4594, allocations: 102.4 kB / 487.4 MB, free: 4.746 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.783e-06/0.4594, allocations: 3.938 kB / 487.4 MB, free: 4.742 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003307/0.4598, allocations: 174.3 kB / 487.5 MB, free: 4.602 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.4598, allocations: 87.16 kB / 487.6 MB, free: 4.504 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.4599, allocations: 142.8 kB / 487.8 MB, free: 4.367 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.46, allocations: 33.58 kB / 487.8 MB, free: 4.332 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.989e-05/0.46, allocations: 115.8 kB / 487.9 MB, free: 4.227 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.594e-05/0.4601, allocations: 31.05 kB / 487.9 MB, free: 4.203 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.034e-05/0.4601, allocations: 7.688 kB / 487.9 MB, free: 4.199 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.78e-05/0.4601, allocations: 322.6 kB / 488.3 MB, free: 3.879 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.323e-05/0.4602, allocations: 43.36 kB / 488.3 MB, free: 3.855 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.4604, allocations: 125.8 kB / 488.4 MB, free: 3.715 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.4605, allocations: 86.47 kB / 488.5 MB, free: 3.641 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.4605, allocations: 0 / 488.5 MB, free: 3.641 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000308/0.4608, allocations: 239.7 kB / 488.7 MB, free: 3.438 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.544e-05/0.4608, allocations: 34.95 kB / 488.8 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.4609, allocations: 4 kB / 488.8 MB, free: 3.395 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.4609, allocations: 7.953 kB / 488.8 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.4611, allocations: 47.91 kB / 488.8 MB, free: 3.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.4611, allocations: 7.938 kB / 488.8 MB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.4613, allocations: 43.72 kB / 488.9 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.4613, allocations: 11.75 kB / 488.9 MB, free: 3.285 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 8.845e-05/0.4614, allocations: 120.5 kB / 489 MB, free: 3.168 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.4616, allocations: 100.2 kB / 489.1 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.306e-05/0.4616, allocations: 16.31 kB / 489.1 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.4616, allocations: 7.953 kB / 489.1 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/0.4616, allocations: 0 / 489.1 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.4617, allocations: 0.8438 kB / 489.1 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000417/0.4621, allocations: 475.5 kB / 489.6 MB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-06/0.4621, allocations: 0 / 489.6 MB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.4623, allocations: 35.97 kB / 489.6 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.92e-06/0.4623, allocations: 7.953 kB / 489.6 MB, free: 2.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.695e-05/0.4623, allocations: 8.797 kB / 489.7 MB, free: 2.566 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.4623, allocations: 4 kB / 489.7 MB, free: 2.562 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.4623, allocations: 3.938 kB / 489.7 MB, free: 2.559 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003092/0.4627, allocations: 290.9 kB / 489.9 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.407e-05/0.4627, allocations: 93.44 kB / 490 MB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.247e-05/0.4627, allocations: 7.938 kB / 490 MB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.4629, allocations: 27.91 kB / 490.1 MB, free: 2.156 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.241e-05/0.463, allocations: 11.98 kB / 490.1 MB, free: 2.145 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.463, allocations: 16.61 kB / 490.1 MB, free: 2.133 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.872e-05/0.4631, allocations: 110.5 kB / 490.2 MB, free: 2.035 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4631, allocations: 2.531 kB / 490.2 MB, free: 2.035 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002836/0.4634, allocations: 51.59 kB / 490.3 MB, free: 1.992 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.000124/0.4635, allocations: 108.9 kB / 490.4 MB, free: 1.879 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002715/0.4638, allocations: 201.2 kB / 490.6 MB, free: 1.707 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4638, allocations: 0 / 490.6 MB, free: 1.707 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.536e-05/0.4639, allocations: 49.53 kB / 490.6 MB, free: 1.676 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.4642, allocations: 58.95 kB / 490.7 MB, free: 1.637 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004616/0.4646, allocations: 213.6 kB / 490.9 MB, free: 1.438 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001466/0.4648, allocations: 0.7369 MB / 491.6 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.326e-05/0.4649, allocations: 13.33 kB / 491.6 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.425e-05/0.465, allocations: 23.38 kB / 491.6 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of SimCode: time 7.32e-07/0.465, allocations: 0 / 491.6 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of Templates: time 0.004308/0.4693, allocations: 1.636 MB / 493.3 MB, free: 15.08 MB / 362.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