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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001469/0.001469, allocations: 77.31 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001622/0.001622, allocations: 162.5 kB / 24.5 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 177.1 MB / 204.7 MB, free: 8.961 MB / 190.1 MB " [Timeout remaining time 178] 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=5095,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=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 57.58 kB / 325.5 MB, free: 200 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1403, allocations: 53.38 MB / 378.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003847/0.1442, allocations: 1.97 MB / 380.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.1456, allocations: 0.6661 MB / 381.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.1457, allocations: 4 kB / 381.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.977e-05/0.1458, allocations: 19.73 kB / 381.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001258/0.1459, allocations: 23.73 kB / 381.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005603/0.1465, allocations: 123.8 kB / 381.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.1468, allocations: 208 kB / 381.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002287/0.147, allocations: 68.81 kB / 382 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000248/0.1473, allocations: 99.62 kB / 382.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/0.1474, allocations: 79.61 kB / 382.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.493e-05/0.1475, allocations: 20 kB / 382.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.27e-05/0.1475, allocations: 20 kB / 382.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.081e-05/0.1476, allocations: 47.84 kB / 382.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.1477, allocations: 75.64 kB / 382.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004069/0.1481, allocations: 223.1 kB / 382.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1481, allocations: 0 / 382.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1481, allocations: 4 kB / 382.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1481, allocations: 0 / 382.5 MB, free: 11.84 MB / 350.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.0009603/0.1491, allocations: 469.2 kB / 383 MB, free: 11.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.1491, allocations: 8.031 kB / 383 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.1493, allocations: 32.78 kB / 383 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003501/0.1497, allocations: 174.8 kB / 383.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.623e-05/0.1498, allocations: 72.28 kB / 383.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.13e-05/0.1498, allocations: 19.94 kB / 383.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007515/0.1505, allocations: 355.5 kB / 383.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.1506, allocations: 4 kB / 383.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.1506, allocations: 7.938 kB / 383.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.1506, allocations: 8 kB / 383.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004243/0.151, allocations: 131.8 kB / 383.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006926/0.1517, allocations: 365 kB / 384.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005261/0.1522, allocations: 193.1 kB / 384.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002497/0.1525, allocations: 97.67 kB / 384.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.1525, allocations: 7.984 kB / 384.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003344/0.1528, allocations: 137 kB / 384.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.944e-06/0.1528, allocations: 0 / 384.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008679/0.1537, allocations: 285.5 kB / 384.8 MB, free: 9.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.577e-05/0.1538, allocations: 97.05 kB / 384.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.154, allocations: 152.5 kB / 385.1 MB, free: 9.062 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.122e-05/0.154, allocations: 33.7 kB / 385.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.1541, allocations: 112.5 kB / 385.2 MB, free: 8.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.187e-05/0.1541, allocations: 39.81 kB / 385.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.767e-05/0.1542, allocations: 45.69 kB / 385.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.1544, allocations: 330.8 kB / 385.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.1546, allocations: 89.89 kB / 385.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.1549, allocations: 168.4 kB / 385.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004653/0.1554, allocations: 243.8 kB / 386.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.1554, allocations: 4 kB / 386.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000591/0.156, allocations: 297 kB / 386.4 MB, free: 7.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.753e-05/0.156, allocations: 41.69 kB / 386.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.156, allocations: 4 kB / 386.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.156, allocations: 4 kB / 386.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002046/0.1562, allocations: 43.91 kB / 386.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.1563, allocations: 4 kB / 386.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.1564, allocations: 31.83 kB / 386.6 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.086e-05/0.1565, allocations: 15.98 kB / 386.6 MB, free: 7.445 MB / 350.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.0001718/0.1566, allocations: 157.3 kB / 386.7 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/0.1568, allocations: 106.5 kB / 386.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.421e-05/0.1569, allocations: 20.78 kB / 386.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1569, allocations: 0 / 386.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.1569, allocations: 4 kB / 386.8 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.1569, allocations: 3.984 kB / 386.9 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007186/0.1576, allocations: 409.9 kB / 387.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1576, allocations: 3.938 kB / 387.3 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.1578, allocations: 43.91 kB / 387.3 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.1578, allocations: 4 kB / 387.3 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.543e-05/0.1578, allocations: 7.984 kB / 387.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.1578, allocations: 4 kB / 387.3 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1578, allocations: 0 / 387.3 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006174/0.1585, allocations: 329.8 kB / 387.6 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.848e-05/0.1585, allocations: 15.84 kB / 387.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.33e-05/0.1585, allocations: 11.94 kB / 387.7 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.1587, allocations: 23.97 kB / 387.7 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.977e-05/0.1588, allocations: 15.92 kB / 387.7 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.1588, allocations: 11.98 kB / 387.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.421e-05/0.1589, allocations: 115.3 kB / 387.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1589, allocations: 0 / 387.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002945/0.1592, allocations: 36 kB / 387.9 MB, free: 6.074 MB / 350.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.0001485/0.1593, allocations: 103.2 kB / 388 MB, free: 5.965 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006345/0.16, allocations: 272.6 kB / 388.2 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.16, allocations: 0 / 388.2 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001914/0.1602, allocations: 59.95 kB / 388.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004785/0.1606, allocations: 62.61 kB / 388.3 MB, free: 5.562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007283/0.1614, allocations: 326 kB / 388.7 MB, free: 5.215 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000133/0.1615, allocations: 116.5 kB / 388.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.88e-05/0.1616, allocations: 21.42 kB / 388.8 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.371e-05/0.1616, allocations: 20.48 kB / 388.8 MB, free: 5.031 MB / 350.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1616, allocations: 0 / 388.8 MB, free: 5.031 MB / 350.1 MB Notification: Performance of Templates: time 0.005678/0.1673, allocations: 2.026 MB / 390.8 MB, free: 3.031 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (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 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" 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 [Calling sys.exit(0), Time elapsed: 4.652355140889995]