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.001958/0.001958, allocations: 178.4 kB / 8.405 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.175/2.175, allocations: 205.3 MB / 214.1 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001105/0.001105, allocations: 82.44 kB / 262.1 MB, free: 1.688 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.1035/0.1035, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.762e-05/1.775e-05, allocations: 0 / 378.9 MB, free: 6.895 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3213, allocations: 50.37 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1408/0.4621, allocations: 79.8 MB / 0.4971 GB, free: 2.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002992/0.4625, allocations: 79.94 kB / 0.4972 GB, free: 2.441 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01328/0.4758, allocations: 2.955 MB / 0.5001 GB, free: 15.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.547e-06/0.4758, allocations: 3.984 kB / 0.5001 GB, free: 15.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.91e-05/0.4759, allocations: 7.984 kB / 0.5001 GB, free: 15.47 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.001039/0.4769, allocations: 499.4 kB / 0.5006 GB, free: 14.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.477, allocations: 8.031 kB / 0.5006 GB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.781e-05/0.4771, allocations: 23.81 kB / 0.5006 GB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004187/0.4775, allocations: 231.1 kB / 0.5008 GB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.707e-05/0.4776, allocations: 41.97 kB / 0.5009 GB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.678e-05/0.4777, allocations: 12 kB / 0.5009 GB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000377/0.478, allocations: 100.6 kB / 0.501 GB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006994/0.4788, allocations: 279 kB / 0.5013 GB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.4788, allocations: 0 / 0.5013 GB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.091e-05/0.4788, allocations: 0 / 0.5013 GB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.4788, allocations: 4 kB / 0.5013 GB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.4799, allocations: 438.3 kB / 0.5017 GB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003578/0.4803, allocations: 153.2 kB / 0.5018 GB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.4805, allocations: 77.64 kB / 0.5019 GB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.671e-05/0.4805, allocations: 8.25 kB / 0.5019 GB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/0.4808, allocations: 95.3 kB / 0.502 GB, free: 13.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.344e-06/0.4808, allocations: 4 kB / 0.502 GB, free: 13.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005315/0.4814, allocations: 165.5 kB / 0.5022 GB, free: 13.17 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.665e-05/0.4815, allocations: 85.05 kB / 0.5022 GB, free: 13.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001844/0.4817, allocations: 130.2 kB / 0.5024 GB, free: 12.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.631e-05/0.4817, allocations: 25.7 kB / 0.5024 GB, free: 12.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.4819, allocations: 178.9 kB / 0.5026 GB, free: 12.72 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.742e-05/0.482, allocations: 39.55 kB / 0.5026 GB, free: 12.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.561e-05/0.482, allocations: 0 / 0.5026 GB, free: 12.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.4822, allocations: 326.8 kB / 0.5029 GB, free: 12.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.4823, allocations: 40.23 kB / 0.5029 GB, free: 12.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.4825, allocations: 110.8 kB / 0.5031 GB, free: 12.17 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000152/0.4827, allocations: 55.91 kB / 0.5031 GB, free: 12.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.4827, allocations: 0 / 0.5031 GB, free: 12.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000493/0.4832, allocations: 181.4 kB / 0.5033 GB, free: 11.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.956e-05/0.4833, allocations: 33.7 kB / 0.5033 GB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.4833, allocations: 0 / 0.5033 GB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.423e-05/0.4833, allocations: 8 kB / 0.5033 GB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003744/0.4837, allocations: 51.86 kB / 0.5034 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.4838, allocations: 8.328 kB / 0.5034 GB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002999/0.4841, allocations: 31.83 kB / 0.5034 GB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/0.4841, allocations: 8 kB / 0.5034 GB, free: 11.79 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.0001466/0.4843, allocations: 122.1 kB / 0.5035 GB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002227/0.4845, allocations: 97.36 kB / 0.5036 GB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.665e-05/0.4846, allocations: 16.62 kB / 0.5036 GB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.4846, allocations: 4 kB / 0.5036 GB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.4846, allocations: 7.953 kB / 0.5036 GB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.4846, allocations: 3.984 kB / 0.5037 GB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007038/0.4854, allocations: 418.8 kB / 0.5041 GB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.4854, allocations: 0 / 0.5041 GB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003596/0.4857, allocations: 47.91 kB / 0.5041 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.4858, allocations: 0 / 0.5041 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.331e-05/0.4858, allocations: 7.984 kB / 0.5041 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.434e-06/0.4858, allocations: 7.953 kB / 0.5041 GB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4858, allocations: 0 / 0.5041 GB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005255/0.4864, allocations: 284.6 kB / 0.5044 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.008e-05/0.4865, allocations: 88.92 kB / 0.5045 GB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.724e-05/0.4865, allocations: 7.953 kB / 0.5045 GB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003285/0.4869, allocations: 19.98 kB / 0.5045 GB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.627e-05/0.487, allocations: 19.97 kB / 0.5045 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.863e-05/0.487, allocations: 7.984 kB / 0.5045 GB, free: 10.56 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001109/0.4871, allocations: 108.5 kB / 0.5046 GB, free: 10.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4871, allocations: 0 / 0.5046 GB, free: 10.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004547/0.4876, allocations: 35.92 kB / 0.5047 GB, free: 10.42 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.0001677/0.4878, allocations: 107.1 kB / 0.5048 GB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004416/0.4882, allocations: 179.3 kB / 0.5049 GB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.4883, allocations: 4 kB / 0.5049 GB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001263/0.4884, allocations: 47.86 kB / 0.505 GB, free: 10.06 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004545/0.4889, allocations: 51.89 kB / 0.505 GB, free: 10.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007939/0.4897, allocations: 244.6 kB / 0.5053 GB, free: 9.746 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004807/0.4902, allocations: 0.7361 MB / 0.506 GB, free: 8.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.4903, allocations: 19.44 kB / 0.506 GB, free: 8.961 MB / 362.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4903, allocations: 0 / 0.506 GB, free: 8.961 MB / 362.7 MB Notification: Performance of Templates: time 0.006049/0.4964, allocations: 2.084 MB / 0.508 GB, free: 6.887 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)