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.0009518/0.0009517, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 221.5 MB / 230.3 MB, free: 7.527 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008877/0.0008876, allocations: 91.61 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.472e-05/1.466e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0932/0.09323, allocations: 50.42 MB / 387.5 MB, free: 7.562 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3044/0.3977, allocations: 78.63 MB / 466.1 MB, free: 228 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001762/0.3979, allocations: 75.95 kB / 466.2 MB, free: 152 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00858/0.4065, allocations: 3.02 MB / 469.2 MB, free: 13.14 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4065, allocations: 0 / 469.2 MB, free: 13.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.4066, allocations: 4 kB / 469.2 MB, free: 13.13 MB / 346.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.000737/0.4073, allocations: 496.1 kB / 469.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.4074, allocations: 11.98 kB / 469.7 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.828e-05/0.4074, allocations: 27.67 kB / 469.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003099/0.4077, allocations: 227.7 kB / 469.9 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.538e-05/0.4078, allocations: 38.03 kB / 470 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.96e-05/0.4079, allocations: 12 kB / 470 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002305/0.4081, allocations: 96.64 kB / 470.1 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004869/0.4086, allocations: 280.3 kB / 470.4 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.4086, allocations: 3.953 kB / 470.4 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.4086, allocations: 0 / 470.4 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.4087, allocations: 4 kB / 470.4 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007275/0.4094, allocations: 450.2 kB / 470.8 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002356/0.4096, allocations: 157.2 kB / 471 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.4098, allocations: 74.73 kB / 471 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.4098, allocations: 4 kB / 471 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000176/0.41, allocations: 99.48 kB / 471.1 MB, free: 11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.694e-06/0.41, allocations: 0 / 471.1 MB, free: 11 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.000317/0.4103, allocations: 159.2 kB / 471.3 MB, free: 10.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.4105, allocations: 85.05 kB / 471.4 MB, free: 10.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.4106, allocations: 132.5 kB / 471.5 MB, free: 10.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/0.4106, allocations: 29.69 kB / 471.5 MB, free: 10.56 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.716e-05/0.4107, allocations: 120.4 kB / 471.6 MB, free: 10.44 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/0.4107, allocations: 35.61 kB / 471.7 MB, free: 10.4 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.063e-05/0.4108, allocations: 3.938 kB / 471.7 MB, free: 10.4 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.4109, allocations: 334.8 kB / 472 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.345e-05/0.411, allocations: 40.23 kB / 472 MB, free: 10.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/0.4111, allocations: 110.8 kB / 472.2 MB, free: 9.879 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001065/0.4112, allocations: 57.17 kB / 472.2 MB, free: 9.824 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4112, allocations: 0 / 472.2 MB, free: 9.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003228/0.4116, allocations: 185.3 kB / 472.4 MB, free: 9.637 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.711e-05/0.4116, allocations: 33.7 kB / 472.4 MB, free: 9.598 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/0.4116, allocations: 4 kB / 472.4 MB, free: 9.594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.4116, allocations: 4 kB / 472.4 MB, free: 9.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002214/0.4119, allocations: 48.25 kB / 472.5 MB, free: 9.543 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.4119, allocations: 11.98 kB / 472.5 MB, free: 9.531 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/0.4121, allocations: 31.83 kB / 472.5 MB, free: 9.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.4121, allocations: 8 kB / 472.5 MB, free: 9.492 MB / 346.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 () * 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.0001099/0.4122, allocations: 116.6 kB / 472.6 MB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/0.4124, allocations: 101.4 kB / 472.7 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.974e-05/0.4124, allocations: 16.62 kB / 472.8 MB, free: 9.246 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.4124, allocations: 4 kB / 472.8 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.4125, allocations: 7.938 kB / 472.8 MB, free: 9.234 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.4125, allocations: 3.984 kB / 472.8 MB, free: 9.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000463/0.4129, allocations: 419 kB / 473.2 MB, free: 8.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.413, allocations: 0 / 473.2 MB, free: 8.777 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001977/0.4132, allocations: 43.91 kB / 473.2 MB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.4132, allocations: 4 kB / 473.2 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.796e-05/0.4132, allocations: 7.984 kB / 473.2 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.4132, allocations: 0 / 473.2 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.4132, allocations: 0 / 473.2 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002871/0.4135, allocations: 277.8 kB / 473.5 MB, free: 8.426 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.785e-05/0.4136, allocations: 92.92 kB / 473.6 MB, free: 8.316 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.99e-05/0.4136, allocations: 0 / 473.6 MB, free: 8.316 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/0.4138, allocations: 19.98 kB / 473.6 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.928e-05/0.4139, allocations: 23.91 kB / 473.6 MB, free: 8.273 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.4139, allocations: 7.984 kB / 473.7 MB, free: 8.266 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.341e-05/0.414, allocations: 103.8 kB / 473.8 MB, free: 8.164 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.414, allocations: 4 kB / 473.8 MB, free: 8.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002993/0.4143, allocations: 39.83 kB / 473.8 MB, free: 8.121 MB / 346.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) * 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.0001686/0.4145, allocations: 107.2 kB / 473.9 MB, free: 8.008 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002737/0.4147, allocations: 187.2 kB / 474.1 MB, free: 7.812 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4148, allocations: 0 / 474.1 MB, free: 7.812 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.473e-05/0.4148, allocations: 47.92 kB / 474.1 MB, free: 7.766 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.4152, allocations: 67.75 kB / 474.2 MB, free: 7.699 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000452/0.4156, allocations: 213.3 kB / 474.4 MB, free: 7.469 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.4159, allocations: 0.7282 MB / 475.1 MB, free: 6.711 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.075e-05/0.416, allocations: 17.33 kB / 475.2 MB, free: 6.688 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.749e-05/0.416, allocations: 27.42 kB / 475.2 MB, free: 6.664 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4161, allocations: 0 / 475.2 MB, free: 6.664 MB / 346.7 MB Notification: Performance of Templates: time 0.004543/0.4206, allocations: 1.565 MB / 476.7 MB, free: 5.117 MB / 346.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