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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002143/0.002143, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001747/0.001747, allocations: 213.3 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 230.3 MB / 258 MB, free: 8.258 MB / 206.1 MB
"
[Timeout remaining time 178]
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)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5095,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=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002065/0.002065, allocations: 63.89 kB / 378.7 MB, free: 2.82 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3316, allocations: 53.36 MB / 432.1 MB, free: 7.102 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003678/0.3353, allocations: 2.027 MB / 434.1 MB, free: 5.07 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001409/0.3367, allocations: 0.7128 MB / 434.8 MB, free: 4.352 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.3368, allocations: 7.938 kB / 434.9 MB, free: 4.344 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 5.857e-05/0.3369, allocations: 15.8 kB / 434.9 MB, free: 4.328 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.337, allocations: 27.69 kB / 434.9 MB, free: 4.301 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004606/0.3375, allocations: 127.7 kB / 435 MB, free: 4.176 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002786/0.3378, allocations: 204 kB / 435.2 MB, free: 3.977 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.3379, allocations: 68.83 kB / 435.3 MB, free: 3.91 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002233/0.3382, allocations: 95.69 kB / 435.4 MB, free: 3.816 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.3383, allocations: 91.55 kB / 435.5 MB, free: 3.727 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.862e-05/0.3383, allocations: 20 kB / 435.5 MB, free: 3.707 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 6.204e-05/0.3384, allocations: 31.94 kB / 435.5 MB, free: 3.676 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 5.028e-05/0.3384, allocations: 39.91 kB / 435.6 MB, free: 3.637 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000109/0.3386, allocations: 91.52 kB / 435.6 MB, free: 3.547 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003135/0.3389, allocations: 220.7 kB / 435.9 MB, free: 3.336 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3389, allocations: 0 / 435.9 MB, free: 3.336 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.273e-06/0.3389, allocations: 0 / 435.9 MB, free: 3.336 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.412e-06/0.3389, allocations: 0 / 435.9 MB, free: 3.336 MB / 334.1 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.0009414/0.3398, allocations: 477.3 kB / 436.3 MB, free: 2.824 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.3399, allocations: 8.031 kB / 436.3 MB, free: 2.816 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001777/0.34, allocations: 32.73 kB / 436.4 MB, free: 2.785 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003543/0.3404, allocations: 186.3 kB / 436.6 MB, free: 2.582 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.641e-05/0.3405, allocations: 38.59 kB / 436.6 MB, free: 2.539 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.82e-05/0.3405, allocations: 19.92 kB / 436.6 MB, free: 2.52 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.00078/0.3413, allocations: 327 kB / 436.9 MB, free: 2.184 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.3413, allocations: 3.938 kB / 436.9 MB, free: 2.18 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/0.3413, allocations: 11.98 kB / 436.9 MB, free: 2.168 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.3413, allocations: 4 kB / 436.9 MB, free: 2.164 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004515/0.3418, allocations: 131.9 kB / 437.1 MB, free: 2.035 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007448/0.3425, allocations: 428.4 kB / 437.5 MB, free: 1.57 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005378/0.3431, allocations: 189.2 kB / 437.7 MB, free: 1.367 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002671/0.3433, allocations: 93.66 kB / 437.8 MB, free: 1.27 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.3433, allocations: 8.078 kB / 437.8 MB, free: 1.262 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003222/0.3437, allocations: 127.4 kB / 437.9 MB, free: 1.125 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=23): time 1.783e-06/0.3437, allocations: 0 / 437.9 MB, free: 1.125 MB / 334.1 MB
Notification: Performance of matching and sorting (n=23): time 0.000857/0.3445, allocations: 286 kB / 438.2 MB, free: 0.8398 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.256e-05/0.3446, allocations: 89.33 kB / 438.3 MB, free: 0.7344 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.3448, allocations: 153.5 kB / 438.4 MB, free: 0.5742 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.3448, allocations: 33.7 kB / 438.5 MB, free: 0.5352 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 8.451e-05/0.3449, allocations: 120.4 kB / 438.6 MB, free: 424 kB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 3.943e-05/0.3449, allocations: 35.73 kB / 438.6 MB, free: 388 kB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.5e-05/0.345, allocations: 49.69 kB / 438.7 MB, free: 332 kB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001668/0.3452, allocations: 330.8 kB / 439 MB, free: 15.99 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.3454, allocations: 64.19 kB / 439 MB, free: 15.93 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002713/0.3457, allocations: 146.6 kB / 439.2 MB, free: 15.75 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004538/0.3461, allocations: 238.8 kB / 439.4 MB, free: 15.48 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.728e-06/0.3461, allocations: 4 kB / 439.4 MB, free: 15.47 MB / 350.1 MB
Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006485/0.3468, allocations: 279.1 kB / 439.7 MB, free: 15.19 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.313e-05/0.3468, allocations: 33.7 kB / 439.7 MB, free: 15.15 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.3468, allocations: 4 kB / 439.7 MB, free: 15.14 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.3468, allocations: 4 kB / 439.7 MB, free: 15.14 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.347, allocations: 47.91 kB / 439.8 MB, free: 15.09 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.347, allocations: 4 kB / 439.8 MB, free: 15.09 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001761/0.3472, allocations: 31.86 kB / 439.8 MB, free: 15.06 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.648e-05/0.3473, allocations: 20 kB / 439.8 MB, free: 15.04 MB / 350.1 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,$CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition2,rotationalClock.less.y,trigger_interval_input.count,$PRE.trigger_interval_input.count,trigger_interval_input.T_start,$PRE.trigger_interval_input.T_start,$whenCondition1)
 * 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 (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.000144/0.3474, allocations: 137.6 kB / 440 MB, free: 14.89 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002017/0.3476, allocations: 113.5 kB / 440.1 MB, free: 14.78 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.198e-05/0.3477, allocations: 28.64 kB / 440.1 MB, free: 14.74 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3477, allocations: 0 / 440.1 MB, free: 14.74 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.3477, allocations: 4 kB / 440.1 MB, free: 14.74 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3477, allocations: 0 / 440.1 MB, free: 14.74 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008468/0.3485, allocations: 477.2 kB / 440.6 MB, free: 14.22 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3485, allocations: 4 kB / 440.6 MB, free: 14.22 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001956/0.3487, allocations: 35.97 kB / 440.6 MB, free: 14.18 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3487, allocations: 4 kB / 440.6 MB, free: 14.18 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.3488, allocations: 0 / 440.6 MB, free: 14.18 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.534e-06/0.3488, allocations: 11.92 kB / 440.6 MB, free: 14.17 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3488, allocations: 0 / 440.6 MB, free: 14.17 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006202/0.3494, allocations: 324 kB / 440.9 MB, free: 13.83 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.235e-05/0.3494, allocations: 19.83 kB / 441 MB, free: 13.81 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.618e-05/0.3495, allocations: 8 kB / 441 MB, free: 13.8 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.3496, allocations: 19.92 kB / 441 MB, free: 13.79 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.461e-05/0.3497, allocations: 19.97 kB / 441 MB, free: 13.77 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.3497, allocations: 8 kB / 441 MB, free: 13.76 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 9.029e-05/0.3498, allocations: 116.1 kB / 441.1 MB, free: 13.64 MB / 350.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3498, allocations: 0 / 441.1 MB, free: 13.64 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003067/0.3501, allocations: 35.94 kB / 441.2 MB, free: 13.61 MB / 350.1 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 (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001539/0.3503, allocations: 111.2 kB / 441.3 MB, free: 13.49 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006443/0.3509, allocations: 238.5 kB / 441.5 MB, free: 13.25 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3509, allocations: 0 / 441.5 MB, free: 13.25 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002252/0.3512, allocations: 55.91 kB / 441.6 MB, free: 13.2 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004812/0.3516, allocations: 59.94 kB / 441.6 MB, free: 13.14 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000814/0.3525, allocations: 342 kB / 442 MB, free: 12.77 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004102/0.3529, allocations: 0.7245 MB / 442.7 MB, free: 12.02 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 7.948e-05/0.3529, allocations: 17.48 kB / 442.7 MB, free: 12 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.452e-05/0.353, allocations: 15.44 kB / 442.7 MB, free: 11.99 MB / 350.1 MB
Notification: Performance of SimCode: time 5.91e-07/0.353, allocations: 0 / 442.7 MB, free: 11.99 MB / 350.1 MB
Notification: Performance of Templates: time 0.006273/0.3593, allocations: 2.087 MB / 444.8 MB, free: 9.918 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660]
(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) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
""

Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed

Variables in the result:angle_input.amplitude,angle_input.continuous,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
[Calling sys.exit(0), Time elapsed: 4.984204884618521]