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.0008229/0.0008227, allocations: 94.77 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.0008896/0.0008898, allocations: 202.5 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.466/1.466, allocations: 227.8 MB / 246.9 MB, free: 11.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003485/0.0003484, allocations: 4 kB / 307.8 MB, free: 0.7773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1388, allocations: 51.53 MB / 359.3 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002638/0.1415, allocations: 1.684 MB / 361 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.1429, allocations: 0.674 MB / 361.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.1431, allocations: 4 kB / 361.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.502e-05/0.1432, allocations: 15.86 kB / 361.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.1433, allocations: 11.88 kB / 361.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004726/0.1438, allocations: 103.8 kB / 361.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002678/0.1441, allocations: 196 kB / 362 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002021/0.1443, allocations: 95.86 kB / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001955/0.1445, allocations: 63.7 kB / 362.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.1446, allocations: 75.61 kB / 362.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.1447, allocations: 4 kB / 362.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.38e-05/0.1447, allocations: 11.94 kB / 362.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.812e-05/0.1448, allocations: 27.91 kB / 362.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.988e-05/0.1449, allocations: 93.23 kB / 362.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002386/0.1451, allocations: 195.5 kB / 362.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1451, allocations: 0 / 362.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1451, allocations: 0 / 362.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.1452, allocations: 4 kB / 362.6 MB, free: 9.977 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.0008495/0.146, allocations: 0.5026 MB / 363.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.1461, allocations: 8.031 kB / 363.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001691/0.1462, allocations: 32.73 kB / 363.1 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/0.1465, allocations: 236.5 kB / 363.3 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.678e-05/0.1466, allocations: 50.53 kB / 363.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.292e-05/0.1467, allocations: 23.88 kB / 363.4 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007471/0.1474, allocations: 329.5 kB / 363.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.1474, allocations: 0 / 363.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.1475, allocations: 8 kB / 363.7 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.1475, allocations: 4 kB / 363.7 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004547/0.148, allocations: 147.8 kB / 363.9 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007275/0.1487, allocations: 469.3 kB / 364.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005401/0.1492, allocations: 213.1 kB / 364.6 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002722/0.1495, allocations: 113.7 kB / 364.7 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.1496, allocations: 0 / 364.7 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003592/0.1499, allocations: 135.5 kB / 364.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.1499, allocations: 0 / 364.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008963/0.1508, allocations: 309.2 kB / 365.1 MB, free: 7.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.93e-05/0.151, allocations: 93.03 kB / 365.2 MB, free: 7.113 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.1511, allocations: 155.1 kB / 365.3 MB, free: 6.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.902e-05/0.1512, allocations: 33.7 kB / 365.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.461e-05/0.1513, allocations: 112.5 kB / 365.5 MB, free: 6.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.025e-05/0.1513, allocations: 43.53 kB / 365.5 MB, free: 6.758 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.736e-05/0.1514, allocations: 25.72 kB / 365.6 MB, free: 6.727 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1516, allocations: 334.8 kB / 365.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.1518, allocations: 68.19 kB / 365.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000271/0.1521, allocations: 151.8 kB / 366.1 MB, free: 6.141 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004843/0.1525, allocations: 254.1 kB / 366.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1526, allocations: 0 / 366.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006145/0.1532, allocations: 295.1 kB / 366.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.231e-05/0.1532, allocations: 29.7 kB / 366.7 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.1532, allocations: 4 kB / 366.7 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.1533, allocations: 4 kB / 366.7 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.1535, allocations: 51.91 kB / 366.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.1535, allocations: 4 kB / 366.7 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001783/0.1537, allocations: 39.84 kB / 366.8 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.384e-05/0.1537, allocations: 11.94 kB / 366.8 MB, free: 5.402 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.0001637/0.1539, allocations: 141.8 kB / 366.9 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001931/0.1541, allocations: 101.4 kB / 367 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.518e-05/0.1542, allocations: 24.7 kB / 367 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001194/0.1543, allocations: 8 kB / 367 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.1543, allocations: 7.875 kB / 367.1 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.1543, allocations: 0 / 367.1 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008992/0.1552, allocations: 0.5099 MB / 367.6 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1552, allocations: 0 / 367.6 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000196/0.1554, allocations: 43.91 kB / 367.6 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.1555, allocations: 0 / 367.6 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.1555, allocations: 7.984 kB / 367.6 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.1555, allocations: 7.938 kB / 367.6 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1555, allocations: 0 / 367.6 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006276/0.1561, allocations: 335.9 kB / 367.9 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.59e-05/0.1562, allocations: 104.8 kB / 368 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/0.1562, allocations: 8 kB / 368.1 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.1564, allocations: 27.92 kB / 368.1 MB, free: 3.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.229e-05/0.1565, allocations: 11.97 kB / 368.1 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.258e-05/0.1565, allocations: 12 kB / 368.1 MB, free: 3.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.575e-05/0.1566, allocations: 107.2 kB / 368.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1566, allocations: 0 / 368.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003067/0.157, allocations: 40 kB / 368.3 MB, free: 3.812 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.0001654/0.1571, allocations: 107.2 kB / 368.4 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006233/0.1578, allocations: 266.8 kB / 368.6 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.1578, allocations: 4 kB / 368.6 MB, free: 3.426 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002019/0.158, allocations: 64.64 kB / 368.7 MB, free: 3.363 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004693/0.1585, allocations: 79.23 kB / 368.8 MB, free: 3.289 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007721/0.1592, allocations: 391.2 kB / 369.1 MB, free: 2.879 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004687/0.1597, allocations: 0.7247 MB / 369.9 MB, free: 2.129 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.346e-05/0.1598, allocations: 17.55 kB / 369.9 MB, free: 2.109 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.193e-05/0.1599, allocations: 15.44 kB / 369.9 MB, free: 2.094 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1599, allocations: 4 kB / 369.9 MB, free: 2.09 MB / 302.1 MB Notification: Performance of Templates: time 0.005921/0.1658, allocations: 1.707 MB / 371.6 MB, free: 404 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.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