Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001495/0.001495, allocations: 186.4 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.99/1.99, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001036/0.001036, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.102/0.102, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.199e-05/4.214e-05, allocations: 7.984 kB / 386 MB, free: 1.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3147, allocations: 50.37 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1442/0.4589, allocations: 80.46 MB / 0.5047 GB, free: 13.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003122/0.4593, allocations: 75.95 kB / 0.5048 GB, free: 13.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01408/0.4734, allocations: 2.975 MB / 0.5077 GB, free: 10.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.4734, allocations: 0 / 0.5077 GB, free: 10.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.884e-05/0.4735, allocations: 4 kB / 0.5077 GB, free: 10.51 MB / 362.7 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.001066/0.4746, allocations: 0.499 MB / 0.5082 GB, free: 9.953 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.4746, allocations: 8.031 kB / 0.5082 GB, free: 9.945 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.811e-05/0.4747, allocations: 15.81 kB / 0.5082 GB, free: 9.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000439/0.4752, allocations: 235.6 kB / 0.5084 GB, free: 9.656 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.724e-05/0.4753, allocations: 49.92 kB / 0.5085 GB, free: 9.602 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.036e-05/0.4754, allocations: 16 kB / 0.5085 GB, free: 9.586 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008018/0.4762, allocations: 303.3 kB / 0.5088 GB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.4762, allocations: 0 / 0.5088 GB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.734e-05/0.4763, allocations: 8 kB / 0.5088 GB, free: 9.266 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.4763, allocations: 7.984 kB / 0.5088 GB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003254/0.4766, allocations: 96.48 kB / 0.5089 GB, free: 9.164 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001246/0.4779, allocations: 474.1 kB / 0.5093 GB, free: 8.648 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004514/0.4784, allocations: 161.2 kB / 0.5095 GB, free: 8.473 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002407/0.4786, allocations: 85.7 kB / 0.5096 GB, free: 8.383 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.214e-05/0.4787, allocations: 8.062 kB / 0.5096 GB, free: 8.375 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002953/0.479, allocations: 111.6 kB / 0.5097 GB, free: 8.254 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 3.647e-06/0.479, allocations: 0 / 0.5097 GB, free: 8.254 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005857/0.4796, allocations: 173.5 kB / 0.5098 GB, free: 8.078 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.353e-05/0.4797, allocations: 89.05 kB / 0.5099 GB, free: 7.973 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.4799, allocations: 134.2 kB / 0.5101 GB, free: 7.828 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.111e-05/0.48, allocations: 29.7 kB / 0.5101 GB, free: 7.793 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.4801, allocations: 186.9 kB / 0.5103 GB, free: 7.609 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.459e-05/0.4802, allocations: 35.55 kB / 0.5103 GB, free: 7.574 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.569e-05/0.4802, allocations: 0 / 0.5103 GB, free: 7.574 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.4803, allocations: 322.9 kB / 0.5106 GB, free: 7.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001488/0.4805, allocations: 44.23 kB / 0.5106 GB, free: 7.207 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002395/0.4807, allocations: 131.9 kB / 0.5108 GB, free: 7.043 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.4809, allocations: 85.61 kB / 0.5109 GB, free: 6.953 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.481, allocations: 4 kB / 0.5109 GB, free: 6.949 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.00057/0.4815, allocations: 223.9 kB / 0.5111 GB, free: 6.719 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.339e-05/0.4816, allocations: 41.98 kB / 0.5111 GB, free: 6.672 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.4816, allocations: 8 kB / 0.5111 GB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.4817, allocations: 4 kB / 0.5111 GB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003851/0.4821, allocations: 43.91 kB / 0.5112 GB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.4821, allocations: 4 kB / 0.5112 GB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.4824, allocations: 39.77 kB / 0.5112 GB, free: 6.574 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.185e-05/0.4825, allocations: 8 kB / 0.5112 GB, free: 6.566 MB / 362.7 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 () * 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.000158/0.4826, allocations: 128.7 kB / 0.5113 GB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002709/0.4829, allocations: 101.5 kB / 0.5114 GB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.147e-05/0.483, allocations: 28.5 kB / 0.5115 GB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.483, allocations: 7.938 kB / 0.5115 GB, free: 6.289 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4831, allocations: 0 / 0.5115 GB, free: 6.289 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.4831, allocations: 0 / 0.5115 GB, free: 6.289 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008312/0.4839, allocations: 462.2 kB / 0.5119 GB, free: 5.781 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.4839, allocations: 4 kB / 0.5119 GB, free: 5.777 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000367/0.4843, allocations: 47.86 kB / 0.512 GB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.989e-06/0.4843, allocations: 4 kB / 0.512 GB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.4844, allocations: 3.984 kB / 0.512 GB, free: 5.723 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.4844, allocations: 4 kB / 0.512 GB, free: 5.719 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.4844, allocations: 4 kB / 0.512 GB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005846/0.485, allocations: 305.5 kB / 0.5123 GB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.536e-05/0.4851, allocations: 88.92 kB / 0.5123 GB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.73e-05/0.4851, allocations: 4 kB / 0.5124 GB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003306/0.4855, allocations: 27.97 kB / 0.5124 GB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.933e-05/0.4856, allocations: 19.91 kB / 0.5124 GB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.101e-05/0.4856, allocations: 8 kB / 0.5124 GB, free: 5.227 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001174/0.4858, allocations: 112.6 kB / 0.5125 GB, free: 5.117 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4858, allocations: 0 / 0.5125 GB, free: 5.117 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004317/0.4862, allocations: 39.94 kB / 0.5125 GB, free: 5.078 MB / 362.7 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) * 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.0001857/0.4864, allocations: 107.2 kB / 0.5127 GB, free: 4.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005158/0.487, allocations: 199.9 kB / 0.5128 GB, free: 4.758 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.487, allocations: 0 / 0.5128 GB, free: 4.758 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.4871, allocations: 44.06 kB / 0.5129 GB, free: 4.715 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004758/0.4876, allocations: 56.52 kB / 0.5129 GB, free: 4.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008433/0.4885, allocations: 249.8 kB / 0.5132 GB, free: 4.387 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.4888, allocations: 0.7402 MB / 0.5139 GB, free: 3.621 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.489, allocations: 19.42 kB / 0.5139 GB, free: 3.605 MB / 362.7 MB Notification: Performance of SimCode: time 1.242e-06/0.489, allocations: 3.938 kB / 0.5139 GB, free: 3.602 MB / 362.7 MB Notification: Performance of Templates: time 0.006151/0.4951, allocations: 2.1 MB / 0.516 GB, free: 1.504 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1)