Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001058/0.001058, allocations: 199.3 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 226.5 MB / 245.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008867/0.0008865, allocations: 102 kB / 297.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003175/0.0003177, allocations: 8 kB / 358.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2747, allocations: 51.28 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1067/0.3814, allocations: 80.13 MB / 489.5 MB, free: 11.4 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/0.3817, allocations: 75.95 kB / 489.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009374/0.3911, allocations: 3.149 MB / 492.7 MB, free: 8.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3911, allocations: 0 / 492.7 MB, free: 8.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.38e-05/0.3912, allocations: 4 kB / 492.7 MB, free: 8.176 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.000903/0.3921, allocations: 0.5155 MB / 493.2 MB, free: 7.594 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.3921, allocations: 8.031 kB / 493.2 MB, free: 7.586 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002212/0.3924, allocations: 36.64 kB / 493.3 MB, free: 7.551 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/0.3927, allocations: 232.4 kB / 493.5 MB, free: 7.289 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.77e-05/0.3928, allocations: 42.59 kB / 493.6 MB, free: 7.242 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.642e-05/0.3929, allocations: 12.38 kB / 493.6 MB, free: 7.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008359/0.3937, allocations: 346.9 kB / 493.9 MB, free: 6.875 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.3937, allocations: 0 / 493.9 MB, free: 6.875 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.465e-05/0.3938, allocations: 4 kB / 493.9 MB, free: 6.871 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.3938, allocations: 4 kB / 493.9 MB, free: 6.867 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004951/0.3943, allocations: 151.9 kB / 494.1 MB, free: 6.719 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009026/0.3952, allocations: 489.2 kB / 494.5 MB, free: 6.188 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005648/0.3958, allocations: 209.2 kB / 494.7 MB, free: 5.965 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002954/0.3961, allocations: 109.8 kB / 494.8 MB, free: 5.852 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.004e-05/0.3961, allocations: 8 kB / 494.9 MB, free: 5.844 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003629/0.3965, allocations: 123.3 kB / 495 MB, free: 5.711 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.974e-06/0.3965, allocations: 0 / 495 MB, free: 5.711 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.000939/0.3975, allocations: 307.7 kB / 495.3 MB, free: 5.406 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.352e-05/0.3976, allocations: 89.11 kB / 495.4 MB, free: 5.301 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001551/0.3977, allocations: 150.3 kB / 495.5 MB, free: 5.137 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.824e-05/0.3978, allocations: 33.7 kB / 495.5 MB, free: 5.098 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.591e-05/0.3979, allocations: 112.6 kB / 495.7 MB, free: 4.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.73e-05/0.3979, allocations: 43.45 kB / 495.7 MB, free: 4.938 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.294e-05/0.3979, allocations: 4 kB / 495.7 MB, free: 4.934 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3981, allocations: 338.7 kB / 496 MB, free: 4.594 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000239/0.3983, allocations: 76.12 kB / 496.1 MB, free: 4.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002701/0.3986, allocations: 150.7 kB / 496.3 MB, free: 4.336 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000515/0.3991, allocations: 236.8 kB / 496.5 MB, free: 4.062 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.3992, allocations: 3.938 kB / 496.5 MB, free: 4.059 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006548/0.3998, allocations: 290 kB / 496.8 MB, free: 3.766 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.283e-05/0.3999, allocations: 37.69 kB / 496.8 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.3999, allocations: 4 kB / 496.8 MB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.3999, allocations: 4.344 kB / 496.8 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002284/0.4002, allocations: 51.91 kB / 496.9 MB, free: 3.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.4002, allocations: 4 kB / 496.9 MB, free: 3.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002033/0.4004, allocations: 35.77 kB / 496.9 MB, free: 3.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.565e-05/0.4004, allocations: 12 kB / 496.9 MB, free: 3.613 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.0001538/0.4006, allocations: 149.4 kB / 497.1 MB, free: 3.457 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002168/0.4008, allocations: 105.5 kB / 497.2 MB, free: 3.348 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.45e-05/0.4009, allocations: 20.72 kB / 497.2 MB, free: 3.324 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.4009, allocations: 4 kB / 497.2 MB, free: 3.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.4009, allocations: 0 / 497.2 MB, free: 3.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.4009, allocations: 3.938 kB / 497.2 MB, free: 3.316 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008637/0.4018, allocations: 0.5081 MB / 497.7 MB, free: 2.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.4018, allocations: 0 / 497.7 MB, free: 2.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002226/0.402, allocations: 39.91 kB / 497.7 MB, free: 2.715 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.4021, allocations: 4 kB / 497.7 MB, free: 2.711 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.4021, allocations: 11.92 kB / 497.8 MB, free: 2.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.4021, allocations: 11.98 kB / 497.8 MB, free: 2.688 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.4021, allocations: 0 / 497.8 MB, free: 2.688 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006727/0.4028, allocations: 337.4 kB / 498.1 MB, free: 2.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.984e-05/0.4029, allocations: 92.86 kB / 498.2 MB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.026e-05/0.4029, allocations: 11.88 kB / 498.2 MB, free: 2.219 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003239/0.4033, allocations: 19.98 kB / 498.2 MB, free: 2.199 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.467e-05/0.4033, allocations: 19.97 kB / 498.2 MB, free: 2.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.4034, allocations: 11.98 kB / 498.3 MB, free: 2.168 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.479e-05/0.4035, allocations: 109.9 kB / 498.4 MB, free: 2.062 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4035, allocations: 0 / 498.4 MB, free: 2.062 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003057/0.4038, allocations: 44 kB / 498.4 MB, free: 2.02 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.0001749/0.404, allocations: 119.1 kB / 498.5 MB, free: 1.895 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005499/0.4045, allocations: 251.2 kB / 498.8 MB, free: 1.637 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.4045, allocations: 4 kB / 498.8 MB, free: 1.633 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001898/0.4047, allocations: 72.58 kB / 498.8 MB, free: 1.562 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.4052, allocations: 67.88 kB / 498.9 MB, free: 1.496 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007122/0.4059, allocations: 377.1 kB / 499.3 MB, free: 1.102 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003687/0.4063, allocations: 0.7324 MB / 0.4883 GB, free: 352 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.265e-05/0.4064, allocations: 13.55 kB / 0.4883 GB, free: 336 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.106e-05/0.4064, allocations: 19.42 kB / 0.4883 GB, free: 316 kB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4064, allocations: 0 / 0.4883 GB, free: 316 kB / 362.7 MB Notification: Performance of Templates: time 0.004259/0.4107, allocations: 1.651 MB / 0.4899 GB, free: 14.67 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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