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.001616/0.001616, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.001911/0.001911, allocations: 215.6 kB / 24.48 MB, free: 3.84 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.444/1.444, allocations: 230.6 MB / 258.2 MB, free: 7.809 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.001628/0.001628, allocations: 51.94 kB / 379 MB, free: 2.594 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2801, allocations: 53.36 MB / 432.3 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004984/0.2851, allocations: 1.957 MB / 434.3 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002111/0.2872, allocations: 0.6738 MB / 435 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.2874, allocations: 4 kB / 435 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.692e-05/0.2875, allocations: 19.73 kB / 435 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.2876, allocations: 27.72 kB / 435 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006981/0.2883, allocations: 127.8 kB / 435.1 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003937/0.2887, allocations: 200 kB / 435.3 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002739/0.289, allocations: 68.77 kB / 435.4 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003203/0.2893, allocations: 91.7 kB / 435.5 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.2895, allocations: 83.59 kB / 435.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.064e-05/0.2896, allocations: 20 kB / 435.6 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.734e-05/0.2897, allocations: 20 kB / 435.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.245e-05/0.2898, allocations: 47.83 kB / 435.6 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.2899, allocations: 71.66 kB / 435.7 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004951/0.2904, allocations: 232.7 kB / 435.9 MB, free: 3.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2904, allocations: 0 / 435.9 MB, free: 3.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.2904, allocations: 0 / 435.9 MB, free: 3.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.2904, allocations: 0 / 435.9 MB, free: 3.145 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.001364/0.2917, allocations: 465.3 kB / 436.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.2918, allocations: 8.031 kB / 436.4 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002783/0.2921, allocations: 32.78 kB / 436.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005205/0.2926, allocations: 182.8 kB / 436.6 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001322/0.2927, allocations: 72.3 kB / 436.7 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.541e-05/0.2928, allocations: 19.88 kB / 436.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.2941, allocations: 360.7 kB / 437.1 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.2941, allocations: 4 kB / 437.1 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.6e-05/0.2941, allocations: 4 kB / 437.1 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.2941, allocations: 4 kB / 437.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008358/0.295, allocations: 131.8 kB / 437.2 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.2961, allocations: 357.1 kB / 437.5 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.2971, allocations: 197.1 kB / 437.7 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005147/0.2976, allocations: 97.59 kB / 437.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.463e-05/0.2976, allocations: 4 kB / 437.8 MB, free: 1.086 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005596/0.2982, allocations: 149.1 kB / 438 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 3.276e-06/0.2982, allocations: 0 / 438 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001597/0.2998, allocations: 281.3 kB / 438.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/0.2999, allocations: 97.03 kB / 438.4 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002528/0.3002, allocations: 152.1 kB / 438.5 MB, free: 376 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.845e-05/0.3003, allocations: 33.69 kB / 438.5 MB, free: 336 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.3004, allocations: 112.5 kB / 438.6 MB, free: 220 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.589e-05/0.3005, allocations: 39.73 kB / 438.7 MB, free: 180 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.3006, allocations: 45.7 kB / 438.7 MB, free: 128 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002827/0.3009, allocations: 334.8 kB / 439.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004125/0.3013, allocations: 93.89 kB / 439.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005173/0.3018, allocations: 168.4 kB / 439.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008514/0.3027, allocations: 235.7 kB / 439.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.3027, allocations: 0 / 439.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001136/0.3038, allocations: 308.6 kB / 439.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.524e-05/0.3039, allocations: 37.7 kB / 439.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.3039, allocations: 4 kB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.778e-05/0.3039, allocations: 7.984 kB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003675/0.3043, allocations: 43.91 kB / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.3043, allocations: 4 kB / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.3047, allocations: 36.17 kB / 440 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.791e-05/0.3047, allocations: 8 kB / 440 MB, free: 14.75 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.0002556/0.3049, allocations: 149.5 kB / 440.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003627/0.3053, allocations: 101.6 kB / 440.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.3054, allocations: 24.7 kB / 440.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.3054, allocations: 7.938 kB / 440.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.3054, allocations: 0 / 440.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/0.3054, allocations: 0 / 440.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00129/0.3067, allocations: 414.9 kB / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.814e-06/0.3067, allocations: 3.984 kB / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003728/0.3071, allocations: 47.91 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.3071, allocations: 4 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.393e-05/0.3071, allocations: 0 / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.093e-06/0.3071, allocations: 4 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.3071, allocations: 0 / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.3082, allocations: 339.6 kB / 441.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.978e-05/0.3083, allocations: 11.91 kB / 441.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.802e-05/0.3083, allocations: 11.98 kB / 441.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003154/0.3086, allocations: 11.98 kB / 441.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.3088, allocations: 27.84 kB / 441.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.3088, allocations: 4 kB / 441.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001593/0.3089, allocations: 115.2 kB / 441.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3089, allocations: 3.938 kB / 441.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005663/0.3095, allocations: 39.94 kB / 441.3 MB, free: 13.38 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.0002135/0.3097, allocations: 107.2 kB / 441.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.3108, allocations: 268.8 kB / 441.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3108, allocations: 0 / 441.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003443/0.3112, allocations: 48.66 kB / 441.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007926/0.312, allocations: 70.19 kB / 441.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.3132, allocations: 357.3 kB / 442.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00021/0.3134, allocations: 120.3 kB / 442.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.3135, allocations: 19.44 kB / 442.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3135, allocations: 4 kB / 442.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of Templates: time 0.007939/0.3214, allocations: 2.254 MB / 444.5 MB, free: 10.08 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/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:rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed,sample_angle.y,time [Calling sys.exit(0), Time elapsed: 7.083477480802685]