Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008883/0.0008882, allocations: 176.4 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 223.3 MB / 241.4 MB, free: 11.6 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007647/0.0007648, allocations: 100.8 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.0003362, allocations: 15.94 kB / 352.3 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2186, allocations: 50.4 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08996/0.3086, allocations: 79.41 MB / 482.2 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.3088, allocations: 79.95 kB / 482.2 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008192/0.317, allocations: 3.046 MB / 485.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3171, allocations: 0 / 485.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.327e-05/0.3171, allocations: 4 kB / 485.3 MB, free: 13.81 MB / 362.7 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.000701/0.3178, allocations: 0.5077 MB / 485.8 MB, free: 13.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.3178, allocations: 12.03 kB / 485.8 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.227e-05/0.3179, allocations: 20.66 kB / 485.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.3182, allocations: 232.9 kB / 486.1 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.606e-05/0.3182, allocations: 38.59 kB / 486.1 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.728e-05/0.3183, allocations: 16.38 kB / 486.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006738/0.319, allocations: 353.5 kB / 486.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.319, allocations: 0 / 486.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.319, allocations: 8 kB / 486.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.319, allocations: 8 kB / 486.5 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004054/0.3194, allocations: 151.8 kB / 486.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006972/0.3201, allocations: 485.3 kB / 487.1 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004672/0.3206, allocations: 209.1 kB / 487.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002552/0.3209, allocations: 117.6 kB / 487.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.3209, allocations: 8.062 kB / 487.4 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003141/0.3213, allocations: 127.3 kB / 487.5 MB, free: 11.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.693e-06/0.3213, allocations: 3.938 kB / 487.5 MB, free: 11.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007843/0.3221, allocations: 297.4 kB / 487.8 MB, free: 11.04 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.624e-05/0.3221, allocations: 89.11 kB / 487.9 MB, free: 10.94 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.3223, allocations: 150.3 kB / 488.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/0.3223, allocations: 37.58 kB / 488.1 MB, free: 10.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.742e-05/0.3224, allocations: 112.5 kB / 488.2 MB, free: 10.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.3224, allocations: 35.52 kB / 488.3 MB, free: 10.58 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.212e-05/0.3225, allocations: 8 kB / 488.3 MB, free: 10.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.3226, allocations: 334.8 kB / 488.6 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.3228, allocations: 68.19 kB / 488.7 MB, free: 10.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002389/0.3231, allocations: 148.4 kB / 488.8 MB, free: 9.992 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004189/0.3235, allocations: 247.8 kB / 489 MB, free: 9.707 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3235, allocations: 0 / 489 MB, free: 9.707 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005496/0.3241, allocations: 292.4 kB / 489.3 MB, free: 9.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.24e-05/0.3241, allocations: 37.69 kB / 489.4 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3241, allocations: 0 / 489.4 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.3241, allocations: 4 kB / 489.4 MB, free: 9.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/0.3243, allocations: 51.91 kB / 489.4 MB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.3244, allocations: 4 kB / 489.4 MB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000164/0.3245, allocations: 31.77 kB / 489.5 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.327e-05/0.3246, allocations: 20 kB / 489.5 MB, free: 9.258 MB / 362.7 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,rotationalClock.changed.u,$CLKPRE.rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition1,$PRE.trigger_interval_input.T_start,trigger_interval_input.T_start,$PRE.trigger_interval_input.count,trigger_interval_input.count,rotationalClock.less.y,$whenCondition2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000148/0.3247, allocations: 137.8 kB / 489.6 MB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001917/0.3249, allocations: 105.4 kB / 489.7 MB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.77e-05/0.325, allocations: 20.72 kB / 489.7 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.325, allocations: 4 kB / 489.7 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.325, allocations: 0 / 489.7 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.325, allocations: 3.938 kB / 489.7 MB, free: 8.973 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000758/0.3258, allocations: 0.5031 MB / 490.2 MB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3258, allocations: 0 / 490.2 MB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/0.326, allocations: 47.91 kB / 490.3 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.326, allocations: 0 / 490.3 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.326, allocations: 15.92 kB / 490.3 MB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.326, allocations: 0 / 490.3 MB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.3261, allocations: 4 kB / 490.3 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005733/0.3266, allocations: 338.1 kB / 490.6 MB, free: 8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.29e-05/0.3267, allocations: 96.86 kB / 490.7 MB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.557e-05/0.3267, allocations: 11.94 kB / 490.7 MB, free: 7.875 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/0.3269, allocations: 23.98 kB / 490.8 MB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.516e-05/0.327, allocations: 19.91 kB / 490.8 MB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.171e-05/0.327, allocations: 11.98 kB / 490.8 MB, free: 7.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.83e-05/0.3271, allocations: 109.3 kB / 490.9 MB, free: 7.715 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3271, allocations: 0 / 490.9 MB, free: 7.715 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002958/0.3274, allocations: 47.81 kB / 490.9 MB, free: 7.668 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001368/0.3276, allocations: 111.2 kB / 491.1 MB, free: 7.551 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005106/0.3281, allocations: 263.5 kB / 491.3 MB, free: 7.281 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3281, allocations: 4.188 kB / 491.3 MB, free: 7.277 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.3283, allocations: 67.95 kB / 491.4 MB, free: 7.211 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004247/0.3287, allocations: 63.08 kB / 491.4 MB, free: 7.152 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007203/0.3295, allocations: 375.2 kB / 491.8 MB, free: 6.758 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.3298, allocations: 0.7324 MB / 492.5 MB, free: 6 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.073e-05/0.3299, allocations: 17.55 kB / 492.6 MB, free: 5.977 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.279e-05/0.3299, allocations: 23.42 kB / 492.6 MB, free: 5.953 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3299, allocations: 0 / 492.6 MB, free: 5.953 MB / 362.7 MB Notification: Performance of Templates: time 0.00433/0.3343, allocations: 1.651 MB / 494.2 MB, free: 4.32 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed Variables in the result:angle_input.amplitude,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