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.001407/0.001407, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001485/0.001485, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.623/1.623, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.00158/0.00158, allocations: 51.91 kB / 378.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2821, allocations: 53.35 MB / 431.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003592/0.2857, allocations: 1.953 MB / 433.5 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.2871, allocations: 0.6622 MB / 434.2 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.2872, allocations: 3.938 kB / 434.2 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.117e-05/0.2873, allocations: 15.8 kB / 434.2 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001263/0.2874, allocations: 35.66 kB / 434.2 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005351/0.2879, allocations: 135.6 kB / 434.4 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002709/0.2882, allocations: 200.1 kB / 434.6 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001922/0.2884, allocations: 76.75 kB / 434.6 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000223/0.2886, allocations: 95.62 kB / 434.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.2888, allocations: 87.62 kB / 434.8 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.488e-05/0.2888, allocations: 16 kB / 434.8 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.889e-05/0.2889, allocations: 31.97 kB / 434.9 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.362e-05/0.2889, allocations: 43.86 kB / 434.9 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.785e-05/0.289, allocations: 71.66 kB / 435 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000311/0.2893, allocations: 233.3 kB / 435.2 MB, free: 3.066 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.2893, allocations: 0 / 435.2 MB, free: 3.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2893, allocations: 0 / 435.2 MB, free: 3.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.2893, allocations: 0 / 435.2 MB, free: 3.066 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.0009488/0.2903, allocations: 469.3 kB / 435.7 MB, free: 2.562 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.2903, allocations: 8.031 kB / 435.7 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001783/0.2905, allocations: 32.78 kB / 435.7 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003178/0.2908, allocations: 178.8 kB / 435.9 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.622e-05/0.2909, allocations: 72.27 kB / 435.9 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.751e-05/0.2909, allocations: 23.94 kB / 436 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008078/0.2918, allocations: 359.5 kB / 436.3 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.2918, allocations: 0 / 436.3 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.2918, allocations: 8 kB / 436.3 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.2918, allocations: 7.938 kB / 436.3 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004461/0.2922, allocations: 123.9 kB / 436.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006713/0.2929, allocations: 357.1 kB / 436.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006275/0.2935, allocations: 197.1 kB / 437 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002666/0.2938, allocations: 97.66 kB / 437.1 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.2938, allocations: 192 / 437.1 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003184/0.2942, allocations: 148.9 kB / 437.2 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.633e-06/0.2942, allocations: 0 / 437.2 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.000858/0.295, allocations: 289.3 kB / 437.5 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.493e-05/0.2951, allocations: 85.11 kB / 437.6 MB, free: 472 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.2952, allocations: 159.7 kB / 437.8 MB, free: 304 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.2953, allocations: 29.7 kB / 437.8 MB, free: 268 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.417e-05/0.2954, allocations: 116.5 kB / 437.9 MB, free: 148 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.422e-05/0.2954, allocations: 43.72 kB / 437.9 MB, free: 104 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.128e-05/0.2955, allocations: 45.7 kB / 438 MB, free: 52 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.2956, allocations: 326.8 kB / 438.3 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002334/0.2959, allocations: 97.89 kB / 438.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002809/0.2962, allocations: 168.4 kB / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004594/0.2966, allocations: 238.5 kB / 438.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2966, allocations: 0 / 438.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006386/0.2973, allocations: 304.7 kB / 439.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.257e-05/0.2973, allocations: 37.69 kB / 439.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.2973, allocations: 4 kB / 439.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.2973, allocations: 4 kB / 439.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.2976, allocations: 43.91 kB / 439.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.2976, allocations: 11.88 kB / 439.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001847/0.2978, allocations: 32.08 kB / 439.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.567e-05/0.2978, allocations: 19.98 kB / 439.2 MB, free: 14.67 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.0001505/0.2979, allocations: 141.5 kB / 439.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002074/0.2981, allocations: 110.4 kB / 439.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.949e-05/0.2982, allocations: 24.72 kB / 439.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.2982, allocations: 0 / 439.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2982, allocations: 0 / 439.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.2982, allocations: 7.984 kB / 439.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007923/0.299, allocations: 422 kB / 439.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.299, allocations: 0 / 439.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002044/0.2992, allocations: 35.97 kB / 440 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.2992, allocations: 3.984 kB / 440 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.2992, allocations: 8 kB / 440 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.2993, allocations: 3.984 kB / 440 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.2993, allocations: 7.938 kB / 440 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006201/0.2999, allocations: 328 kB / 440.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.537e-05/0.2999, allocations: 11.91 kB / 440.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.59e-05/0.2999, allocations: 8 kB / 440.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.3001, allocations: 19.97 kB / 440.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.246e-05/0.3002, allocations: 19.92 kB / 440.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-05/0.3002, allocations: 7.984 kB / 440.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.807e-05/0.3003, allocations: 115.2 kB / 440.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3003, allocations: 3.938 kB / 440.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002989/0.3006, allocations: 31.94 kB / 440.5 MB, free: 13.3 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.0001282/0.3007, allocations: 111.2 kB / 440.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006162/0.3013, allocations: 260.8 kB / 440.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3014, allocations: 0 / 440.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001995/0.3016, allocations: 64.58 kB / 441 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004497/0.302, allocations: 66.52 kB / 441 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006701/0.3027, allocations: 320.3 kB / 441.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001237/0.3028, allocations: 120.3 kB / 441.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.503e-05/0.3029, allocations: 17.48 kB / 441.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.644e-05/0.3029, allocations: 19.42 kB / 441.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3029, allocations: 3.938 kB / 441.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of Templates: time 0.005835/0.3088, allocations: 2.182 MB / 443.7 MB, free: 10.11 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 -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/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_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.882206026930362]