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.001385/0.001385, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001607/0.001607, allocations: 214.3 kB / 23.73 MB, free: 4.164 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.495/1.495, allocations: 230.5 MB / 257.4 MB, free: 7.785 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.002039/0.002039, allocations: 59.89 kB / 378.2 MB, free: 2.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3294, allocations: 53.41 MB / 431.6 MB, free: 6.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004133/0.3335, allocations: 1.957 MB / 433.6 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001499/0.335, allocations: 0.6661 MB / 434.2 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.3352, allocations: 0 / 434.2 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.887e-05/0.3353, allocations: 19.73 kB / 434.3 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001598/0.3354, allocations: 27.73 kB / 434.3 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000614/0.336, allocations: 131.2 kB / 434.4 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003309/0.3364, allocations: 208 kB / 434.6 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002422/0.3366, allocations: 64.83 kB / 434.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/0.3369, allocations: 95.62 kB / 434.8 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/0.337, allocations: 79.61 kB / 434.9 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.083e-05/0.337, allocations: 16 kB / 434.9 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.994e-05/0.3371, allocations: 31.98 kB / 434.9 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.937e-05/0.3372, allocations: 39.92 kB / 434.9 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.641e-05/0.3373, allocations: 75.58 kB / 435 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003472/0.3376, allocations: 233.3 kB / 435.2 MB, free: 2.875 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.3376, allocations: 0 / 435.2 MB, free: 2.875 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3376, allocations: 0 / 435.2 MB, free: 2.875 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.3376, allocations: 0 / 435.2 MB, free: 2.875 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.001028/0.3387, allocations: 465.3 kB / 435.7 MB, free: 2.375 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.3387, allocations: 8.031 kB / 435.7 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002023/0.3389, allocations: 36.78 kB / 435.7 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004295/0.3393, allocations: 178.3 kB / 435.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000134/0.3395, allocations: 72.28 kB / 436 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.163e-05/0.3395, allocations: 19.94 kB / 436 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008735/0.3404, allocations: 360.6 kB / 436.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.3404, allocations: 0 / 436.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.3404, allocations: 8 kB / 436.4 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.3404, allocations: 4 kB / 436.4 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004434/0.3409, allocations: 127.8 kB / 436.5 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007569/0.3416, allocations: 365 kB / 436.9 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005283/0.3422, allocations: 197.1 kB / 437 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000258/0.3424, allocations: 97.66 kB / 437.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.3425, allocations: 0 / 437.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003352/0.3428, allocations: 149 kB / 437.3 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.3428, allocations: 192 / 437.3 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008429/0.3436, allocations: 281.3 kB / 437.6 MB, free: 384 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.999e-05/0.3437, allocations: 92.98 kB / 437.7 MB, free: 272 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.3439, allocations: 161.5 kB / 437.8 MB, free: 100 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.155e-05/0.3439, allocations: 25.7 kB / 437.8 MB, free: 68 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.344, allocations: 116.5 kB / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.96e-05/0.3441, allocations: 47.78 kB / 438 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.86e-05/0.3442, allocations: 45.7 kB / 438 MB, free: 15.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.3443, allocations: 330.8 kB / 438.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.3446, allocations: 93.89 kB / 438.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002956/0.3449, allocations: 173.1 kB / 438.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004473/0.3453, allocations: 235.8 kB / 438.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3453, allocations: 0 / 438.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005995/0.3459, allocations: 308 kB / 439.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.834e-05/0.3459, allocations: 37.69 kB / 439.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.346, allocations: 4 kB / 439.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.346, allocations: 4 kB / 439.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002038/0.3462, allocations: 43.91 kB / 439.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.3462, allocations: 4 kB / 439.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.3464, allocations: 40.17 kB / 439.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.622e-05/0.3464, allocations: 11.98 kB / 439.3 MB, free: 14.47 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.0001693/0.3466, allocations: 145.5 kB / 439.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002049/0.3468, allocations: 109.5 kB / 439.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.204e-05/0.3468, allocations: 20.72 kB / 439.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.3468, allocations: 0 / 439.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.3469, allocations: 7.938 kB / 439.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3469, allocations: 7.984 kB / 439.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000725/0.3476, allocations: 405.9 kB / 440 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3476, allocations: 3.984 kB / 440 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001956/0.3478, allocations: 47.89 kB / 440 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.3478, allocations: 0 / 440 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.3478, allocations: 4 kB / 440 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3478, allocations: 0 / 440 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.3478, allocations: 4 kB / 440 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006348/0.3485, allocations: 333 kB / 440.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.179e-05/0.3485, allocations: 15.91 kB / 440.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.3485, allocations: 7.938 kB / 440.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001832/0.3487, allocations: 19.97 kB / 440.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.561e-05/0.3488, allocations: 19.92 kB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.3488, allocations: 7.984 kB / 440.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001092/0.3489, allocations: 120.1 kB / 440.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3489, allocations: 0 / 440.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003189/0.3492, allocations: 31.94 kB / 440.6 MB, free: 13.11 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.000148/0.3494, allocations: 111.2 kB / 440.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006309/0.35, allocations: 264.8 kB / 440.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.35, allocations: 0 / 440.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001966/0.3502, allocations: 56.64 kB / 441 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004697/0.3507, allocations: 72.42 kB / 441.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007456/0.3514, allocations: 317.5 kB / 441.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001314/0.3516, allocations: 120.3 kB / 441.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.876e-05/0.3516, allocations: 17.48 kB / 441.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.297e-05/0.3517, allocations: 23.42 kB / 441.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3517, allocations: 0 / 441.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of Templates: time 0.00676/0.3585, allocations: 2.136 MB / 443.7 MB, free: 9.957 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: 4.789872067049146]