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.0008132/0.0008129, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 179.9 kB / 16.63 MB, free: 6.891 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.788/1.788, allocations: 205.4 MB / 222.8 MB, free: 5.848 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.1016/0.1016, allocations: 12.6 MB / 283.7 MB, free: 8.91 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.0007329/0.0007329, allocations: 23.98 kB / 344.5 MB, free: 21.28 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.122, allocations: 50.38 MB / 394.9 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.002856/0.1249, allocations: 1.619 MB / 396.5 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001143/0.1261, allocations: 0.6324 MB / 397.2 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.1263, allocations: 4 kB / 397.2 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.053e-05/0.1263, allocations: 11.86 kB / 397.2 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001332/0.1264, allocations: 27.84 kB / 397.2 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000431/0.1269, allocations: 79.8 kB / 397.3 MB, free: 436 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002291/0.1271, allocations: 176 kB / 397.5 MB, free: 260 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002291/0.1273, allocations: 71.06 kB / 397.5 MB, free: 184 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.1275, allocations: 63.69 kB / 397.6 MB, free: 120 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.1277, allocations: 63.69 kB / 397.7 MB, free: 56 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.308e-05/0.1277, allocations: 8 kB / 397.7 MB, free: 48 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.118e-05/0.1277, allocations: 8 kB / 397.7 MB, free: 40 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.455e-05/0.1278, allocations: 23.89 kB / 397.7 MB, free: 16 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.693e-05/0.1279, allocations: 57.58 kB / 397.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002096/0.1281, allocations: 135.9 kB / 397.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.1281, allocations: 0 / 397.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1281, allocations: 0 / 397.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.1282, allocations: 0 / 397.9 MB, free: 15.82 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.001027/0.1292, allocations: 0.5099 MB / 398.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.853e-05/0.1293, allocations: 8.031 kB / 398.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.632e-05/0.1294, allocations: 23.81 kB / 398.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003579/0.1297, allocations: 223.3 kB / 398.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.157e-05/0.1298, allocations: 42.03 kB / 398.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.416e-05/0.1299, allocations: 12 kB / 398.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008185/0.1307, allocations: 346.4 kB / 399 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.1307, allocations: 0 / 399 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/0.1308, allocations: 4 kB / 399 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.1308, allocations: 8 kB / 399 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004377/0.1312, allocations: 136.5 kB / 399.2 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008361/0.1321, allocations: 481.9 kB / 399.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005264/0.1326, allocations: 217 kB / 399.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003037/0.1329, allocations: 117.6 kB / 400 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/0.133, allocations: 4 kB / 400 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003383/0.1333, allocations: 119.3 kB / 400.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.1333, allocations: 4 kB / 400.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008503/0.1342, allocations: 301.4 kB / 400.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.844e-05/0.1343, allocations: 97.09 kB / 400.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.1344, allocations: 146.9 kB / 400.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.612e-05/0.1345, allocations: 29.7 kB / 400.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.911e-05/0.1345, allocations: 120.5 kB / 400.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.056e-05/0.1346, allocations: 43.47 kB / 400.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.248e-05/0.1346, allocations: 8 kB / 400.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.1348, allocations: 326.8 kB / 401.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.1349, allocations: 68.19 kB / 401.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002394/0.1352, allocations: 151.4 kB / 401.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000226/0.1354, allocations: 109.5 kB / 401.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.1354, allocations: 4 kB / 401.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005396/0.136, allocations: 295.2 kB / 401.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.16e-05/0.136, allocations: 29.7 kB / 401.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.1361, allocations: 4 kB / 401.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.1361, allocations: 4 kB / 401.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.1363, allocations: 47.91 kB / 401.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.98e-05/0.1363, allocations: 7.984 kB / 401.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.1365, allocations: 31.83 kB / 401.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.252e-05/0.1365, allocations: 16 kB / 401.9 MB, free: 11.47 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,rotationalClock.changed.u,$CLKPRE.rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition1,$PRE.trigger_interval_input.T_start,trigger_interval_input.T_start,$PRE.trigger_interval_input.count,trigger_interval_input.count,rotationalClock.less.y,$whenCondition2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001362/0.1367, allocations: 141.6 kB / 402 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/0.1368, allocations: 114.2 kB / 402.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.943e-05/0.1369, allocations: 20.7 kB / 402.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.1369, allocations: 4 kB / 402.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1369, allocations: 0 / 402.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.1369, allocations: 4 kB / 402.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007228/0.1377, allocations: 0.506 MB / 402.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1377, allocations: 0 / 402.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001864/0.1379, allocations: 51.91 kB / 402.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1379, allocations: 0 / 402.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.1379, allocations: 7.984 kB / 402.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1379, allocations: 0 / 402.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.1379, allocations: 0 / 402.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005598/0.1385, allocations: 339.8 kB / 403.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.465e-05/0.1386, allocations: 100.8 kB / 403.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.431e-05/0.1386, allocations: 11.94 kB / 403.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.1388, allocations: 23.98 kB / 403.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.043e-05/0.1389, allocations: 19.97 kB / 403.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.1389, allocations: 7.938 kB / 403.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.132e-05/0.139, allocations: 120.7 kB / 403.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.139, allocations: 0 / 403.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003084/0.1393, allocations: 32 kB / 403.4 MB, free: 9.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001394/0.1395, allocations: 103.2 kB / 403.5 MB, free: 9.766 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007982/0.1403, allocations: 251.7 kB / 403.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1403, allocations: 7.938 kB / 403.7 MB, free: 9.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001942/0.1405, allocations: 68.02 kB / 403.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00046/0.141, allocations: 75.81 kB / 403.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007259/0.1417, allocations: 367.4 kB / 404.2 MB, free: 8.977 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003672/0.1421, allocations: 0.7363 MB / 405 MB, free: 8.215 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.293e-05/0.1422, allocations: 13.42 kB / 405 MB, free: 8.199 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.381e-05/0.1423, allocations: 27.42 kB / 405 MB, free: 8.172 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1423, allocations: 0 / 405 MB, free: 8.172 MB / 302.1 MB Notification: Performance of Templates: time 0.004951/0.1472, allocations: 1.643 MB / 406.7 MB, free: 6.527 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: