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.001284/0.001284, allocations: 111 kB / 21.18 MB, free: 0.5195 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.001442/0.001442, allocations: 210.7 kB / 24.48 MB, free: 3.699 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.468/1.468, allocations: 230.6 MB / 258.2 MB, free: 7.785 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.001541/0.001541, allocations: 55.92 kB / 379 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2542, allocations: 53.36 MB / 432.3 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003603/0.2578, allocations: 1.961 MB / 434.3 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001349/0.2592, allocations: 0.6661 MB / 434.9 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.2593, allocations: 3.938 kB / 434.9 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.255e-05/0.2594, allocations: 19.73 kB / 435 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.2595, allocations: 23.8 kB / 435 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005464/0.26, allocations: 123.7 kB / 435.1 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000281/0.2603, allocations: 212 kB / 435.3 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.2605, allocations: 77.84 kB / 435.4 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002237/0.2607, allocations: 91.64 kB / 435.5 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.2609, allocations: 95.59 kB / 435.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.929e-05/0.2609, allocations: 19.94 kB / 435.6 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.268e-05/0.261, allocations: 24 kB / 435.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.461e-05/0.261, allocations: 47.89 kB / 435.7 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.753e-05/0.2611, allocations: 71.59 kB / 435.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003047/0.2614, allocations: 222.8 kB / 435.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2614, allocations: 0 / 435.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2614, allocations: 0 / 435.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.2614, allocations: 4 kB / 436 MB, free: 3.105 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.0009473/0.2624, allocations: 480 kB / 436.4 MB, free: 2.594 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.2624, allocations: 8.031 kB / 436.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001897/0.2626, allocations: 28.8 kB / 436.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003829/0.263, allocations: 174.8 kB / 436.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.559e-05/0.2631, allocations: 64.3 kB / 436.7 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.881e-05/0.2631, allocations: 27.92 kB / 436.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007883/0.2639, allocations: 350.9 kB / 437.1 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.2639, allocations: 0 / 437.1 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.877e-05/0.2639, allocations: 11.98 kB / 437.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.2639, allocations: 4 kB / 437.1 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000444/0.2644, allocations: 135.8 kB / 437.2 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006865/0.2651, allocations: 365 kB / 437.6 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005296/0.2656, allocations: 189.1 kB / 437.7 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002794/0.2659, allocations: 101.8 kB / 437.8 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.2659, allocations: 7.984 kB / 437.9 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003731/0.2663, allocations: 141 kB / 438 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.2663, allocations: 0 / 438 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008544/0.2671, allocations: 281.3 kB / 438.3 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.684e-05/0.2672, allocations: 89.05 kB / 438.4 MB, free: 0.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001469/0.2674, allocations: 160.1 kB / 438.5 MB, free: 340 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.2674, allocations: 29.7 kB / 438.5 MB, free: 304 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.2676, allocations: 120.5 kB / 438.7 MB, free: 180 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.348e-05/0.2676, allocations: 39.73 kB / 438.7 MB, free: 140 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.182e-05/0.2677, allocations: 45.69 kB / 438.7 MB, free: 88 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.2679, allocations: 330.8 kB / 439.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002295/0.2681, allocations: 93.89 kB / 439.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002793/0.2684, allocations: 172.4 kB / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004502/0.2688, allocations: 246.2 kB / 439.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.2688, allocations: 0 / 439.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006049/0.2694, allocations: 300.9 kB / 439.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.069e-05/0.2695, allocations: 41.69 kB / 439.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.2695, allocations: 7.938 kB / 439.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.2695, allocations: 4 kB / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002184/0.2697, allocations: 35.97 kB / 439.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.2697, allocations: 7.938 kB / 440 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001847/0.2699, allocations: 35.83 kB / 440 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.487e-05/0.2699, allocations: 12 kB / 440 MB, free: 14.7 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.0002003/0.2701, allocations: 145.5 kB / 440.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000203/0.2703, allocations: 114.4 kB / 440.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001237/0.2705, allocations: 20.72 kB / 440.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.2705, allocations: 0 / 440.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.2705, allocations: 0 / 440.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.2705, allocations: 7.984 kB / 440.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008289/0.2713, allocations: 417.9 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2713, allocations: 0 / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001982/0.2715, allocations: 35.97 kB / 440.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.2715, allocations: 7.938 kB / 440.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.13e-05/0.2715, allocations: 11.98 kB / 440.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.2715, allocations: 0 / 440.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.2715, allocations: 4 kB / 440.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006055/0.2721, allocations: 327.7 kB / 441.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.444e-05/0.2722, allocations: 11.91 kB / 441.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.806e-05/0.2722, allocations: 8 kB / 441.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001947/0.2724, allocations: 23.97 kB / 441.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.072e-05/0.2725, allocations: 15.92 kB / 441.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.193e-05/0.2725, allocations: 11.98 kB / 441.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.437e-05/0.2726, allocations: 107.3 kB / 441.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2726, allocations: 0 / 441.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003059/0.2729, allocations: 35.94 kB / 441.3 MB, free: 13.35 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.000139/0.273, allocations: 119.2 kB / 441.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006243/0.2737, allocations: 264.8 kB / 441.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2737, allocations: 0 / 441.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002033/0.2739, allocations: 63.89 kB / 441.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004591/0.2743, allocations: 59.94 kB / 441.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007278/0.275, allocations: 318.2 kB / 442.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001902/0.2752, allocations: 124.3 kB / 442.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.96e-05/0.2753, allocations: 21.42 kB / 442.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.308e-05/0.2754, allocations: 19.42 kB / 442.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2754, allocations: 0 / 442.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of Templates: time 0.006207/0.2816, allocations: 2.172 MB / 444.4 MB, free: 10.16 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/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: 4.3366073459910695]