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.003719/0.003717, allocations: 181.7 kB / 16.45 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.093/4.093, allocations: 205.4 MB / 222.6 MB, free: 9.129 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.001908/0.001908, allocations: 87.58 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.1812/0.1812, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000889/0.0008892, allocations: 16 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1696, allocations: 50.37 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.005228/0.1749, allocations: 1.619 MB / 444 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.1772, allocations: 0.6207 MB / 444.6 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003169/0.1775, allocations: 4 kB / 444.6 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.52e-05/0.1777, allocations: 11.86 kB / 444.6 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002182/0.1779, allocations: 23.89 kB / 444.6 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000774/0.1787, allocations: 83.84 kB / 444.7 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000353/0.1791, allocations: 116.2 kB / 444.8 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002962/0.1794, allocations: 71.05 kB / 444.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000278/0.1797, allocations: 63.7 kB / 444.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.1799, allocations: 63.67 kB / 445 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.951e-05/0.18, allocations: 11.88 kB / 445 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.422e-05/0.1801, allocations: 4 kB / 445 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.136e-05/0.1801, allocations: 23.92 kB / 445.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.165e-05/0.1802, allocations: 45.64 kB / 445.1 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003913/0.1807, allocations: 147.9 kB / 445.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.1807, allocations: 4 kB / 445.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.1807, allocations: 3.938 kB / 445.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1807, allocations: 0 / 445.2 MB, free: 13.55 MB / 298.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.001515/0.1823, allocations: 0.5022 MB / 445.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.1823, allocations: 8.031 kB / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.1825, allocations: 23.8 kB / 445.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004171/0.1829, allocations: 239.2 kB / 446 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.1831, allocations: 42.03 kB / 446.1 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.935e-05/0.1831, allocations: 16 kB / 446.1 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.1846, allocations: 331.3 kB / 446.4 MB, free: 12.28 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.626e-05/0.1847, allocations: 4 kB / 446.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.677e-05/0.1848, allocations: 4 kB / 446.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.1848, allocations: 7.938 kB / 446.4 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001152/0.186, allocations: 144.5 kB / 446.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001465/0.1875, allocations: 462.1 kB / 447 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.1888, allocations: 229 kB / 447.2 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.733e-05/0.1889, allocations: 7.953 kB / 447.2 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007256/0.1897, allocations: 123.5 kB / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 8.275e-06/0.1897, allocations: 0 / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.002192/0.192, allocations: 305.5 kB / 447.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.1921, allocations: 89.11 kB / 447.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/0.1924, allocations: 147 kB / 447.9 MB, free: 10.67 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.438e-05/0.1925, allocations: 29.7 kB / 447.9 MB, free: 10.63 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.1926, allocations: 174.9 kB / 448.1 MB, free: 10.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.153e-05/0.1927, allocations: 39.55 kB / 448.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.851e-05/0.1928, allocations: 8 kB / 448.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.699e-05/0.1929, allocations: 318.8 kB / 448.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005965/0.1935, allocations: 68.19 kB / 448.5 MB, free: 10.03 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006234/0.1942, allocations: 147.6 kB / 448.7 MB, free: 9.848 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006114/0.1948, allocations: 117.5 kB / 448.8 MB, free: 9.727 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.788e-06/0.1949, allocations: 0 / 448.8 MB, free: 9.727 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001473/0.1964, allocations: 295.2 kB / 449.1 MB, free: 9.426 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.131e-05/0.1965, allocations: 35.67 kB / 449.1 MB, free: 9.387 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/0.1965, allocations: 4 kB / 449.1 MB, free: 9.383 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.32e-05/0.1966, allocations: 4 kB / 449.1 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005498/0.1972, allocations: 51.91 kB / 449.1 MB, free: 9.328 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.187e-05/0.1972, allocations: 4 kB / 449.2 MB, free: 9.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005374/0.1978, allocations: 39.81 kB / 449.2 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.435e-05/0.1979, allocations: 8 kB / 449.2 MB, free: 9.277 MB / 298.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.000279/0.1982, allocations: 153.5 kB / 449.3 MB, free: 9.117 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000473/0.1987, allocations: 105.4 kB / 449.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.1988, allocations: 20.72 kB / 449.5 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.505e-06/0.1988, allocations: 0 / 449.5 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.1988, allocations: 3.984 kB / 449.5 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.1989, allocations: 4 kB / 449.5 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00186/0.2007, allocations: 0.507 MB / 450 MB, free: 8.418 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/0.2008, allocations: 4 kB / 450 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005305/0.2014, allocations: 47.89 kB / 450 MB, free: 8.367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-05/0.2014, allocations: 0 / 450 MB, free: 8.367 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.596e-05/0.2015, allocations: 8 kB / 450 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.2016, allocations: 0 / 450 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.2016, allocations: 0 / 450 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001577/0.2032, allocations: 357.4 kB / 450.4 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.982e-05/0.2033, allocations: 96.86 kB / 450.5 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.787e-05/0.2034, allocations: 8 kB / 450.5 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004898/0.2039, allocations: 27.97 kB / 450.5 MB, free: 7.836 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.2041, allocations: 15.97 kB / 450.5 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.42e-05/0.2041, allocations: 11.94 kB / 450.6 MB, free: 7.809 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001455/0.2043, allocations: 108.8 kB / 450.7 MB, free: 7.703 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.2043, allocations: 0 / 450.7 MB, free: 7.703 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007727/0.2051, allocations: 36 kB / 450.7 MB, free: 7.668 MB / 298.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.000206/0.2054, allocations: 107.3 kB / 450.8 MB, free: 7.551 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.2068, allocations: 259.3 kB / 451.1 MB, free: 7.285 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.615e-06/0.2068, allocations: 0 / 451.1 MB, free: 7.285 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004829/0.2073, allocations: 67.89 kB / 451.1 MB, free: 7.219 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007949/0.2082, allocations: 55.97 kB / 451.2 MB, free: 7.164 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.2098, allocations: 421.2 kB / 451.6 MB, free: 6.723 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.2102, allocations: 0.7325 MB / 452.3 MB, free: 5.965 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.2104, allocations: 19.44 kB / 452.3 MB, free: 5.945 MB / 298.7 MB Notification: Performance of SimCode: time 1.794e-06/0.2104, allocations: 3.938 kB / 452.3 MB, free: 5.941 MB / 298.7 MB Notification: Performance of Templates: time 0.01287/0.2233, allocations: 2.086 MB / 454.4 MB, free: 3.852 MB / 298.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)