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.000925/0.000925, allocations: 174.2 kB / 16.8 MB, free: 5.012 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.314/1.314, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0007389/0.0007388, allocations: 88.23 kB / 271.3 MB, free: 8.254 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.07467/0.07467, allocations: 12.58 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003566, allocations: 15.94 kB / 393.3 MB, free: 65.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07378/0.07415, allocations: 50.38 MB / 443.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.001752/0.07596, allocations: 1.661 MB / 445.3 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009106/0.0769, allocations: 0.6476 MB / 446 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.585e-05/0.07701, allocations: 0 / 446 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.209e-05/0.07706, allocations: 11.86 kB / 446 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.07717, allocations: 27.84 kB / 446 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003578/0.07753, allocations: 99.84 kB / 446.1 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001473/0.07769, allocations: 188 kB / 446.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000166/0.07786, allocations: 84.33 kB / 446.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.078, allocations: 59.7 kB / 446.5 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.717e-05/0.0781, allocations: 71.61 kB / 446.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.471e-05/0.07813, allocations: 4 kB / 446.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.015e-05/0.07816, allocations: 8 kB / 446.5 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.245e-05/0.07819, allocations: 31.84 kB / 446.6 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.668e-05/0.07827, allocations: 93.23 kB / 446.7 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001282/0.0784, allocations: 143.9 kB / 446.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.07841, allocations: 0 / 446.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.07842, allocations: 0 / 446.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.07843, allocations: 3.938 kB / 446.8 MB, free: 12.29 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.0007078/0.07914, allocations: 0.5062 MB / 447.3 MB, free: 11.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.07918, allocations: 8.031 kB / 447.3 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.697e-05/0.07925, allocations: 20.75 kB / 447.3 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001933/0.07945, allocations: 232.5 kB / 447.6 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.787e-05/0.07951, allocations: 38.59 kB / 447.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.433e-05/0.07954, allocations: 19.94 kB / 447.6 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005929/0.08014, allocations: 341.5 kB / 448 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.08016, allocations: 0 / 448 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.08019, allocations: 4 kB / 448 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.08021, allocations: 11.94 kB / 448 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003842/0.0806, allocations: 151.8 kB / 448.1 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005461/0.08115, allocations: 473.2 kB / 448.6 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004331/0.0816, allocations: 213.1 kB / 448.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002193/0.08183, allocations: 117.6 kB / 448.9 MB, free: 9.984 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.08186, allocations: 8.062 kB / 448.9 MB, free: 9.977 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002899/0.08216, allocations: 127.5 kB / 449 MB, free: 9.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.08217, allocations: 4 kB / 449 MB, free: 9.836 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007265/0.0829, allocations: 302 kB / 449.3 MB, free: 9.535 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.08296, allocations: 93.16 kB / 449.4 MB, free: 9.426 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.999e-05/0.08306, allocations: 150.4 kB / 449.6 MB, free: 9.266 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.08309, allocations: 29.7 kB / 449.6 MB, free: 9.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.971e-05/0.08314, allocations: 116.4 kB / 449.7 MB, free: 9.113 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.572e-05/0.08318, allocations: 35.55 kB / 449.8 MB, free: 9.078 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.184e-05/0.08319, allocations: 8 kB / 449.8 MB, free: 9.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.786e-05/0.08325, allocations: 326.8 kB / 450.1 MB, free: 8.742 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.08343, allocations: 72.12 kB / 450.1 MB, free: 8.672 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.08363, allocations: 155.6 kB / 450.3 MB, free: 8.484 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003519/0.08399, allocations: 251.7 kB / 450.5 MB, free: 8.195 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.084, allocations: 0 / 450.5 MB, free: 8.195 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004801/0.08449, allocations: 286.9 kB / 450.8 MB, free: 7.902 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.915e-05/0.08453, allocations: 34.05 kB / 450.9 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.08454, allocations: 8 kB / 450.9 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.08456, allocations: 4 kB / 450.9 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/0.08476, allocations: 47.91 kB / 450.9 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.08478, allocations: 11.92 kB / 450.9 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.08495, allocations: 31.83 kB / 451 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.205e-05/0.08498, allocations: 12 kB / 451 MB, free: 7.75 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001029/0.08509, allocations: 141.7 kB / 451.1 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.08525, allocations: 113.4 kB / 451.2 MB, free: 7.484 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.038e-05/0.0853, allocations: 20.7 kB / 451.2 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.08531, allocations: 4 kB / 451.2 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.08533, allocations: 7.938 kB / 451.3 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.08534, allocations: 4 kB / 451.3 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005968/0.08594, allocations: 0.4983 MB / 451.8 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.08595, allocations: 0 / 451.8 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001808/0.08614, allocations: 47.91 kB / 451.8 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.08615, allocations: 7.938 kB / 451.8 MB, free: 6.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.08617, allocations: 7.984 kB / 451.8 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.08618, allocations: 0 / 451.8 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.08619, allocations: 4 kB / 451.8 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004779/0.08667, allocations: 347.7 kB / 452.2 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.924e-05/0.08671, allocations: 92.94 kB / 452.3 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.117e-05/0.08675, allocations: 11.94 kB / 452.3 MB, free: 6.348 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.08694, allocations: 19.98 kB / 452.3 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.069e-05/0.08701, allocations: 19.97 kB / 452.3 MB, free: 6.309 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/0.08703, allocations: 8 kB / 452.3 MB, free: 6.301 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.995e-05/0.08708, allocations: 112 kB / 452.4 MB, free: 6.191 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08709, allocations: 0 / 452.4 MB, free: 6.191 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002644/0.08736, allocations: 35.91 kB / 452.5 MB, free: 6.156 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 8.979e-05/0.08745, allocations: 107.1 kB / 452.6 MB, free: 6.039 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004704/0.08793, allocations: 255.2 kB / 452.8 MB, free: 5.777 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.08794, allocations: 0.6875 kB / 452.8 MB, free: 5.777 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001676/0.08812, allocations: 75.89 kB / 452.9 MB, free: 5.703 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.08852, allocations: 67.73 kB / 453 MB, free: 5.637 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006363/0.08917, allocations: 421 kB / 453.4 MB, free: 5.195 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001407/0.08932, allocations: 0.7286 MB / 454.1 MB, free: 4.441 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.515e-05/0.08939, allocations: 15.44 kB / 454.1 MB, free: 4.426 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.0894, allocations: 4 kB / 454.1 MB, free: 4.422 MB / 298.7 MB Notification: Performance of Templates: time 0.003047/0.09245, allocations: 2.157 MB / 456.3 MB, free: 2.262 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)