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.001353/0.001353, allocations: 179.3 kB / 16.38 MB, free: 5.766 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.258/1.258, allocations: 223.2 MB / 240.3 MB, free: 10.14 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.000884/0.0008841, allocations: 94.25 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003147/0.0003147, allocations: 11.94 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2487, allocations: 50.41 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09065/0.3394, allocations: 79.37 MB / 480.9 MB, free: 1.082 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.3397, allocations: 79.95 kB / 480.9 MB, free: 1.004 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008382/0.3481, allocations: 3.044 MB / 484 MB, free: 13.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.527e-06/0.3481, allocations: 0 / 484 MB, free: 13.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.593e-05/0.3481, allocations: 7.938 kB / 484 MB, free: 13.95 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.0007112/0.3489, allocations: 0.5076 MB / 484.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.3489, allocations: 8.031 kB / 484.5 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.508e-05/0.349, allocations: 27.67 kB / 484.5 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002782/0.3493, allocations: 235.6 kB / 484.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.435e-05/0.3493, allocations: 38.03 kB / 484.8 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.25e-05/0.3494, allocations: 12 kB / 484.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006862/0.3501, allocations: 338.2 kB / 485.1 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.3501, allocations: 0 / 485.1 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.3501, allocations: 19.89 kB / 485.2 MB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.3501, allocations: 4 kB / 485.2 MB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004126/0.3506, allocations: 144.5 kB / 485.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007212/0.3513, allocations: 486.1 kB / 485.8 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004711/0.3518, allocations: 217.1 kB / 486 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.3518, allocations: 8.062 kB / 486 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000334/0.3521, allocations: 119.5 kB / 486.1 MB, free: 11.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.773e-06/0.3522, allocations: 4 kB / 486.1 MB, free: 11.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007853/0.353, allocations: 305.5 kB / 486.4 MB, free: 11.3 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.353, allocations: 89.11 kB / 486.5 MB, free: 11.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.3531, allocations: 139.7 kB / 486.6 MB, free: 11.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.3532, allocations: 29.7 kB / 486.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.763e-05/0.3533, allocations: 116.4 kB / 486.8 MB, free: 10.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.289e-05/0.3533, allocations: 31.61 kB / 486.8 MB, free: 10.87 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.12e-05/0.3533, allocations: 7.938 kB / 486.8 MB, free: 10.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.3534, allocations: 334.8 kB / 487.2 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001932/0.3536, allocations: 68.19 kB / 487.2 MB, free: 10.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/0.3538, allocations: 148.4 kB / 487.4 MB, free: 10.28 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002096/0.3541, allocations: 113.3 kB / 487.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3541, allocations: 0 / 487.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005292/0.3546, allocations: 291.1 kB / 487.8 MB, free: 9.867 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.841e-05/0.3547, allocations: 45.69 kB / 487.8 MB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.3547, allocations: 7.938 kB / 487.8 MB, free: 9.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3547, allocations: 4 kB / 487.8 MB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002082/0.3549, allocations: 43.91 kB / 487.9 MB, free: 9.762 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.3549, allocations: 4 kB / 487.9 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/0.3551, allocations: 35.83 kB / 487.9 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.3551, allocations: 12 kB / 487.9 MB, free: 9.711 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.0001314/0.3553, allocations: 149.5 kB / 488.1 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.3554, allocations: 106.3 kB / 488.2 MB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.845e-05/0.3555, allocations: 20.72 kB / 488.2 MB, free: 9.422 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.3555, allocations: 4 kB / 488.2 MB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.3555, allocations: 0 / 488.2 MB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3556, allocations: 0 / 488.2 MB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007085/0.3563, allocations: 0.4984 MB / 488.7 MB, free: 8.863 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.3563, allocations: 7.875 kB / 488.7 MB, free: 8.855 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.3565, allocations: 43.97 kB / 488.7 MB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3565, allocations: 0 / 488.7 MB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.3565, allocations: 7.984 kB / 488.7 MB, free: 8.805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.3565, allocations: 4 kB / 488.7 MB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.3565, allocations: 0 / 488.7 MB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005627/0.3571, allocations: 359.5 kB / 489.1 MB, free: 8.426 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.998e-05/0.3572, allocations: 92.86 kB / 489.2 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.168e-05/0.3572, allocations: 8 kB / 489.2 MB, free: 8.309 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.3574, allocations: 27.98 kB / 489.2 MB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.939e-05/0.3575, allocations: 23.92 kB / 489.2 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.3575, allocations: 7.984 kB / 489.3 MB, free: 8.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.578e-05/0.3576, allocations: 109.9 kB / 489.4 MB, free: 8.145 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3576, allocations: 4 kB / 489.4 MB, free: 8.141 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002908/0.3579, allocations: 35.94 kB / 489.4 MB, free: 8.105 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.0001451/0.358, allocations: 115.7 kB / 489.5 MB, free: 7.984 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000515/0.3585, allocations: 255.5 kB / 489.8 MB, free: 7.723 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3586, allocations: 8.25 kB / 489.8 MB, free: 7.715 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001982/0.3588, allocations: 67.89 kB / 489.8 MB, free: 7.648 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.3591, allocations: 58.94 kB / 489.9 MB, free: 7.594 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006646/0.3598, allocations: 371.2 kB / 490.3 MB, free: 7.199 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.36, allocations: 0.7364 MB / 491 MB, free: 6.438 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.052e-05/0.3601, allocations: 17.55 kB / 491 MB, free: 6.414 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.505e-05/0.3602, allocations: 19.44 kB / 491 MB, free: 6.395 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3602, allocations: 0 / 491 MB, free: 6.395 MB / 362.7 MB Notification: Performance of Templates: time 0.004046/0.3643, allocations: 1.636 MB / 492.7 MB, free: 4.773 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/jenkins/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