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.001009/0.001009, allocations: 180.9 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.3 MB / 213.8 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.0008352/0.0008352, allocations: 86.28 kB / 261.8 MB, free: 1.68 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.07869/0.07869, allocations: 12.59 MB / 322.3 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.558e-05/1.555e-05, allocations: 0 / 378.9 MB, free: 6.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2233, allocations: 50.37 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0977/0.321, allocations: 79.8 MB / 0.4972 GB, free: 2.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.3213, allocations: 71.97 kB / 0.4972 GB, free: 2.359 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007992/0.3293, allocations: 2.963 MB / 0.5001 GB, free: 15.39 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3293, allocations: 0 / 0.5001 GB, free: 15.39 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.384e-05/0.3293, allocations: 4 kB / 0.5001 GB, free: 15.39 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.0006916/0.33, allocations: 0.4916 MB / 0.5006 GB, free: 14.84 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.3301, allocations: 12.02 kB / 0.5006 GB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.013e-05/0.3301, allocations: 23.75 kB / 0.5007 GB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002891/0.3304, allocations: 231 kB / 0.5009 GB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.749e-05/0.3305, allocations: 37.98 kB / 0.5009 GB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.923e-05/0.3305, allocations: 12 kB / 0.5009 GB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002007/0.3307, allocations: 100.6 kB / 0.501 GB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004403/0.3312, allocations: 275.1 kB / 0.5013 GB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.3312, allocations: 0 / 0.5013 GB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.118e-05/0.3312, allocations: 3.984 kB / 0.5013 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.3313, allocations: 4 kB / 0.5013 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000713/0.332, allocations: 446.2 kB / 0.5017 GB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002321/0.3322, allocations: 149.3 kB / 0.5019 GB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.3323, allocations: 73.7 kB / 0.5019 GB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.812e-05/0.3324, allocations: 12.25 kB / 0.5019 GB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001874/0.3326, allocations: 95.3 kB / 0.502 GB, free: 13.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.483e-06/0.3326, allocations: 0 / 0.502 GB, free: 13.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003278/0.3329, allocations: 165.5 kB / 0.5022 GB, free: 13.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.333, allocations: 85.05 kB / 0.5023 GB, free: 12.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.3331, allocations: 130.2 kB / 0.5024 GB, free: 12.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.3331, allocations: 25.7 kB / 0.5024 GB, free: 12.81 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.61e-05/0.3332, allocations: 116.4 kB / 0.5025 GB, free: 12.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.124e-05/0.3333, allocations: 35.55 kB / 0.5026 GB, free: 12.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.967e-06/0.3333, allocations: 4 kB / 0.5026 GB, free: 12.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.3334, allocations: 326.8 kB / 0.5029 GB, free: 12.33 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.185e-05/0.3335, allocations: 40.23 kB / 0.5029 GB, free: 12.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.3336, allocations: 118.8 kB / 0.503 GB, free: 12.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.268e-05/0.3337, allocations: 43.92 kB / 0.5031 GB, free: 12.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3337, allocations: 0 / 0.5031 GB, free: 12.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003285/0.3341, allocations: 191 kB / 0.5033 GB, free: 11.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.3341, allocations: 33.7 kB / 0.5033 GB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3341, allocations: 4 kB / 0.5033 GB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.3341, allocations: 4 kB / 0.5033 GB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002085/0.3343, allocations: 60.2 kB / 0.5033 GB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.3344, allocations: 8 kB / 0.5034 GB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.3345, allocations: 31.81 kB / 0.5034 GB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.151e-05/0.3346, allocations: 8 kB / 0.5034 GB, free: 11.75 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.0001022/0.3347, allocations: 114.1 kB / 0.5035 GB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.3348, allocations: 101.6 kB / 0.5036 GB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.362e-05/0.3349, allocations: 24.62 kB / 0.5036 GB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.3349, allocations: 3.938 kB / 0.5036 GB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.3349, allocations: 3.953 kB / 0.5036 GB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3349, allocations: 4 kB / 0.5036 GB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000431/0.3353, allocations: 418.8 kB / 0.504 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3353, allocations: 0 / 0.504 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.3355, allocations: 47.91 kB / 0.5041 GB, free: 11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.3356, allocations: 0 / 0.5041 GB, free: 11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.3356, allocations: 8 kB / 0.5041 GB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3356, allocations: 3.953 kB / 0.5041 GB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3356, allocations: 0 / 0.5041 GB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002847/0.3359, allocations: 280.1 kB / 0.5044 GB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.564e-05/0.3359, allocations: 93 kB / 0.5044 GB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.214e-05/0.336, allocations: 11.95 kB / 0.5045 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.3362, allocations: 15.98 kB / 0.5045 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.562e-05/0.3362, allocations: 15.97 kB / 0.5045 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.3363, allocations: 8 kB / 0.5045 GB, free: 10.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.22e-05/0.3363, allocations: 108.5 kB / 0.5046 GB, free: 10.42 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3363, allocations: 0 / 0.5046 GB, free: 10.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002759/0.3366, allocations: 35.84 kB / 0.5046 GB, free: 10.39 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.0001285/0.3368, allocations: 123.1 kB / 0.5048 GB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002684/0.337, allocations: 175.3 kB / 0.5049 GB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.337, allocations: 0 / 0.5049 GB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.086e-05/0.3371, allocations: 43.94 kB / 0.505 GB, free: 10.03 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.3374, allocations: 56.58 kB / 0.505 GB, free: 9.973 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005013/0.3379, allocations: 218.2 kB / 0.5052 GB, free: 9.738 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.3383, allocations: 0.7283 MB / 0.5059 GB, free: 8.98 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.046e-05/0.3383, allocations: 17.33 kB / 0.506 GB, free: 8.961 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.332e-05/0.3384, allocations: 19.42 kB / 0.506 GB, free: 8.941 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3384, allocations: 0 / 0.506 GB, free: 8.941 MB / 362.7 MB Notification: Performance of Templates: time 0.00408/0.3425, allocations: 1.58 MB / 0.5075 GB, free: 7.367 MB / 362.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)