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.001112/0.001112, allocations: 175.3 kB / 16.45 MB, free: 5.684 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.307/1.307, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0007505/0.0007506, allocations: 97.81 kB / 270.9 MB, free: 8.348 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.09433/0.09433, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003624, allocations: 19.98 kB / 392.7 MB, free: 66.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07263/0.07301, allocations: 50.37 MB / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.001756/0.0748, allocations: 1.622 MB / 444.7 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008155/0.07564, allocations: 0.6363 MB / 445.3 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.07577, allocations: 3.938 kB / 445.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.327e-05/0.0758, allocations: 11.92 kB / 445.3 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.32e-05/0.0759, allocations: 7.875 kB / 445.3 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003276/0.07624, allocations: 87.83 kB / 445.4 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000144/0.07639, allocations: 172 kB / 445.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000143/0.07654, allocations: 75.05 kB / 445.6 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.07665, allocations: 67.64 kB / 445.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.2e-05/0.07675, allocations: 63.69 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.754e-05/0.07678, allocations: 4 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.835e-05/0.0768, allocations: 4 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.495e-05/0.07684, allocations: 31.84 kB / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.676e-05/0.07688, allocations: 49.64 kB / 445.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.077, allocations: 139.9 kB / 446 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.07701, allocations: 0 / 446 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.07702, allocations: 0 / 446 MB, free: 12.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.449e-06/0.07703, allocations: 0 / 446 MB, free: 12.79 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.0006457/0.07768, allocations: 0.5138 MB / 446.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.903e-05/0.07772, allocations: 8.031 kB / 446.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.871e-05/0.07777, allocations: 19.81 kB / 446.5 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002043/0.07798, allocations: 227.2 kB / 446.8 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.471e-05/0.07805, allocations: 41.97 kB / 446.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.852e-05/0.07808, allocations: 16 kB / 446.8 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005777/0.07866, allocations: 341.3 kB / 447.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.07868, allocations: 0 / 447.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.177e-05/0.07871, allocations: 8 kB / 447.2 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.07872, allocations: 4 kB / 447.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003873/0.07912, allocations: 152.4 kB / 447.3 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000547/0.07967, allocations: 466 kB / 447.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00046/0.08015, allocations: 217.1 kB / 448 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002223/0.08038, allocations: 109.6 kB / 448.1 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.08042, allocations: 16.05 kB / 448.1 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002792/0.0807, allocations: 127.4 kB / 448.2 MB, free: 10.35 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.673e-06/0.08071, allocations: 0 / 448.2 MB, free: 10.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007049/0.08143, allocations: 301.3 kB / 448.5 MB, free: 10.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/0.08148, allocations: 93.05 kB / 448.6 MB, free: 9.941 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.539e-05/0.08158, allocations: 147 kB / 448.8 MB, free: 9.785 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.0816, allocations: 29.7 kB / 448.8 MB, free: 9.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.35e-05/0.08165, allocations: 112.4 kB / 448.9 MB, free: 9.637 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.433e-05/0.08168, allocations: 39.55 kB / 448.9 MB, free: 9.598 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.026e-05/0.0817, allocations: 4 kB / 448.9 MB, free: 9.594 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.723e-05/0.08175, allocations: 326.8 kB / 449.3 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.08193, allocations: 72.19 kB / 449.3 MB, free: 9.195 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.08214, allocations: 150.7 kB / 449.5 MB, free: 9.012 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.08234, allocations: 113.6 kB / 449.6 MB, free: 8.895 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.08235, allocations: 0 / 449.6 MB, free: 8.895 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004725/0.08282, allocations: 294.7 kB / 449.9 MB, free: 8.594 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.08286, allocations: 33.7 kB / 449.9 MB, free: 8.555 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.08287, allocations: 4.344 kB / 449.9 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.08289, allocations: 8 kB / 449.9 MB, free: 8.543 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.08308, allocations: 47.91 kB / 450 MB, free: 8.496 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.08309, allocations: 4 kB / 450 MB, free: 8.492 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001651/0.08326, allocations: 35.83 kB / 450 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.08329, allocations: 15.92 kB / 450 MB, free: 8.441 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 9.738e-05/0.08339, allocations: 141.6 kB / 450.2 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.08354, allocations: 110.2 kB / 450.3 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.98e-05/0.0836, allocations: 20.72 kB / 450.3 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.08361, allocations: 4 kB / 450.3 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.08362, allocations: 4 kB / 450.3 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.08363, allocations: 3.984 kB / 450.3 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005857/0.08422, allocations: 0.506 MB / 450.8 MB, free: 7.586 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.08423, allocations: 0 / 450.8 MB, free: 7.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000173/0.08441, allocations: 39.91 kB / 450.8 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.08442, allocations: 11.98 kB / 450.8 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.08444, allocations: 4 kB / 450.9 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.08445, allocations: 4 kB / 450.9 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.08446, allocations: 0 / 450.9 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000465/0.08493, allocations: 347.9 kB / 451.2 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.743e-05/0.08496, allocations: 96.81 kB / 451.3 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.847e-05/0.085, allocations: 8 kB / 451.3 MB, free: 7.047 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/0.08518, allocations: 23.97 kB / 451.3 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.842e-05/0.08525, allocations: 15.98 kB / 451.3 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.08527, allocations: 11.98 kB / 451.3 MB, free: 6.996 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.678e-05/0.08532, allocations: 104.8 kB / 451.5 MB, free: 6.895 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08533, allocations: 0 / 451.5 MB, free: 6.895 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002468/0.08558, allocations: 36 kB / 451.5 MB, free: 6.859 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 9.34e-05/0.08568, allocations: 111.2 kB / 451.6 MB, free: 6.738 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004661/0.08615, allocations: 259.1 kB / 451.8 MB, free: 6.473 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.08616, allocations: 0 / 451.8 MB, free: 6.473 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.08634, allocations: 72.64 kB / 451.9 MB, free: 6.402 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003854/0.08673, allocations: 60.14 kB / 452 MB, free: 6.344 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000596/0.08734, allocations: 412.9 kB / 452.4 MB, free: 5.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001335/0.08748, allocations: 0.7363 MB / 453.1 MB, free: 5.148 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.986e-05/0.08755, allocations: 19.44 kB / 453.1 MB, free: 5.129 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.08756, allocations: 0 / 453.1 MB, free: 5.129 MB / 298.7 MB Notification: Performance of Templates: time 0.002916/0.09048, allocations: 2.133 MB / 455.3 MB, free: 2.992 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)