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.001282/0.001282, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001879, allocations: 72.56 kB / 307 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1256, allocations: 50.54 MB / 357.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004062/0.1297, allocations: 1.988 MB / 359.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.1311, allocations: 0.6973 MB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.1312, allocations: 7.938 kB / 360.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.405e-05/0.1313, allocations: 15.8 kB / 360.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.1314, allocations: 31.72 kB / 360.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004645/0.1319, allocations: 115.7 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002678/0.1322, allocations: 208 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002521/0.1325, allocations: 96.3 kB / 360.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.1327, allocations: 91.69 kB / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.1328, allocations: 91.53 kB / 360.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.902e-05/0.1329, allocations: 23.94 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.331e-05/0.133, allocations: 28 kB / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.761e-05/0.133, allocations: 47.83 kB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.867e-05/0.1331, allocations: 83.53 kB / 361 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.1334, allocations: 211.6 kB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1334, allocations: 0 / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1334, allocations: 0 / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.1334, allocations: 0 / 361.2 MB, free: 10.3 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.001052/0.1345, allocations: 0.5338 MB / 361.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.1346, allocations: 12.03 kB / 361.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001932/0.1348, allocations: 28.66 kB / 361.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.135, allocations: 240.4 kB / 362.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.445e-05/0.1351, allocations: 38.59 kB / 362.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.181e-05/0.1352, allocations: 15.94 kB / 362.1 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007403/0.1359, allocations: 333.8 kB / 362.4 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.136, allocations: 0 / 362.4 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.858e-05/0.136, allocations: 8 kB / 362.4 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.136, allocations: 4 kB / 362.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004523/0.1365, allocations: 131.9 kB / 362.6 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007671/0.1372, allocations: 465.2 kB / 363 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005269/0.1378, allocations: 201.2 kB / 363.2 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002689/0.1381, allocations: 101.7 kB / 363.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.16e-05/0.1381, allocations: 8.062 kB / 363.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003917/0.1385, allocations: 127.4 kB / 363.5 MB, free: 7.883 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.004e-06/0.1385, allocations: 0 / 363.5 MB, free: 7.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008568/0.1394, allocations: 285.2 kB / 363.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.561e-05/0.1395, allocations: 85.11 kB / 363.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.1396, allocations: 159.8 kB / 364 MB, free: 7.328 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.011e-05/0.1397, allocations: 29.7 kB / 364 MB, free: 7.293 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.281e-05/0.1397, allocations: 112.5 kB / 364.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.756e-05/0.1398, allocations: 31.55 kB / 364.1 MB, free: 7.148 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.219e-05/0.1399, allocations: 53.69 kB / 364.2 MB, free: 7.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.14, allocations: 330.8 kB / 364.5 MB, free: 6.758 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.1402, allocations: 60.19 kB / 364.6 MB, free: 6.699 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002817/0.1405, allocations: 149.4 kB / 364.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004505/0.141, allocations: 235.7 kB / 365 MB, free: 6.246 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.141, allocations: 0 / 365 MB, free: 6.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005732/0.1416, allocations: 281.8 kB / 365.2 MB, free: 5.961 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.48e-05/0.1416, allocations: 37.7 kB / 365.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.1416, allocations: 0 / 365.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.1417, allocations: 4 kB / 365.3 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.1419, allocations: 43.91 kB / 365.3 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.1419, allocations: 7.938 kB / 365.3 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000177/0.1421, allocations: 36.09 kB / 365.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/0.1421, allocations: 15.94 kB / 365.4 MB, free: 5.812 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.0001534/0.1423, allocations: 137.8 kB / 365.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002009/0.1425, allocations: 101.5 kB / 365.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.571e-05/0.1426, allocations: 28.69 kB / 365.6 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.1426, allocations: 7.938 kB / 365.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.1426, allocations: 0 / 365.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.1426, allocations: 0 / 365.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008182/0.1434, allocations: 0.4903 MB / 366.1 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1434, allocations: 0 / 366.1 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/0.1436, allocations: 43.97 kB / 366.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1437, allocations: 0 / 366.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.1437, allocations: 7.984 kB / 366.2 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.1437, allocations: 3.938 kB / 366.2 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1437, allocations: 0 / 366.2 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005963/0.1443, allocations: 331.8 kB / 366.5 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.343e-05/0.1444, allocations: 96.86 kB / 366.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.623e-05/0.1444, allocations: 4 kB / 366.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.1446, allocations: 23.92 kB / 366.6 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.348e-05/0.1447, allocations: 19.97 kB / 366.7 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.1447, allocations: 4 kB / 366.7 MB, free: 4.418 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.623e-05/0.1448, allocations: 118.5 kB / 366.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1448, allocations: 0 / 366.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002896/0.1451, allocations: 32 kB / 366.8 MB, free: 4.273 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.0001409/0.1452, allocations: 111.2 kB / 366.9 MB, free: 4.152 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005968/0.1458, allocations: 260 kB / 367.2 MB, free: 3.887 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1459, allocations: 0 / 367.2 MB, free: 3.887 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001895/0.1461, allocations: 59.95 kB / 367.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004478/0.1465, allocations: 69.19 kB / 367.3 MB, free: 3.762 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006699/0.1472, allocations: 333.1 kB / 367.6 MB, free: 3.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/0.1475, allocations: 0.7283 MB / 368.3 MB, free: 2.652 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.71e-05/0.1476, allocations: 21.42 kB / 368.4 MB, free: 2.625 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.1e-05/0.1477, allocations: 23.44 kB / 368.4 MB, free: 2.602 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1477, allocations: 0 / 368.4 MB, free: 2.602 MB / 302.1 MB Notification: Performance of Templates: time 0.005846/0.1536, allocations: 1.928 MB / 370.3 MB, free: 0.6836 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.1.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