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.001295/0.001295, allocations: 107.6 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.001387/0.001387, allocations: 204.8 kB / 24.48 MB, free: 3.695 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.521/1.521, 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.001539/0.001539, allocations: 51.91 kB / 379 MB, free: 2.508 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2723, allocations: 53.37 MB / 432.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003339/0.2756, allocations: 1.953 MB / 434.3 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.2769, allocations: 0.6738 MB / 434.9 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.277, allocations: 3.938 kB / 435 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.996e-05/0.2771, allocations: 19.73 kB / 435 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.2772, allocations: 27.73 kB / 435 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004536/0.2777, allocations: 119.8 kB / 435.1 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002682/0.2779, allocations: 204 kB / 435.3 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001989/0.2781, allocations: 81.83 kB / 435.4 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.2784, allocations: 95.62 kB / 435.5 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.2785, allocations: 95.59 kB / 435.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.716e-05/0.2785, allocations: 16 kB / 435.6 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.471e-05/0.2786, allocations: 24 kB / 435.6 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.497e-05/0.2787, allocations: 47.84 kB / 435.7 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.595e-05/0.2787, allocations: 67.66 kB / 435.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002988/0.279, allocations: 226.8 kB / 436 MB, free: 3.113 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.279, allocations: 0 / 436 MB, free: 3.113 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.279, allocations: 0 / 436 MB, free: 3.113 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.279, allocations: 4 kB / 436 MB, free: 3.109 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.0008859/0.2799, allocations: 469.3 kB / 436.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.28, allocations: 8.031 kB / 436.4 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001731/0.2801, allocations: 32.78 kB / 436.5 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003028/0.2804, allocations: 178.8 kB / 436.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.964e-05/0.2805, allocations: 64.3 kB / 436.7 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.775e-05/0.2806, allocations: 23.94 kB / 436.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000755/0.2813, allocations: 363.4 kB / 437.1 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.2813, allocations: 0 / 437.1 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.2814, allocations: 8 kB / 437.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.2814, allocations: 4 kB / 437.1 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004263/0.2818, allocations: 135.9 kB / 437.2 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006196/0.2824, allocations: 357.1 kB / 437.6 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005091/0.2829, allocations: 193.1 kB / 437.8 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002626/0.2832, allocations: 105.8 kB / 437.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.678e-05/0.2832, allocations: 4 kB / 437.9 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003086/0.2835, allocations: 141 kB / 438 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.753e-06/0.2835, allocations: 7.875 kB / 438 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008185/0.2843, allocations: 281.3 kB / 438.3 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.65e-05/0.2844, allocations: 89.09 kB / 438.4 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.2846, allocations: 157.9 kB / 438.5 MB, free: 340 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.22e-05/0.2846, allocations: 29.7 kB / 438.5 MB, free: 304 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.437e-05/0.2847, allocations: 120.5 kB / 438.7 MB, free: 180 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.339e-05/0.2847, allocations: 39.73 kB / 438.7 MB, free: 140 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.742e-05/0.2848, allocations: 41.7 kB / 438.7 MB, free: 92 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.285, allocations: 330.8 kB / 439.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002266/0.2852, allocations: 93.88 kB / 439.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000274/0.2855, allocations: 172.4 kB / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004515/0.2859, allocations: 235.9 kB / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.2859, allocations: 0 / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006159/0.2865, allocations: 308.9 kB / 439.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.876e-05/0.2866, allocations: 37.7 kB / 439.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.2866, allocations: 7.938 kB / 439.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.2866, allocations: 4 kB / 439.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002036/0.2868, allocations: 35.97 kB / 439.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.2868, allocations: 7.938 kB / 440 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001831/0.287, allocations: 39.81 kB / 440 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.287, allocations: 12 kB / 440 MB, free: 14.71 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.0001479/0.2872, allocations: 141.5 kB / 440.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001959/0.2874, allocations: 110.5 kB / 440.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.349e-05/0.2874, allocations: 24.7 kB / 440.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.2874, allocations: 0 / 440.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.2875, allocations: 0 / 440.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.2875, allocations: 4 kB / 440.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007887/0.2882, allocations: 418 kB / 440.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.2883, allocations: 0 / 440.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001977/0.2884, allocations: 43.89 kB / 440.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.2885, allocations: 7.984 kB / 440.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.964e-05/0.2885, allocations: 8 kB / 440.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2885, allocations: 0 / 440.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.2885, allocations: 4 kB / 440.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006048/0.2891, allocations: 324 kB / 441.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.666e-05/0.2891, allocations: 11.91 kB / 441.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.887e-05/0.2891, allocations: 15.98 kB / 441.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.2893, allocations: 19.98 kB / 441.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.824e-05/0.2894, allocations: 15.91 kB / 441.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.887e-05/0.2894, allocations: 12 kB / 441.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.848e-05/0.2895, allocations: 108.9 kB / 441.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2895, allocations: 4 kB / 441.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002925/0.2898, allocations: 43.81 kB / 441.3 MB, free: 13.34 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.0001275/0.2899, allocations: 107.2 kB / 441.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005894/0.2905, allocations: 264.9 kB / 441.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2905, allocations: 0 / 441.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001833/0.2907, allocations: 59.91 kB / 441.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004638/0.2912, allocations: 59.94 kB / 441.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006999/0.2919, allocations: 351.8 kB / 442.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001229/0.292, allocations: 124.3 kB / 442.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.11e-05/0.2921, allocations: 19.44 kB / 442.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of SimCode: time 4.6e-07/0.2921, allocations: 0 / 442.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of Templates: time 0.004549/0.2966, allocations: 2.262 MB / 444.5 MB, free: 10.04 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.447945279011037]