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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0008641/0.0008642, allocations: 98.62 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009947/0.0009948, allocations: 192 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.7 MB / 246.4 MB, free: 9.723 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002526/0.0002527, allocations: 4 kB / 307.1 MB, free: 0.9336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1307, allocations: 51.52 MB / 358.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002548/0.1333, allocations: 1.649 MB / 360.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.1347, allocations: 0.6588 MB / 360.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.1349, allocations: 7.938 kB / 360.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.034e-05/0.1349, allocations: 11.86 kB / 361 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001451/0.1351, allocations: 11.86 kB / 361 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005092/0.1356, allocations: 95.84 kB / 361.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002376/0.1358, allocations: 172 kB / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.1361, allocations: 75.03 kB / 361.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002589/0.1363, allocations: 63.69 kB / 361.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.1365, allocations: 67.67 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.305e-05/0.1365, allocations: 8 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.607e-05/0.1366, allocations: 8 kB / 361.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.835e-05/0.1366, allocations: 27.86 kB / 361.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.655e-05/0.1367, allocations: 45.64 kB / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002012/0.1369, allocations: 159.9 kB / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1369, allocations: 0 / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1369, allocations: 0 / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1369, allocations: 0 / 361.7 MB, free: 10.34 MB / 302.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.0008432/0.1378, allocations: 0.5063 MB / 362.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.1378, allocations: 8.031 kB / 362.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001905/0.138, allocations: 27.81 kB / 362.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002905/0.1383, allocations: 236 kB / 362.4 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.473e-05/0.1384, allocations: 38.03 kB / 362.5 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.322e-05/0.1385, allocations: 16 kB / 362.5 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008203/0.1393, allocations: 347.2 kB / 362.8 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.1393, allocations: 0 / 362.8 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.574e-05/0.1394, allocations: 11.94 kB / 362.9 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.1394, allocations: 7.984 kB / 362.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005427/0.1399, allocations: 142.7 kB / 363 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008058/0.1407, allocations: 466.1 kB / 363.5 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005136/0.1413, allocations: 213.1 kB / 363.7 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002564/0.1415, allocations: 117.6 kB / 363.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.379e-05/0.1416, allocations: 4 kB / 363.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003715/0.142, allocations: 127.3 kB / 363.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.695e-06/0.142, allocations: 0 / 363.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008823/0.1429, allocations: 309.3 kB / 364.2 MB, free: 7.594 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/0.143, allocations: 93.05 kB / 364.3 MB, free: 7.484 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.1432, allocations: 149.9 kB / 364.4 MB, free: 7.328 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.387e-05/0.1432, allocations: 33.7 kB / 364.5 MB, free: 7.289 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.894e-05/0.1433, allocations: 112.4 kB / 364.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.461e-05/0.1434, allocations: 43.61 kB / 364.6 MB, free: 7.129 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.878e-06/0.1434, allocations: 0 / 364.6 MB, free: 7.129 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.1436, allocations: 330.8 kB / 365 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003139/0.1439, allocations: 72.17 kB / 365 MB, free: 6.727 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004243/0.1443, allocations: 147.8 kB / 365.2 MB, free: 6.547 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003808/0.1447, allocations: 109.6 kB / 365.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.1448, allocations: 0 / 365.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0009555/0.1457, allocations: 301.8 kB / 365.6 MB, free: 6.129 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.812e-05/0.1458, allocations: 33.7 kB / 365.6 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.1459, allocations: 0 / 365.6 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.148e-05/0.1459, allocations: 4 kB / 365.6 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003086/0.1462, allocations: 51.86 kB / 365.7 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.1463, allocations: 4 kB / 365.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002895/0.1466, allocations: 47.75 kB / 365.7 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.579e-05/0.1466, allocations: 12 kB / 365.7 MB, free: 5.973 MB / 302.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,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.0002783/0.1469, allocations: 133.8 kB / 365.9 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003711/0.1473, allocations: 101.5 kB / 366 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000165/0.1475, allocations: 24.7 kB / 366 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/0.1475, allocations: 4 kB / 366 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.346e-05/0.1475, allocations: 3.953 kB / 366 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/0.1476, allocations: 7.922 kB / 366 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/0.1489, allocations: 0.4992 MB / 366.5 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.1489, allocations: 4 kB / 366.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002983/0.1492, allocations: 47.91 kB / 366.5 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.718e-06/0.1493, allocations: 0 / 366.5 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.68e-05/0.1493, allocations: 11.94 kB / 366.6 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.837e-06/0.1493, allocations: 4 kB / 366.6 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.1493, allocations: 0 / 366.6 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.1504, allocations: 336 kB / 366.9 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.1505, allocations: 96.86 kB / 367 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.387e-05/0.1506, allocations: 7.938 kB / 367 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002863/0.1509, allocations: 27.94 kB / 367 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.1511, allocations: 19.97 kB / 367 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.504e-05/0.1511, allocations: 7.984 kB / 367 MB, free: 4.543 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001482/0.1513, allocations: 114.5 kB / 367.2 MB, free: 4.434 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1513, allocations: 0 / 367.2 MB, free: 4.434 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006237/0.1519, allocations: 35.94 kB / 367.2 MB, free: 4.398 MB / 302.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 (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.0003378/0.1523, allocations: 107.2 kB / 367.3 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0017/0.154, allocations: 263.5 kB / 367.5 MB, free: 4.012 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.154, allocations: 0 / 367.5 MB, free: 4.012 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004089/0.1545, allocations: 75.89 kB / 367.6 MB, free: 3.938 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.1555, allocations: 62.53 kB / 367.7 MB, free: 3.879 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/0.157, allocations: 375.4 kB / 368.1 MB, free: 3.484 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005045/0.1575, allocations: 0.7247 MB / 368.8 MB, free: 2.734 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001341/0.1577, allocations: 17.55 kB / 368.8 MB, free: 2.715 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.239e-05/0.1578, allocations: 27.36 kB / 368.8 MB, free: 2.688 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1578, allocations: 4 kB / 368.8 MB, free: 2.684 MB / 302.1 MB Notification: Performance of Templates: time 0.007408/0.1652, allocations: 1.621 MB / 370.4 MB, free: 1.078 MB / 302.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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.continuous,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