Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001745/0.001745, allocations: 106 kB / 16.03 MB, free: 5.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002085/0.002084, allocations: 191.4 kB / 16.95 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.78/1.78, allocations: 205.1 MB / 222.8 MB, free: 4.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1111/0.1111, allocations: 12.59 MB / 282.7 MB, free: 8.773 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002839/0.002839, allocations: 79.89 kB / 343 MB, free: 21.09 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1406, allocations: 49.41 MB / 392.4 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.004932/0.1455, allocations: 2.02 MB / 394.4 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001627/0.1472, allocations: 0.6632 MB / 395.1 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002259/0.1475, allocations: 4 kB / 395.1 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.684e-05/0.1476, allocations: 11.86 kB / 395.1 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.1478, allocations: 11.86 kB / 395.1 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006782/0.1485, allocations: 107.8 kB / 395.2 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003338/0.1488, allocations: 208 kB / 395.4 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002904/0.1491, allocations: 92.31 kB / 395.5 MB, free: 472 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/0.1493, allocations: 79.75 kB / 395.6 MB, free: 392 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.1494, allocations: 91.59 kB / 395.6 MB, free: 300 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.742e-05/0.1495, allocations: 19.94 kB / 395.7 MB, free: 280 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.5e-05/0.1495, allocations: 20 kB / 395.7 MB, free: 260 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.106e-05/0.1496, allocations: 47.84 kB / 395.7 MB, free: 212 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.169e-05/0.1497, allocations: 91.52 kB / 395.8 MB, free: 120 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002901/0.15, allocations: 199.6 kB / 396 MB, free: 15.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.15, allocations: 4 kB / 396 MB, free: 15.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.15, allocations: 0 / 396 MB, free: 15.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.15, allocations: 0 / 396 MB, free: 15.92 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.0009681/0.151, allocations: 0.5218 MB / 396.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.1511, allocations: 8.031 kB / 396.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.02e-05/0.1511, allocations: 24.66 kB / 396.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.1514, allocations: 236.5 kB / 396.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.16e-05/0.1515, allocations: 42.59 kB / 396.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.224e-05/0.1515, allocations: 19.94 kB / 396.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006921/0.1522, allocations: 342.2 kB / 397.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.1523, allocations: 0 / 397.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.555e-05/0.1523, allocations: 7.984 kB / 397.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.1523, allocations: 4 kB / 397.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000388/0.1527, allocations: 127.9 kB / 397.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007081/0.1534, allocations: 465.2 kB / 397.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004721/0.1539, allocations: 209.1 kB / 398 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.1542, allocations: 101.7 kB / 398.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.068e-05/0.1542, allocations: 192 / 398.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003761/0.1546, allocations: 115.3 kB / 398.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.483e-06/0.1546, allocations: 7.938 kB / 398.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007808/0.1554, allocations: 290 kB / 398.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.93e-05/0.1555, allocations: 89.02 kB / 398.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.1556, allocations: 146.4 kB / 398.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.15e-05/0.1557, allocations: 33.7 kB / 398.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.933e-05/0.1558, allocations: 120.4 kB / 398.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.166e-05/0.1558, allocations: 47.55 kB / 398.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.336e-05/0.1559, allocations: 41.7 kB / 399 MB, free: 12.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.1561, allocations: 326.8 kB / 399.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.1563, allocations: 60.19 kB / 399.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/0.1565, allocations: 151.3 kB / 399.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004382/0.157, allocations: 235.8 kB / 399.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.157, allocations: 4 kB / 399.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005822/0.1576, allocations: 271.2 kB / 400 MB, free: 11.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.274e-05/0.1576, allocations: 37.7 kB / 400 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.1576, allocations: 4 kB / 400 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.1577, allocations: 4 kB / 400 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001975/0.1579, allocations: 39.91 kB / 400.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.914e-05/0.1579, allocations: 15.86 kB / 400.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001855/0.1581, allocations: 31.83 kB / 400.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.1581, allocations: 12 kB / 400.1 MB, free: 11.44 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.0001682/0.1583, allocations: 141.7 kB / 400.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002051/0.1585, allocations: 109.4 kB / 400.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.1586, allocations: 20.7 kB / 400.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.1586, allocations: 7.984 kB / 400.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/0.1587, allocations: 3.938 kB / 400.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.1587, allocations: 0 / 400.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008487/0.1595, allocations: 490.2 kB / 400.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1596, allocations: 0 / 400.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001912/0.1597, allocations: 39.97 kB / 400.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.1598, allocations: 3.938 kB / 400.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.1598, allocations: 7.984 kB / 400.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.185e-06/0.1598, allocations: 3.938 kB / 400.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.1598, allocations: 7.938 kB / 401 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006305/0.1605, allocations: 315.9 kB / 401.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.881e-05/0.1605, allocations: 100.8 kB / 401.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.338e-05/0.1606, allocations: 7.938 kB / 401.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001772/0.1608, allocations: 15.98 kB / 401.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.573e-05/0.1608, allocations: 19.97 kB / 401.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.1609, allocations: 4 kB / 401.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001087/0.161, allocations: 123.9 kB / 401.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.161, allocations: 0 / 401.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003304/0.1613, allocations: 39.84 kB / 401.6 MB, free: 9.895 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.0001254/0.1615, allocations: 107.1 kB / 401.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005942/0.1621, allocations: 251.7 kB / 401.9 MB, free: 9.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1621, allocations: 0 / 401.9 MB, free: 9.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.1623, allocations: 63.89 kB / 402 MB, free: 9.457 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004647/0.1627, allocations: 75.73 kB / 402.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008396/0.1636, allocations: 374.4 kB / 402.4 MB, free: 8.988 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.164, allocations: 0.736 MB / 403.2 MB, free: 8.227 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.193e-05/0.1641, allocations: 13.42 kB / 403.2 MB, free: 8.211 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.883e-05/0.1641, allocations: 23.44 kB / 403.2 MB, free: 8.188 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1641, allocations: 0 / 403.2 MB, free: 8.188 MB / 302.1 MB Notification: Performance of Templates: time 0.005909/0.1701, allocations: 1.85 MB / 405 MB, free: 6.336 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1)