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.001105/0.001105, allocations: 172.5 kB / 16.76 MB, free: 5.055 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.286/1.286, allocations: 205 MB / 222.5 MB, free: 9.152 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.0007753/0.0007751, allocations: 101.7 kB / 270.5 MB, free: 8.672 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.06969/0.06969, allocations: 12.56 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003753/0.0003754, allocations: 16 kB / 391.7 MB, free: 66.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06684/0.06723, allocations: 49.98 MB / 441.7 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.001554/0.06882, allocations: 1.681 MB / 443.4 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007681/0.0696, allocations: 0.6593 MB / 444 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.249e-05/0.06969, allocations: 4 kB / 444 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.476e-05/0.06975, allocations: 11.86 kB / 444.1 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.259e-05/0.06985, allocations: 19.88 kB / 444.1 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002945/0.07015, allocations: 99.84 kB / 444.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001323/0.07029, allocations: 184 kB / 444.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.07044, allocations: 84.31 kB / 444.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.07055, allocations: 63.69 kB / 444.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.605e-05/0.07064, allocations: 67.64 kB / 444.6 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.492e-05/0.07067, allocations: 4 kB / 444.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.665e-05/0.07069, allocations: 4 kB / 444.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.864e-05/0.07073, allocations: 35.83 kB / 444.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.272e-05/0.07078, allocations: 63.55 kB / 444.7 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001108/0.0709, allocations: 147.9 kB / 444.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.07091, allocations: 0 / 444.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.07092, allocations: 0 / 444.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.07093, allocations: 0 / 444.8 MB, free: 13.25 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.0005977/0.07153, allocations: 0.5023 MB / 445.3 MB, free: 12.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.813e-05/0.07156, allocations: 8.031 kB / 445.3 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.023e-05/0.07162, allocations: 20.75 kB / 445.3 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001719/0.0718, allocations: 232.5 kB / 445.6 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.987e-05/0.07186, allocations: 38.59 kB / 445.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.404e-05/0.07189, allocations: 27.86 kB / 445.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005675/0.07246, allocations: 351.6 kB / 446 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.07248, allocations: 4 kB / 446 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.07251, allocations: 4 kB / 446 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.07252, allocations: 4 kB / 446 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003635/0.07288, allocations: 151.8 kB / 446.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004856/0.07338, allocations: 465.2 kB / 446.6 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004186/0.07381, allocations: 213.1 kB / 446.8 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.07404, allocations: 117.6 kB / 446.9 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.07407, allocations: 4 kB / 446.9 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002863/0.07437, allocations: 131.5 kB / 447 MB, free: 10.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.754e-06/0.07438, allocations: 0 / 447 MB, free: 10.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007155/0.0751, allocations: 298.1 kB / 447.3 MB, free: 10.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.07516, allocations: 89.05 kB / 447.4 MB, free: 10.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.37e-05/0.07526, allocations: 154.4 kB / 447.6 MB, free: 10.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.07529, allocations: 29.7 kB / 447.6 MB, free: 10.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.522e-05/0.07535, allocations: 116.4 kB / 447.7 MB, free: 10.08 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.636e-05/0.07538, allocations: 39.61 kB / 447.8 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/0.07543, allocations: 33.7 kB / 447.8 MB, free: 10 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.425e-05/0.07549, allocations: 326.8 kB / 448.1 MB, free: 9.672 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.07567, allocations: 72.12 kB / 448.2 MB, free: 9.602 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.07588, allocations: 151.6 kB / 448.3 MB, free: 9.418 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000374/0.07626, allocations: 253.9 kB / 448.6 MB, free: 9.129 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.07628, allocations: 0 / 448.6 MB, free: 9.129 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004651/0.07675, allocations: 291.2 kB / 448.9 MB, free: 8.832 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.07678, allocations: 31.58 kB / 448.9 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.07679, allocations: 4 kB / 448.9 MB, free: 8.793 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.07681, allocations: 4 kB / 448.9 MB, free: 8.789 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.07699, allocations: 51.91 kB / 448.9 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.07701, allocations: 11.92 kB / 449 MB, free: 8.727 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.07717, allocations: 35.83 kB / 449 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.0772, allocations: 8 kB / 449 MB, free: 8.684 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,$CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition2,rotationalClock.less.y,trigger_interval_input.count,$PRE.trigger_interval_input.count,trigger_interval_input.T_start,$PRE.trigger_interval_input.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.754e-05/0.07729, allocations: 149.7 kB / 449.1 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.07744, allocations: 109.4 kB / 449.3 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.794e-05/0.0775, allocations: 24.7 kB / 449.3 MB, free: 8.391 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.0775, allocations: 4 kB / 449.3 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.07751, allocations: 3.938 kB / 449.3 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.07752, allocations: 3.938 kB / 449.3 MB, free: 8.379 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005548/0.07808, allocations: 0.4944 MB / 449.8 MB, free: 7.828 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.0781, allocations: 4 kB / 449.8 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001682/0.07827, allocations: 39.91 kB / 449.8 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.07828, allocations: 7.938 kB / 449.8 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.0783, allocations: 7.984 kB / 449.8 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.07831, allocations: 8 kB / 449.8 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.07832, allocations: 0 / 449.8 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004534/0.07877, allocations: 339.9 kB / 450.2 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.43e-05/0.07881, allocations: 92.94 kB / 450.3 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.971e-05/0.07884, allocations: 11.94 kB / 450.3 MB, free: 7.289 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001687/0.07902, allocations: 23.98 kB / 450.3 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.546e-05/0.07908, allocations: 15.97 kB / 450.3 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-05/0.0791, allocations: 8 kB / 450.3 MB, free: 7.242 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.73e-05/0.07915, allocations: 115.9 kB / 450.4 MB, free: 7.129 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07916, allocations: 0 / 450.4 MB, free: 7.129 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002581/0.07942, allocations: 39.91 kB / 450.5 MB, free: 7.09 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.892e-05/0.0795, allocations: 107.2 kB / 450.6 MB, free: 6.973 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004526/0.07996, allocations: 255.8 kB / 450.8 MB, free: 6.711 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.07997, allocations: 4.062 kB / 450.8 MB, free: 6.707 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.08016, allocations: 67.95 kB / 450.9 MB, free: 6.641 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.08053, allocations: 82 kB / 451 MB, free: 6.562 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005675/0.08111, allocations: 408.8 kB / 451.4 MB, free: 6.129 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001232/0.08125, allocations: 0.7286 MB / 452.1 MB, free: 5.375 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.849e-05/0.08131, allocations: 19.44 kB / 452.1 MB, free: 5.355 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.08132, allocations: 0 / 452.1 MB, free: 5.355 MB / 298.7 MB Notification: Performance of Templates: time 0.002865/0.08419, allocations: 2.145 MB / 454.3 MB, free: 3.207 MB / 298.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)