Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001807/0.001807, allocations: 119.6 kB / 20.44 MB, free: 1.301 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002517/0.002517, allocations: 214.5 kB / 23.74 MB, free: 4.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.641/1.641, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 52.06 kB / 378.3 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3312, allocations: 53.35 MB / 431.6 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003753/0.335, allocations: 2.033 MB / 433.6 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001403/0.3364, allocations: 0.7128 MB / 434.4 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.3365, allocations: 8 kB / 434.4 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.53e-05/0.3366, allocations: 19.73 kB / 434.4 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001296/0.3367, allocations: 27.73 kB / 434.4 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004473/0.3371, allocations: 115.8 kB / 434.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002688/0.3374, allocations: 211.9 kB / 434.7 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001796/0.3376, allocations: 68.84 kB / 434.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000224/0.3378, allocations: 91.69 kB / 434.9 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001417/0.338, allocations: 103.5 kB / 435 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.884e-05/0.338, allocations: 20 kB / 435 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.138e-05/0.3381, allocations: 20 kB / 435 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.164e-05/0.3381, allocations: 39.91 kB / 435.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.3382, allocations: 91.52 kB / 435.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003286/0.3386, allocations: 220.3 kB / 435.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3386, allocations: 0 / 435.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3386, allocations: 0 / 435.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.3386, allocations: 0 / 435.4 MB, free: 3.188 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.000894/0.3395, allocations: 473.3 kB / 435.8 MB, free: 2.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.3395, allocations: 11.97 kB / 435.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001828/0.3397, allocations: 32.78 kB / 435.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000368/0.34, allocations: 185.4 kB / 436.1 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.611e-05/0.3401, allocations: 64.3 kB / 436.1 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.511e-05/0.3402, allocations: 19.94 kB / 436.1 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000755/0.3409, allocations: 337.4 kB / 436.5 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.3409, allocations: 4 kB / 436.5 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.324e-05/0.341, allocations: 4 kB / 436.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.341, allocations: 8 kB / 436.5 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004324/0.3414, allocations: 135.8 kB / 436.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007407/0.3421, allocations: 428.4 kB / 437 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005198/0.3427, allocations: 193.1 kB / 437.2 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000271/0.3429, allocations: 101.7 kB / 437.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.343, allocations: 0 / 437.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003237/0.3433, allocations: 123.3 kB / 437.4 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.3433, allocations: 0 / 437.4 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008298/0.3441, allocations: 290.2 kB / 437.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/0.3442, allocations: 85.11 kB / 437.8 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.3444, allocations: 163.7 kB / 438 MB, free: 388 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.3444, allocations: 33.7 kB / 438 MB, free: 348 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.666e-05/0.3445, allocations: 116.5 kB / 438.1 MB, free: 228 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.968e-05/0.3445, allocations: 39.73 kB / 438.2 MB, free: 188 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.193e-05/0.3446, allocations: 41.7 kB / 438.2 MB, free: 140 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.3448, allocations: 330.8 kB / 438.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.345, allocations: 64.19 kB / 438.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002585/0.3452, allocations: 146.7 kB / 438.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004383/0.3457, allocations: 235.8 kB / 439 MB, free: 15.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3457, allocations: 0 / 439 MB, free: 15.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005755/0.3462, allocations: 278 kB / 439.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.335e-05/0.3463, allocations: 37.7 kB / 439.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.3463, allocations: 7.984 kB / 439.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.3463, allocations: 4 kB / 439.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002045/0.3465, allocations: 43.91 kB / 439.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.3465, allocations: 4 kB / 439.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.3467, allocations: 32.19 kB / 439.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/0.3467, allocations: 11.94 kB / 439.4 MB, free: 14.86 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.0002067/0.3469, allocations: 145.7 kB / 439.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/0.3471, allocations: 109.5 kB / 439.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.776e-05/0.3472, allocations: 20.72 kB / 439.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.3472, allocations: 0 / 439.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.3472, allocations: 4 kB / 439.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3472, allocations: 7.922 kB / 439.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007861/0.348, allocations: 473.2 kB / 440.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.348, allocations: 0 / 440.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002097/0.3482, allocations: 43.91 kB / 440.1 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.3482, allocations: 0 / 440.1 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.3482, allocations: 3.984 kB / 440.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.3482, allocations: 7.938 kB / 440.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3482, allocations: 0 / 440.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005915/0.3488, allocations: 324.1 kB / 440.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.571e-05/0.3489, allocations: 19.84 kB / 440.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.629e-05/0.3489, allocations: 8 kB / 440.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002626/0.3492, allocations: 35.83 kB / 440.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.012e-05/0.3492, allocations: 11.98 kB / 440.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.3493, allocations: 11.98 kB / 440.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.853e-05/0.3493, allocations: 111.2 kB / 440.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3493, allocations: 0 / 440.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.3496, allocations: 35.94 kB / 440.7 MB, free: 13.43 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.0001321/0.3498, allocations: 107.2 kB / 440.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006026/0.3504, allocations: 235.1 kB / 441 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3504, allocations: 0 / 441 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001887/0.3506, allocations: 55.95 kB / 441.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004736/0.351, allocations: 64.62 kB / 441.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008446/0.3519, allocations: 336.1 kB / 441.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005102/0.3524, allocations: 0.7245 MB / 442.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.815e-05/0.3525, allocations: 17.48 kB / 442.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.204e-05/0.3525, allocations: 27.36 kB / 442.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3525, allocations: 4 kB / 442.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of Templates: time 0.006904/0.3595, allocations: 2.082 MB / 444.3 MB, free: 9.727 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 5.306715640006587]