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.001439/0.001439, allocations: 185.1 kB / 16.44 MB, free: 5.672 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.983/1.983, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.001095/0.001094, allocations: 89.55 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09951/0.09951, allocations: 12.58 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005398/0.0005398, allocations: 12 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08565/0.08622, allocations: 50.36 MB / 442.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.422/0.5082, allocations: 80.55 MB / 0.5106 GB, free: 12.54 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.5086, allocations: 80.84 kB / 0.5107 GB, free: 12.53 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01198/0.5206, allocations: 2.995 MB / 0.5136 GB, free: 11.24 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.5206, allocations: 0 / 0.5136 GB, free: 11.24 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.5207, allocations: 3.844 kB / 0.5136 GB, free: 11.24 MB / 330.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.0009853/0.5217, allocations: 0.5055 MB / 0.5141 GB, free: 10.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.5217, allocations: 11.94 kB / 0.5141 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.423e-05/0.5218, allocations: 27.36 kB / 0.5142 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003343/0.5221, allocations: 237.9 kB / 0.5144 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.854e-05/0.5222, allocations: 41.36 kB / 0.5144 GB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.128e-05/0.5223, allocations: 17.59 kB / 0.5145 GB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009701/0.5233, allocations: 331.5 kB / 0.5148 GB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.5233, allocations: 3.938 kB / 0.5148 GB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.281e-05/0.5233, allocations: 5.688 kB / 0.5148 GB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.5234, allocations: 7.844 kB / 0.5148 GB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006871/0.524, allocations: 151 kB / 0.5149 GB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009316/0.525, allocations: 481.9 kB / 0.5154 GB, free: 9.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007637/0.5258, allocations: 211.7 kB / 0.5156 GB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.548e-05/0.5258, allocations: 3.812 kB / 0.5156 GB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004305/0.5263, allocations: 130.5 kB / 0.5157 GB, free: 9.746 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.905e-06/0.5263, allocations: 0 / 0.5157 GB, free: 9.746 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.001255/0.5276, allocations: 312.7 kB / 0.516 GB, free: 9.652 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.903e-05/0.5276, allocations: 88.81 kB / 0.5161 GB, free: 9.555 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.5278, allocations: 135.9 kB / 0.5162 GB, free: 9.449 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.228e-05/0.5278, allocations: 29.7 kB / 0.5163 GB, free: 9.414 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.832e-05/0.5279, allocations: 176 kB / 0.5164 GB, free: 9.258 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.259e-05/0.528, allocations: 43.39 kB / 0.5165 GB, free: 9.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.926e-05/0.528, allocations: 3.438 kB / 0.5165 GB, free: 9.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.075e-05/0.528, allocations: 321.9 kB / 0.5168 GB, free: 8.914 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003136/0.5284, allocations: 66.41 kB / 0.5168 GB, free: 8.902 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003469/0.5287, allocations: 154.7 kB / 0.517 GB, free: 8.785 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000341/0.5291, allocations: 118.6 kB / 0.5171 GB, free: 8.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.5291, allocations: 0 / 0.5171 GB, free: 8.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008233/0.5299, allocations: 281.3 kB / 0.5174 GB, free: 8.613 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/0.53, allocations: 37.38 kB / 0.5174 GB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.53, allocations: 7.828 kB / 0.5174 GB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.53, allocations: 3.844 kB / 0.5174 GB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000328/0.5304, allocations: 50.47 kB / 0.5175 GB, free: 8.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.5304, allocations: 11.8 kB / 0.5175 GB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002805/0.5307, allocations: 26.42 kB / 0.5175 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.698e-05/0.5307, allocations: 11.47 kB / 0.5175 GB, free: 8.547 MB / 330.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 () * 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.0001536/0.5309, allocations: 158.2 kB / 0.5177 GB, free: 8.41 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002706/0.5312, allocations: 109.2 kB / 0.5178 GB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.469e-05/0.5313, allocations: 21.97 kB / 0.5178 GB, free: 8.344 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/0.5313, allocations: 11.83 kB / 0.5178 GB, free: 8.336 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.5313, allocations: 0 / 0.5178 GB, free: 8.336 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.5313, allocations: 3.984 kB / 0.5178 GB, free: 8.332 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009752/0.5323, allocations: 0.497 MB / 0.5183 GB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.5323, allocations: 0 / 0.5183 GB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003265/0.5327, allocations: 40.94 kB / 0.5183 GB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.5327, allocations: 7.797 kB / 0.5183 GB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.5327, allocations: 7.172 kB / 0.5183 GB, free: 7.945 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.5327, allocations: 0 / 0.5183 GB, free: 7.945 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.5327, allocations: 3.844 kB / 0.5183 GB, free: 7.945 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000844/0.5336, allocations: 356.6 kB / 0.5187 GB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.379e-05/0.5336, allocations: 92.75 kB / 0.5188 GB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.617e-05/0.5337, allocations: 6.844 kB / 0.5188 GB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000301/0.534, allocations: 27.06 kB / 0.5188 GB, free: 7.617 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.166e-05/0.5341, allocations: 15.14 kB / 0.5188 GB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.703e-05/0.5341, allocations: 11.64 kB / 0.5188 GB, free: 7.609 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.481e-05/0.5342, allocations: 105 kB / 0.5189 GB, free: 7.531 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5342, allocations: 4 kB / 0.5189 GB, free: 7.527 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004196/0.5347, allocations: 46.17 kB / 0.519 GB, free: 7.52 MB / 330.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) * 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.0001336/0.5348, allocations: 114.3 kB / 0.5191 GB, free: 7.418 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000846/0.5357, allocations: 254.3 kB / 0.5193 GB, free: 7.312 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5357, allocations: 0 / 0.5193 GB, free: 7.312 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003039/0.536, allocations: 70.95 kB / 0.5194 GB, free: 7.297 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004629/0.5365, allocations: 60.98 kB / 0.5195 GB, free: 7.285 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009462/0.5375, allocations: 411.3 kB / 0.5198 GB, free: 6.887 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001835/0.5377, allocations: 0.7285 MB / 0.5206 GB, free: 6.133 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.5378, allocations: 23.42 kB / 0.5206 GB, free: 6.113 MB / 330.7 MB Notification: Performance of SimCode: time 6.62e-07/0.5378, allocations: 4 kB / 0.5206 GB, free: 6.109 MB / 330.7 MB Notification: Performance of Templates: time 0.004805/0.5426, allocations: 2.092 MB / 0.5226 GB, free: 4.043 MB / 330.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)