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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001374, allocations: 111.7 kB / 16.45 MB, free: 6.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 186.9 kB / 17.39 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.73/1.73, allocations: 205.1 MB / 223.3 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08213/0.08213, allocations: 12.58 MB / 283.2 MB, free: 15.4 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 86.98 kB / 394.2 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1363, allocations: 49.41 MB / 443.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.003815/0.1402, allocations: 1.95 MB / 445.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001688/0.1419, allocations: 0.6748 MB / 446.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002267/0.1422, allocations: 4 kB / 446.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.142e-05/0.1423, allocations: 19.73 kB / 446.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.1425, allocations: 27.73 kB / 446.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006151/0.1431, allocations: 111.8 kB / 446.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004229/0.1435, allocations: 204 kB / 446.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002898/0.1438, allocations: 112 kB / 446.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002591/0.1441, allocations: 79.7 kB / 446.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/0.1443, allocations: 91.59 kB / 446.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.711e-05/0.1443, allocations: 20 kB / 446.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.422e-05/0.1444, allocations: 16 kB / 446.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.072e-05/0.1445, allocations: 47.83 kB / 446.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000188/0.1447, allocations: 91.47 kB / 447 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003658/0.145, allocations: 211.3 kB / 447.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.145, allocations: 0 / 447.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1451, allocations: 0 / 447.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.1451, allocations: 0 / 447.2 MB, free: 12.83 MB / 334.1 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.001084/0.1462, allocations: 0.5259 MB / 447.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.1462, allocations: 16.02 kB / 447.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.05e-05/0.1463, allocations: 16.75 kB / 447.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003944/0.1467, allocations: 236.5 kB / 448 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.158e-05/0.1468, allocations: 38.59 kB / 448 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.779e-05/0.1468, allocations: 23.94 kB / 448.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007815/0.1476, allocations: 326.9 kB / 448.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.1477, allocations: 0 / 448.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.1477, allocations: 4 kB / 448.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.1477, allocations: 4 kB / 448.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004657/0.1482, allocations: 131.8 kB / 448.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008214/0.149, allocations: 473.2 kB / 449 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000527/0.1495, allocations: 209.1 kB / 449.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002592/0.1498, allocations: 101.7 kB / 449.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.932e-05/0.1499, allocations: 4 kB / 449.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003198/0.1502, allocations: 119.4 kB / 449.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.615e-06/0.1502, allocations: 0 / 449.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008507/0.1511, allocations: 293.2 kB / 449.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/0.1512, allocations: 89.11 kB / 449.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/0.1514, allocations: 154.2 kB / 449.9 MB, free: 9.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.853e-05/0.1514, allocations: 33.69 kB / 449.9 MB, free: 9.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.221e-05/0.1515, allocations: 112.6 kB / 450.1 MB, free: 9.707 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.171e-05/0.1516, allocations: 39.45 kB / 450.1 MB, free: 9.668 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001563/0.1517, allocations: 49.7 kB / 450.1 MB, free: 9.613 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.1519, allocations: 326.8 kB / 450.5 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.1521, allocations: 64.19 kB / 450.5 MB, free: 9.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002446/0.1524, allocations: 142.7 kB / 450.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005197/0.1529, allocations: 231.8 kB / 450.9 MB, free: 8.777 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.1529, allocations: 4 kB / 450.9 MB, free: 8.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006541/0.1536, allocations: 270.8 kB / 451.2 MB, free: 8.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.564e-05/0.1537, allocations: 29.7 kB / 451.2 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.1537, allocations: 4.344 kB / 451.2 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.826e-05/0.1537, allocations: 11.98 kB / 451.2 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002157/0.1539, allocations: 43.92 kB / 451.3 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/0.154, allocations: 11.92 kB / 451.3 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/0.1542, allocations: 23.89 kB / 451.3 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.754e-05/0.1542, allocations: 8 kB / 451.3 MB, free: 8.359 MB / 334.1 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 0.0001864/0.1544, allocations: 145.7 kB / 451.4 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001983/0.1546, allocations: 101.5 kB / 451.5 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.374e-05/0.1547, allocations: 28.7 kB / 451.6 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.1547, allocations: 4 kB / 451.6 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.1547, allocations: 3.938 kB / 451.6 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1547, allocations: 0 / 451.6 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008002/0.1555, allocations: 498.2 kB / 452.1 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.1555, allocations: 0 / 452.1 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001854/0.1557, allocations: 39.97 kB / 452.1 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.1557, allocations: 3.938 kB / 452.1 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.1558, allocations: 15.92 kB / 452.1 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1558, allocations: 0 / 452.1 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1558, allocations: 3.938 kB / 452.1 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006181/0.1564, allocations: 326 kB / 452.4 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001517/0.1566, allocations: 92.91 kB / 452.5 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.297e-05/0.1566, allocations: 11.94 kB / 452.5 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001742/0.1568, allocations: 19.98 kB / 452.6 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.942e-05/0.1569, allocations: 19.97 kB / 452.6 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.1569, allocations: 4 kB / 452.6 MB, free: 6.961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.89e-05/0.157, allocations: 111.9 kB / 452.7 MB, free: 6.852 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.157, allocations: 0 / 452.7 MB, free: 6.852 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.1573, allocations: 39.94 kB / 452.7 MB, free: 6.812 MB / 334.1 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 0.0001112/0.1574, allocations: 111.2 kB / 452.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005649/0.158, allocations: 236.3 kB / 453.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.158, allocations: 0.6875 kB / 453.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002171/0.1582, allocations: 71.83 kB / 453.1 MB, free: 6.383 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00046/0.1587, allocations: 76.39 kB / 453.2 MB, free: 6.309 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007748/0.1595, allocations: 329.3 kB / 453.5 MB, free: 5.957 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/0.1598, allocations: 0.7322 MB / 454.3 MB, free: 5.199 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.462e-05/0.1599, allocations: 13.42 kB / 454.3 MB, free: 5.188 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.26e-05/0.16, allocations: 15.44 kB / 454.3 MB, free: 5.172 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.16, allocations: 0 / 454.3 MB, free: 5.172 MB / 334.1 MB Notification: Performance of Templates: time 0.005365/0.1653, allocations: 2.006 MB / 456.3 MB, free: 3.164 MB / 334.1 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)