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.001271/0.001271, allocations: 106.2 kB / 19.8 MB, free: 2.5 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.001786/0.001786, allocations: 214.3 kB / 22.99 MB, free: 5.578 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.445/1.445, allocations: 230.2 MB / 256.2 MB, free: 8.543 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.002455/0.002455, allocations: 59.91 kB / 376.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3228, allocations: 53.33 MB / 429.8 MB, free: 7.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003911/0.3267, allocations: 2.023 MB / 431.8 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001328/0.328, allocations: 0.7129 MB / 432.5 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.3281, allocations: 4 kB / 432.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.048e-05/0.3282, allocations: 19.73 kB / 432.5 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.3283, allocations: 15.75 kB / 432.6 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004942/0.3288, allocations: 123.7 kB / 432.7 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002733/0.3291, allocations: 212 kB / 432.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002017/0.3293, allocations: 68.33 kB / 433 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000218/0.3295, allocations: 91.69 kB / 433 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001562/0.3296, allocations: 91.59 kB / 433.1 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.748e-05/0.3297, allocations: 20 kB / 433.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.579e-05/0.3297, allocations: 23.94 kB / 433.2 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.334e-05/0.3298, allocations: 43.91 kB / 433.2 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.985e-05/0.3299, allocations: 91.5 kB / 433.3 MB, free: 4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003394/0.3302, allocations: 220.3 kB / 433.5 MB, free: 3.789 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3302, allocations: 0 / 433.5 MB, free: 3.789 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3302, allocations: 4 kB / 433.5 MB, free: 3.785 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.3302, allocations: 0 / 433.5 MB, free: 3.785 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.0009507/0.3312, allocations: 0.5258 MB / 434.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.3312, allocations: 8.031 kB / 434.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001855/0.3314, allocations: 32.78 kB / 434.1 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003328/0.3318, allocations: 252.1 kB / 434.3 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.711e-05/0.3318, allocations: 42.59 kB / 434.4 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.455e-05/0.3319, allocations: 23.94 kB / 434.4 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007241/0.3326, allocations: 329.4 kB / 434.7 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.3326, allocations: 0 / 434.7 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.557e-05/0.3326, allocations: 8 kB / 434.7 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.3326, allocations: 4 kB / 434.7 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004013/0.333, allocations: 127.8 kB / 434.9 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009634/0.334, allocations: 473.3 kB / 435.3 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005401/0.3345, allocations: 197.1 kB / 435.5 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.3348, allocations: 89.67 kB / 435.6 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.908e-05/0.3349, allocations: 7.984 kB / 435.6 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003642/0.3352, allocations: 119.3 kB / 435.7 MB, free: 1.375 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.774e-06/0.3352, allocations: 0 / 435.7 MB, free: 1.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008227/0.3361, allocations: 285.8 kB / 436 MB, free: 1.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.281e-05/0.3362, allocations: 89.11 kB / 436.1 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.3363, allocations: 157.7 kB / 436.2 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.3363, allocations: 33.64 kB / 436.3 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.805e-05/0.3364, allocations: 116.5 kB / 436.4 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.402e-05/0.3365, allocations: 39.8 kB / 436.4 MB, free: 0.625 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-05/0.3366, allocations: 53.69 kB / 436.5 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.3367, allocations: 322.8 kB / 436.8 MB, free: 248 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.3369, allocations: 68.19 kB / 436.9 MB, free: 180 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002697/0.3372, allocations: 146.7 kB / 437 MB, free: 16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004528/0.3377, allocations: 234.7 kB / 437.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3377, allocations: 0 / 437.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006201/0.3383, allocations: 282.9 kB / 437.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.249e-05/0.3383, allocations: 33.7 kB / 437.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.3383, allocations: 0 / 437.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.3383, allocations: 4 kB / 437.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002033/0.3386, allocations: 51.91 kB / 437.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.3386, allocations: 4.344 kB / 437.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001685/0.3387, allocations: 27.92 kB / 437.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.027e-05/0.3388, allocations: 19.94 kB / 437.7 MB, free: 15.29 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.0001647/0.3389, allocations: 137.9 kB / 437.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002055/0.3391, allocations: 101.6 kB / 437.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.187e-05/0.3392, allocations: 24.7 kB / 437.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.3392, allocations: 4 kB / 437.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3392, allocations: 3.938 kB / 437.9 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3392, allocations: 4 kB / 437.9 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007833/0.34, allocations: 0.4904 MB / 438.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.34, allocations: 0 / 438.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.3402, allocations: 39.91 kB / 438.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.3402, allocations: 0 / 438.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.3402, allocations: 11.98 kB / 438.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.3402, allocations: 7.938 kB / 438.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3402, allocations: 0 / 438.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000585/0.3408, allocations: 320.1 kB / 438.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.018e-05/0.3409, allocations: 92.95 kB / 438.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/0.3409, allocations: 8 kB / 438.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.3411, allocations: 31.84 kB / 438.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.592e-05/0.3412, allocations: 15.92 kB / 438.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.3412, allocations: 8 kB / 438.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.266e-05/0.3413, allocations: 112.5 kB / 439.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3413, allocations: 0 / 439.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002913/0.3416, allocations: 39.94 kB / 439.1 MB, free: 13.74 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.0001374/0.3417, allocations: 111.2 kB / 439.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005648/0.3423, allocations: 239.1 kB / 439.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.3423, allocations: 4 kB / 439.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001755/0.3424, allocations: 47.97 kB / 439.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004526/0.3429, allocations: 72.97 kB / 439.6 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007263/0.3436, allocations: 341 kB / 439.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003569/0.344, allocations: 0.7244 MB / 440.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.543e-05/0.3441, allocations: 17.55 kB / 440.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.39e-05/0.3441, allocations: 19.44 kB / 440.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3441, allocations: 0 / 440.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Templates: time 0.005758/0.3499, allocations: 2.044 MB / 442.7 MB, free: 10.07 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: 5.013723305426538]