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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001237/0.001237, allocations: 175.8 kB / 13.23 MB, free: 2.082 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.657/1.657, allocations: 205.2 MB / 219 MB, free: 9.137 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.0008831/0.0008832, allocations: 96.39 kB / 267.1 MB, free: 9.258 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.08316/0.08316, allocations: 12.59 MB / 327.8 MB, free: 12.47 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.866e-05/2.869e-05, allocations: 0 / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09494/0.09498, allocations: 50.37 MB / 436.4 MB, free: 19.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3457/0.4407, allocations: 80.45 MB / 0.5047 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.4411, allocations: 71.86 kB / 0.5048 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007901/0.449, allocations: 2.994 MB / 0.5077 GB, free: 10.95 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.449, allocations: 0 / 0.5077 GB, free: 10.95 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.814e-05/0.4491, allocations: 3.844 kB / 0.5077 GB, free: 10.95 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.0006382/0.4497, allocations: 0.4911 MB / 0.5082 GB, free: 10.47 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.4497, allocations: 7.75 kB / 0.5082 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.364e-05/0.4498, allocations: 19.19 kB / 0.5082 GB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/0.4501, allocations: 225 kB / 0.5084 GB, free: 10.24 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.045e-05/0.4502, allocations: 43.98 kB / 0.5085 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.08e-05/0.4502, allocations: 26.39 kB / 0.5085 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004838/0.4507, allocations: 308.1 kB / 0.5088 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.4507, allocations: 0 / 0.5088 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.408e-05/0.4507, allocations: 11.62 kB / 0.5088 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.4508, allocations: 7.688 kB / 0.5088 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001717/0.4509, allocations: 86.95 kB / 0.5089 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007172/0.4517, allocations: 485.3 kB / 0.5094 GB, free: 9.688 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002566/0.4519, allocations: 164.9 kB / 0.5095 GB, free: 9.629 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.4521, allocations: 80.69 kB / 0.5096 GB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.229e-05/0.4521, allocations: 3.938 kB / 0.5096 GB, free: 9.609 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002126/0.4523, allocations: 106.2 kB / 0.5097 GB, free: 9.535 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.993e-06/0.4523, allocations: 0 / 0.5097 GB, free: 9.535 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003533/0.4527, allocations: 176.1 kB / 0.5099 GB, free: 9.477 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/0.4528, allocations: 88.86 kB / 0.5099 GB, free: 9.383 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.529e-05/0.4529, allocations: 132 kB / 0.5101 GB, free: 9.277 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.4529, allocations: 28.89 kB / 0.5101 GB, free: 9.246 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.854e-05/0.453, allocations: 122.9 kB / 0.5102 GB, free: 9.145 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.828e-05/0.453, allocations: 38.84 kB / 0.5103 GB, free: 9.121 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.828e-06/0.453, allocations: 3.844 kB / 0.5103 GB, free: 9.121 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.194e-05/0.4531, allocations: 325 kB / 0.5106 GB, free: 8.805 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.53e-05/0.4531, allocations: 44.41 kB / 0.5106 GB, free: 8.801 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.4533, allocations: 131.2 kB / 0.5107 GB, free: 8.691 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000102/0.4534, allocations: 90.34 kB / 0.5108 GB, free: 8.645 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4534, allocations: 0 / 0.5108 GB, free: 8.645 MB / 330.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000281/0.4537, allocations: 234.5 kB / 0.511 GB, free: 8.543 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.4537, allocations: 37.56 kB / 0.5111 GB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.4537, allocations: 4 kB / 0.5111 GB, free: 8.504 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.4537, allocations: 3.844 kB / 0.5111 GB, free: 8.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.4539, allocations: 46.5 kB / 0.5111 GB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.4539, allocations: 7.906 kB / 0.5111 GB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.4541, allocations: 42.97 kB / 0.5112 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.4541, allocations: 11.62 kB / 0.5112 GB, free: 8.469 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 () * 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 8.15e-05/0.4542, allocations: 128.5 kB / 0.5113 GB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.4544, allocations: 103.4 kB / 0.5114 GB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.181e-05/0.4544, allocations: 25.98 kB / 0.5114 GB, free: 8.289 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.4544, allocations: 0 / 0.5114 GB, free: 8.289 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.4544, allocations: 3.719 kB / 0.5114 GB, free: 8.289 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.4545, allocations: 0 / 0.5114 GB, free: 8.289 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004169/0.4549, allocations: 463.2 kB / 0.5119 GB, free: 7.922 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4549, allocations: 3.938 kB / 0.5119 GB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/0.4551, allocations: 46.08 kB / 0.5119 GB, free: 7.906 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.4551, allocations: 3.781 kB / 0.5119 GB, free: 7.906 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.4551, allocations: 3.938 kB / 0.5119 GB, free: 7.906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.4551, allocations: 7.875 kB / 0.5119 GB, free: 7.902 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4551, allocations: 0 / 0.5119 GB, free: 7.902 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002751/0.4554, allocations: 298.4 kB / 0.5122 GB, free: 7.711 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.395e-05/0.4554, allocations: 96.59 kB / 0.5123 GB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.813e-05/0.4555, allocations: 0 / 0.5123 GB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001764/0.4557, allocations: 22.23 kB / 0.5123 GB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.302e-05/0.4557, allocations: 24.72 kB / 0.5124 GB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.4558, allocations: 3.844 kB / 0.5124 GB, free: 7.59 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.242e-05/0.4558, allocations: 118.4 kB / 0.5125 GB, free: 7.504 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4558, allocations: 0 / 0.5125 GB, free: 7.504 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000265/0.4561, allocations: 41.88 kB / 0.5125 GB, free: 7.5 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) * 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.0001163/0.4562, allocations: 115.3 kB / 0.5126 GB, free: 7.402 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002877/0.4565, allocations: 199 kB / 0.5128 GB, free: 7.328 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4565, allocations: 0 / 0.5128 GB, free: 7.328 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.514e-05/0.4566, allocations: 49.39 kB / 0.5129 GB, free: 7.316 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002938/0.4569, allocations: 58.2 kB / 0.5129 GB, free: 7.305 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004507/0.4574, allocations: 226.4 kB / 0.5131 GB, free: 7.176 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001627/0.4575, allocations: 0.7385 MB / 0.5139 GB, free: 6.449 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.566e-05/0.4576, allocations: 9.031 kB / 0.5139 GB, free: 6.441 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.256e-05/0.4577, allocations: 22.64 kB / 0.5139 GB, free: 6.434 MB / 330.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4577, allocations: 0 / 0.5139 GB, free: 6.434 MB / 330.7 MB Notification: Performance of Templates: time 0.004031/0.4617, allocations: 1.657 MB / 0.5155 GB, free: 5.617 MB / 330.7 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)