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.001586/0.001586, allocations: 115 kB / 21.17 MB, free: 0.7812 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.001721/0.001721, allocations: 219.6 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.537/1.537, allocations: 230.4 MB / 258.1 MB, free: 8.176 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.00204/0.00204, allocations: 71.81 kB / 378.7 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3273, allocations: 53.32 MB / 432 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00393/0.3313, allocations: 2.016 MB / 434.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001482/0.3328, allocations: 0.7128 MB / 434.8 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.3329, allocations: 7.938 kB / 434.8 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.158e-05/0.333, allocations: 15.8 kB / 434.8 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.3331, allocations: 31.72 kB / 434.8 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004942/0.3336, allocations: 123.7 kB / 434.9 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002943/0.3339, allocations: 200 kB / 435.1 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.3341, allocations: 72.33 kB / 435.2 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002486/0.3343, allocations: 87.7 kB / 435.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.3345, allocations: 95.58 kB / 435.4 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.914e-05/0.3345, allocations: 20 kB / 435.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.218e-05/0.3346, allocations: 24 kB / 435.4 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.963e-05/0.3347, allocations: 43.83 kB / 435.5 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.3348, allocations: 91.47 kB / 435.6 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000352/0.3351, allocations: 216.7 kB / 435.8 MB, free: 3.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3351, allocations: 0 / 435.8 MB, free: 3.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3351, allocations: 0 / 435.8 MB, free: 3.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.3351, allocations: 7.938 kB / 435.8 MB, free: 3.672 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.001027/0.3361, allocations: 0.5374 MB / 436.3 MB, free: 3.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.3362, allocations: 8.031 kB / 436.3 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002048/0.3364, allocations: 32.78 kB / 436.4 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004079/0.3368, allocations: 236.6 kB / 436.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.33e-05/0.3369, allocations: 42.59 kB / 436.6 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.103e-05/0.3369, allocations: 27.88 kB / 436.7 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007863/0.3377, allocations: 333.7 kB / 437 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.3377, allocations: 0 / 437 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.3378, allocations: 4 kB / 437 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.3378, allocations: 4 kB / 437 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000447/0.3382, allocations: 135.8 kB / 437.1 MB, free: 2.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007536/0.339, allocations: 457.4 kB / 437.6 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005314/0.3395, allocations: 189.1 kB / 437.8 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002815/0.3398, allocations: 101.7 kB / 437.9 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.381e-05/0.3398, allocations: 12.06 kB / 437.9 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003261/0.3401, allocations: 119.4 kB / 438 MB, free: 1.258 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.3401, allocations: 0 / 438 MB, free: 1.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008773/0.341, allocations: 294 kB / 438.3 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.878e-05/0.3411, allocations: 89.11 kB / 438.4 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.3413, allocations: 153.9 kB / 438.5 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.3413, allocations: 33.7 kB / 438.5 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.791e-05/0.3414, allocations: 112.5 kB / 438.6 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.824e-05/0.3414, allocations: 35.73 kB / 438.7 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.51e-05/0.3415, allocations: 49.69 kB / 438.7 MB, free: 468 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.3417, allocations: 334.8 kB / 439.1 MB, free: 124 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000215/0.3419, allocations: 60.19 kB / 439.1 MB, free: 64 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002896/0.3422, allocations: 147 kB / 439.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004798/0.3427, allocations: 238.4 kB / 439.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3427, allocations: 0 / 439.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006076/0.3433, allocations: 274.9 kB / 439.8 MB, free: 15.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.732e-05/0.3433, allocations: 37.7 kB / 439.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.3433, allocations: 4 kB / 439.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.34e-05/0.3434, allocations: 4 kB / 439.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002184/0.3436, allocations: 44.25 kB / 439.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.3436, allocations: 7.984 kB / 439.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001867/0.3438, allocations: 27.94 kB / 439.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.3438, allocations: 15.88 kB / 439.9 MB, free: 15.18 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.0001867/0.344, allocations: 141.7 kB / 440 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002135/0.3442, allocations: 109.5 kB / 440.1 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.413e-05/0.3443, allocations: 24.7 kB / 440.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.3443, allocations: 4 kB / 440.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.3443, allocations: 0 / 440.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.3443, allocations: 4 kB / 440.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008547/0.3452, allocations: 0.4903 MB / 440.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3452, allocations: 0 / 440.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001992/0.3454, allocations: 39.97 kB / 440.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.3454, allocations: 4 kB / 440.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.3454, allocations: 7.984 kB / 440.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.332e-06/0.3454, allocations: 7.938 kB / 440.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3454, allocations: 0 / 440.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000634/0.346, allocations: 320 kB / 441 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.741e-05/0.3461, allocations: 97.02 kB / 441.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.713e-05/0.3461, allocations: 4 kB / 441.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/0.3463, allocations: 27.91 kB / 441.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.3464, allocations: 15.92 kB / 441.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.083e-05/0.3465, allocations: 12 kB / 441.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000102/0.3466, allocations: 114.1 kB / 441.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3466, allocations: 0 / 441.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.3469, allocations: 35.94 kB / 441.3 MB, free: 13.63 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.0001582/0.347, allocations: 119.2 kB / 441.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006656/0.3477, allocations: 234.2 kB / 441.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3477, allocations: 0 / 441.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001976/0.3479, allocations: 60.58 kB / 441.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004795/0.3484, allocations: 60 kB / 441.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008492/0.3492, allocations: 371.6 kB / 442.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004445/0.3497, allocations: 0.7322 MB / 442.9 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.562e-05/0.3498, allocations: 19.42 kB / 442.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3498, allocations: 0 / 442.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of Templates: time 0.005976/0.3557, allocations: 2.214 MB / 445.1 MB, free: 9.781 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 -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:rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed,sample_angle.y,time [Calling sys.exit(0), Time elapsed: 7.403804434929043]