Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001326/0.001326, allocations: 108.4 kB / 21.17 MB, free: 0.7852 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.001559/0.001559, allocations: 217.3 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.482/1.482, allocations: 230.4 MB / 258.1 MB, free: 8.137 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002649/0.002649, allocations: 71.83 kB / 378.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4207/0.4233, allocations: 53.32 MB / 432 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004064/0.4274, allocations: 2.03 MB / 434.1 MB, free: 5.348 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001646/0.429, allocations: 0.705 MB / 434.8 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.4291, allocations: 4 kB / 434.8 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.443e-05/0.4292, allocations: 19.73 kB / 434.8 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001218/0.4293, allocations: 31.73 kB / 434.8 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004484/0.4298, allocations: 115.8 kB / 434.9 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003531/0.4301, allocations: 208 kB / 435.1 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002338/0.4304, allocations: 72.31 kB / 435.2 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002374/0.4306, allocations: 91.69 kB / 435.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001547/0.4308, allocations: 91.59 kB / 435.4 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.941e-05/0.4308, allocations: 20 kB / 435.4 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.994e-05/0.4309, allocations: 24 kB / 435.4 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.727e-05/0.4309, allocations: 43.84 kB / 435.5 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.431, allocations: 87.52 kB / 435.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003407/0.4313, allocations: 224.6 kB / 435.8 MB, free: 3.625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.4314, allocations: 4 kB / 435.8 MB, free: 3.621 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4314, allocations: 0 / 435.8 MB, free: 3.621 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.4314, allocations: 0 / 435.8 MB, free: 3.621 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.001087/0.4325, allocations: 0.5257 MB / 436.3 MB, free: 3.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.4325, allocations: 16.03 kB / 436.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002096/0.4327, allocations: 36.72 kB / 436.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003958/0.4331, allocations: 236.6 kB / 436.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.187e-05/0.4332, allocations: 42.53 kB / 436.6 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.457e-05/0.4332, allocations: 27.88 kB / 436.7 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008073/0.434, allocations: 329.6 kB / 437 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.434, allocations: 0 / 437 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.192e-05/0.4341, allocations: 4 kB / 437 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.4341, allocations: 4 kB / 437 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004488/0.4345, allocations: 135.8 kB / 437.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007392/0.4352, allocations: 461.3 kB / 437.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005167/0.4358, allocations: 193.1 kB / 437.8 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002682/0.436, allocations: 97.66 kB / 437.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.4361, allocations: 4 kB / 437.9 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003166/0.4364, allocations: 123.4 kB / 438 MB, free: 1.211 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.4364, allocations: 0 / 438 MB, free: 1.211 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.000894/0.4373, allocations: 282.1 kB / 438.3 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.342e-05/0.4374, allocations: 97.03 kB / 438.3 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.4375, allocations: 149.9 kB / 438.5 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.4375, allocations: 41.69 kB / 438.5 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.13e-05/0.4376, allocations: 112.5 kB / 438.6 MB, free: 0.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.314e-05/0.4377, allocations: 39.8 kB / 438.7 MB, free: 472 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.373e-05/0.4378, allocations: 45.7 kB / 438.7 MB, free: 420 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.4379, allocations: 334.8 kB / 439.1 MB, free: 76 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.4381, allocations: 60.19 kB / 439.1 MB, free: 16 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002876/0.4384, allocations: 142.7 kB / 439.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005038/0.4389, allocations: 243.7 kB / 439.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.4389, allocations: 0 / 439.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005988/0.4395, allocations: 275.2 kB / 439.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.4e-05/0.4396, allocations: 41.69 kB / 439.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.4396, allocations: 4 kB / 439.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.4396, allocations: 4 kB / 439.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002029/0.4398, allocations: 39.91 kB / 439.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.4398, allocations: 4 kB / 439.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001808/0.44, allocations: 31.92 kB / 439.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.974e-05/0.44, allocations: 15.92 kB / 439.9 MB, free: 15.13 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.0001636/0.4402, allocations: 145.8 kB / 440 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002458/0.4404, allocations: 113.5 kB / 440.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.781e-05/0.4405, allocations: 16.72 kB / 440.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.778e-06/0.4405, allocations: 4 kB / 440.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.4405, allocations: 0 / 440.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.4405, allocations: 7.922 kB / 440.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008167/0.4413, allocations: 494.2 kB / 440.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.4413, allocations: 0 / 440.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002033/0.4415, allocations: 47.89 kB / 440.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.4415, allocations: 4 kB / 440.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.4416, allocations: 0 / 440.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.4416, allocations: 3.938 kB / 440.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4416, allocations: 4 kB / 440.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007234/0.4423, allocations: 324 kB / 441 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.523e-05/0.4424, allocations: 97.02 kB / 441.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.336e-05/0.4424, allocations: 3.984 kB / 441.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.4426, allocations: 23.92 kB / 441.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.88e-05/0.4426, allocations: 15.92 kB / 441.2 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-05/0.4427, allocations: 11.98 kB / 441.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.094e-05/0.4428, allocations: 111.3 kB / 441.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4428, allocations: 0 / 441.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003056/0.4431, allocations: 39.92 kB / 441.3 MB, free: 13.58 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.0001346/0.4432, allocations: 110 kB / 441.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005904/0.4438, allocations: 242 kB / 441.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4438, allocations: 0 / 441.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.444, allocations: 55.95 kB / 441.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000449/0.4444, allocations: 59.94 kB / 441.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008215/0.4453, allocations: 346.5 kB / 442.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005487/0.4458, allocations: 0.7283 MB / 442.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.746e-05/0.4459, allocations: 21.53 kB / 442.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.194e-05/0.446, allocations: 23.42 kB / 442.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.446, allocations: 0 / 442.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of Templates: time 0.005706/0.4517, allocations: 2.034 MB / 444.9 MB, free: 9.93 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.949874352198094]