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/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/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.002037/0.002046, allocations: 182 kB / 17.46 MB, free: 4.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.913/2.913, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.001059/0.001059, allocations: 96.66 kB / 272 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1406/0.1406, allocations: 12.21 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005867/0.0005872, allocations: 19.98 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1713, allocations: 50.29 MB / 443 MB, free: 16.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5734/0.7448, allocations: 80.51 MB / 0.5113 GB, free: 12.88 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.7452, allocations: 74.61 kB / 0.5113 GB, free: 12.87 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/ClockSignals.mo:280:9-282:76:writable] Warning: In relation trigger_interval == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of FrontEnd - DAE generated: time 0.008821/0.754, allocations: 2.988 MB / 0.5142 GB, free: 11.6 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.288e-06/0.754, allocations: 0 / 0.5142 GB, free: 11.6 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.066e-05/0.7541, allocations: 3.844 kB / 0.5142 GB, free: 11.6 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.0008562/0.7549, allocations: 0.5074 MB / 0.5147 GB, free: 11.1 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.755, allocations: 11.53 kB / 0.5147 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.554e-05/0.7551, allocations: 27.69 kB / 0.5148 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.7554, allocations: 233.9 kB / 0.515 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.686e-05/0.7555, allocations: 41.09 kB / 0.515 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.243e-05/0.7555, allocations: 15.53 kB / 0.5151 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000718/0.7562, allocations: 343.3 kB / 0.5154 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.7562, allocations: 4 kB / 0.5154 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.792e-05/0.7563, allocations: 10.88 kB / 0.5154 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.7563, allocations: 3.844 kB / 0.5154 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003934/0.7567, allocations: 148.8 kB / 0.5155 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006501/0.7574, allocations: 484.1 kB / 0.516 GB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000449/0.7578, allocations: 215.7 kB / 0.5162 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/0.7581, allocations: 108.2 kB / 0.5163 GB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.082e-05/0.7581, allocations: 7.031 kB / 0.5163 GB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002814/0.7584, allocations: 127.9 kB / 0.5164 GB, free: 10.07 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.783e-06/0.7584, allocations: 0 / 0.5164 GB, free: 10.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007891/0.7592, allocations: 307.5 kB / 0.5167 GB, free: 9.977 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.11e-05/0.7593, allocations: 92.05 kB / 0.5168 GB, free: 9.879 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.7594, allocations: 151 kB / 0.517 GB, free: 9.754 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.7595, allocations: 29.2 kB / 0.517 GB, free: 9.723 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.432e-05/0.7595, allocations: 117.9 kB / 0.5171 GB, free: 9.625 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.546e-05/0.7596, allocations: 42.31 kB / 0.5171 GB, free: 9.602 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.27e-05/0.7596, allocations: 3.438 kB / 0.5171 GB, free: 9.602 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.389e-05/0.7597, allocations: 329.9 kB / 0.5175 GB, free: 9.281 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001915/0.7599, allocations: 64.34 kB / 0.5175 GB, free: 9.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002424/0.7601, allocations: 162.8 kB / 0.5177 GB, free: 9.145 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004098/0.7605, allocations: 249.5 kB / 0.5179 GB, free: 8.98 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.7606, allocations: 0 / 0.5179 GB, free: 8.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005661/0.7611, allocations: 288.4 kB / 0.5182 GB, free: 8.859 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.215e-05/0.7612, allocations: 37.17 kB / 0.5182 GB, free: 8.828 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.7612, allocations: 3.844 kB / 0.5182 GB, free: 8.828 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.034e-05/0.7613, allocations: 7.828 kB / 0.5182 GB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001985/0.7615, allocations: 42.52 kB / 0.5183 GB, free: 8.816 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.489e-05/0.7615, allocations: 11.83 kB / 0.5183 GB, free: 8.809 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.7617, allocations: 34.14 kB / 0.5183 GB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.908e-05/0.7617, allocations: 11.19 kB / 0.5183 GB, free: 8.793 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.0001934/0.7619, allocations: 150.7 kB / 0.5185 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001826/0.7621, allocations: 92.48 kB / 0.5186 GB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.884e-05/0.7622, allocations: 25.61 kB / 0.5186 GB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.625e-06/0.7622, allocations: 3.969 kB / 0.5186 GB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.7622, allocations: 4 kB / 0.5186 GB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.7622, allocations: 3.938 kB / 0.5186 GB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007861/0.763, allocations: 0.5031 MB / 0.5191 GB, free: 8.223 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.763, allocations: 3.984 kB / 0.5191 GB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001744/0.7632, allocations: 41.53 kB / 0.5191 GB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.7632, allocations: 0 / 0.5191 GB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.7632, allocations: 11.8 kB / 0.5191 GB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.87e-06/0.7633, allocations: 7.938 kB / 0.5192 GB, free: 8.195 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.7633, allocations: 0 / 0.5192 GB, free: 8.195 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006111/0.7639, allocations: 336.4 kB / 0.5195 GB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.046e-05/0.7639, allocations: 104.7 kB / 0.5196 GB, free: 7.898 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.954e-05/0.764, allocations: 11 kB / 0.5196 GB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.7642, allocations: 25.52 kB / 0.5196 GB, free: 7.887 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.545e-05/0.7643, allocations: 15.66 kB / 0.5196 GB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.126e-05/0.7643, allocations: 7.406 kB / 0.5196 GB, free: 7.879 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.818e-05/0.7644, allocations: 111.3 kB / 0.5197 GB, free: 7.797 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7644, allocations: 3.938 kB / 0.5197 GB, free: 7.793 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003842/0.7648, allocations: 39.88 kB / 0.5198 GB, free: 7.789 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.0001721/0.765, allocations: 113.3 kB / 0.5199 GB, free: 7.691 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007354/0.7658, allocations: 253.1 kB / 0.5201 GB, free: 7.586 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.7658, allocations: 0 / 0.5201 GB, free: 7.586 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002474/0.766, allocations: 67.19 kB / 0.5202 GB, free: 7.574 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005967/0.7667, allocations: 64 kB / 0.5203 GB, free: 7.562 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008859/0.7676, allocations: 417.7 kB / 0.5207 GB, free: 7.23 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002016/0.7678, allocations: 0.7247 MB / 0.5214 GB, free: 6.48 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.978e-05/0.7679, allocations: 19.42 kB / 0.5214 GB, free: 6.465 MB / 330.7 MB Notification: Performance of SimCode: time 7.71e-07/0.7679, allocations: 0 / 0.5214 GB, free: 6.465 MB / 330.7 MB Notification: Performance of Templates: time 0.004674/0.7725, allocations: 2.133 MB / 0.5235 GB, free: 4.352 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)