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.000829/0.000829, allocations: 95.34 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009377/0.0009378, allocations: 202 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 227.7 MB / 246.8 MB, free: 11.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003742/0.0003744, allocations: 11.98 kB / 307.7 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1189, allocations: 51.52 MB / 359.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002377/0.1213, allocations: 1.684 MB / 361 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.1228, allocations: 0.674 MB / 361.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001969/0.123, allocations: 4 kB / 361.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.462e-05/0.123, allocations: 11.86 kB / 361.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001461/0.1232, allocations: 19.84 kB / 361.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005779/0.1238, allocations: 103.8 kB / 361.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003572/0.1242, allocations: 188 kB / 361.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000282/0.1244, allocations: 96.28 kB / 362 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003534/0.1248, allocations: 71.69 kB / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002175/0.125, allocations: 67.62 kB / 362.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.074e-05/0.1251, allocations: 4 kB / 362.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.614e-05/0.1252, allocations: 15.92 kB / 362.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.785e-05/0.1252, allocations: 27.92 kB / 362.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.1254, allocations: 89.23 kB / 362.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003176/0.1257, allocations: 199.5 kB / 362.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.1257, allocations: 4 kB / 362.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1257, allocations: 0 / 362.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.1258, allocations: 0 / 362.5 MB, free: 10.04 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.0009882/0.1267, allocations: 0.5026 MB / 363 MB, free: 9.473 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.1268, allocations: 8.031 kB / 363 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002217/0.127, allocations: 32.73 kB / 363.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003263/0.1274, allocations: 238.5 kB / 363.3 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.596e-05/0.1274, allocations: 46.52 kB / 363.3 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.675e-05/0.1275, allocations: 19.94 kB / 363.4 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007579/0.1283, allocations: 334.9 kB / 363.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.1283, allocations: 0 / 363.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.772e-05/0.1283, allocations: 11.98 kB / 363.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.1283, allocations: 4 kB / 363.7 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004806/0.1288, allocations: 147.8 kB / 363.8 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007533/0.1296, allocations: 465.3 kB / 364.3 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005344/0.1301, allocations: 217.1 kB / 364.5 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002732/0.1304, allocations: 109.7 kB / 364.6 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.1305, allocations: 8 kB / 364.6 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003472/0.1308, allocations: 131.3 kB / 364.7 MB, free: 7.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.394e-06/0.1308, allocations: 0 / 364.7 MB, free: 7.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009165/0.1317, allocations: 310.2 kB / 365 MB, free: 7.281 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.941e-05/0.1318, allocations: 93.05 kB / 365.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001584/0.132, allocations: 155.1 kB / 365.3 MB, free: 7.012 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.132, allocations: 29.7 kB / 365.3 MB, free: 6.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.505e-05/0.1321, allocations: 112.5 kB / 365.4 MB, free: 6.863 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.871e-05/0.1322, allocations: 35.55 kB / 365.5 MB, free: 6.828 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.507e-05/0.1322, allocations: 29.7 kB / 365.5 MB, free: 6.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1324, allocations: 330.8 kB / 365.8 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/0.1326, allocations: 72.19 kB / 365.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002649/0.1329, allocations: 147.8 kB / 366 MB, free: 6.211 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005262/0.1334, allocations: 258.2 kB / 366.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.72e-06/0.1334, allocations: 0 / 366.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006725/0.1341, allocations: 295.1 kB / 366.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.858e-05/0.1342, allocations: 33.7 kB / 366.6 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.1342, allocations: 4 kB / 366.6 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.1342, allocations: 4 kB / 366.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002103/0.1344, allocations: 43.91 kB / 366.7 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.814e-05/0.1344, allocations: 7.984 kB / 366.7 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001972/0.1346, allocations: 39.83 kB / 366.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.397e-05/0.1347, allocations: 11.94 kB / 366.7 MB, free: 5.469 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,$CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition2,rotationalClock.less.y,trigger_interval_input.count,$PRE.trigger_interval_input.count,trigger_interval_input.T_start,$PRE.trigger_interval_input.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001573/0.1348, allocations: 137.8 kB / 366.8 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/0.135, allocations: 109.5 kB / 367 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.767e-05/0.1351, allocations: 24.7 kB / 367 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.1351, allocations: 3.938 kB / 367 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.1351, allocations: 3.938 kB / 367 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1352, allocations: 4 kB / 367 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000823/0.136, allocations: 0.506 MB / 367.5 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.136, allocations: 0 / 367.5 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002025/0.1362, allocations: 51.91 kB / 367.5 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.1362, allocations: 4 kB / 367.6 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.1362, allocations: 3.984 kB / 367.6 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-06/0.1363, allocations: 3.938 kB / 367.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.1363, allocations: 4 kB / 367.6 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006174/0.1369, allocations: 336 kB / 367.9 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.853e-05/0.137, allocations: 100.8 kB / 368 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.458e-05/0.137, allocations: 7.938 kB / 368 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001987/0.1372, allocations: 31.91 kB / 368 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.827e-05/0.1373, allocations: 15.98 kB / 368 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.996e-05/0.1373, allocations: 7.984 kB / 368.1 MB, free: 4.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.659e-05/0.1374, allocations: 111.3 kB / 368.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1374, allocations: 0 / 368.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003173/0.1377, allocations: 32 kB / 368.2 MB, free: 3.879 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001317/0.1379, allocations: 115.2 kB / 368.3 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006299/0.1385, allocations: 262.8 kB / 368.6 MB, free: 3.488 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1385, allocations: 0 / 368.6 MB, free: 3.488 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.1387, allocations: 71.95 kB / 368.6 MB, free: 3.418 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.1392, allocations: 62.36 kB / 368.7 MB, free: 3.359 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009208/0.1402, allocations: 391.3 kB / 369.1 MB, free: 2.949 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004399/0.1406, allocations: 0.7286 MB / 369.8 MB, free: 2.195 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.984e-05/0.1407, allocations: 17.55 kB / 369.8 MB, free: 2.176 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.316e-05/0.1408, allocations: 23.42 kB / 369.8 MB, free: 2.152 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1408, allocations: 3.938 kB / 369.8 MB, free: 2.148 MB / 302.1 MB Notification: Performance of Templates: time 0.006067/0.1469, allocations: 1.71 MB / 371.6 MB, free: 464 kB / 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