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.0009142/0.0009142, allocations: 101.3 kB / 15.73 MB, free: 436 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 179.7 kB / 16.62 MB, free: 6.422 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.651/1.651, allocations: 205.4 MB / 222.8 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08477/0.08477, allocations: 12.61 MB / 283.7 MB, free: 8.703 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.0007489/0.000749, allocations: 24 kB / 344.5 MB, free: 21.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.114, allocations: 50.38 MB / 394.9 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.003153/0.1172, allocations: 1.613 MB / 396.5 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.1186, allocations: 0.6246 MB / 397.1 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002389/0.1189, allocations: 8 kB / 397.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.42e-05/0.119, allocations: 11.86 kB / 397.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001588/0.1191, allocations: 23.84 kB / 397.2 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005311/0.1197, allocations: 87.81 kB / 397.3 MB, free: 440 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003763/0.1201, allocations: 108.2 kB / 397.4 MB, free: 332 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002768/0.1204, allocations: 67.06 kB / 397.4 MB, free: 260 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002238/0.1206, allocations: 67.7 kB / 397.5 MB, free: 192 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.1208, allocations: 67.61 kB / 397.6 MB, free: 124 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.215e-05/0.1208, allocations: 4 kB / 397.6 MB, free: 120 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.048e-05/0.1209, allocations: 4 kB / 397.6 MB, free: 116 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.02e-05/0.1209, allocations: 31.89 kB / 397.6 MB, free: 84 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.359e-05/0.121, allocations: 49.58 kB / 397.6 MB, free: 28 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002626/0.1213, allocations: 143.9 kB / 397.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.1213, allocations: 0 / 397.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.759e-06/0.1213, allocations: 0 / 397.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.1213, allocations: 0 / 397.8 MB, free: 15.89 MB / 302.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.001255/0.1226, allocations: 0.5138 MB / 398.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.1227, allocations: 8.031 kB / 398.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.77e-05/0.1228, allocations: 19.8 kB / 398.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004048/0.1232, allocations: 227.3 kB / 398.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.586e-05/0.1233, allocations: 42.03 kB / 398.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.046e-05/0.1233, allocations: 20 kB / 398.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008403/0.1242, allocations: 334.4 kB / 398.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.1242, allocations: 4 kB / 398.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.875e-05/0.1242, allocations: 7.984 kB / 398.9 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.1242, allocations: 4 kB / 399 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004785/0.1247, allocations: 140.5 kB / 399.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008462/0.1256, allocations: 462.1 kB / 399.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000521/0.1261, allocations: 217.1 kB / 399.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.113e-05/0.1262, allocations: 16.02 kB / 399.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003551/0.1265, allocations: 119.5 kB / 399.9 MB, free: 13.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 4.038e-06/0.1266, allocations: 3.984 kB / 399.9 MB, free: 13.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.000865/0.1274, allocations: 310.2 kB / 400.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.396e-05/0.1275, allocations: 97.09 kB / 400.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001611/0.1277, allocations: 143 kB / 400.4 MB, free: 13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.1277, allocations: 29.7 kB / 400.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.123e-05/0.1278, allocations: 116.4 kB / 400.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.007e-05/0.1279, allocations: 39.53 kB / 400.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.426e-05/0.1279, allocations: 8 kB / 400.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.128, allocations: 322.8 kB / 400.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000206/0.1282, allocations: 76.19 kB / 401 MB, free: 12.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002559/0.1285, allocations: 159.2 kB / 401.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002631/0.1288, allocations: 101.7 kB / 401.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.1288, allocations: 0 / 401.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005855/0.1294, allocations: 298.8 kB / 401.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.767e-05/0.1294, allocations: 33.7 kB / 401.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.1295, allocations: 4.344 kB / 401.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.1295, allocations: 11.98 kB / 401.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002086/0.1297, allocations: 43.91 kB / 401.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.1297, allocations: 4 kB / 401.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002005/0.1299, allocations: 35.83 kB / 401.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/0.13, allocations: 15.94 kB / 401.7 MB, free: 11.65 MB / 302.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,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.0001418/0.1301, allocations: 137.6 kB / 401.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/0.1303, allocations: 109.4 kB / 401.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.051e-05/0.1304, allocations: 24.7 kB / 402 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.1304, allocations: 4 kB / 402 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1304, allocations: 0 / 402 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.1304, allocations: 0 / 402 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007804/0.1312, allocations: 0.5098 MB / 402.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1312, allocations: 0 / 402.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002104/0.1314, allocations: 43.97 kB / 402.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.1315, allocations: 4 kB / 402.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.1315, allocations: 3.984 kB / 402.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.1315, allocations: 4 kB / 402.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.1315, allocations: 0 / 402.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006631/0.1322, allocations: 357.5 kB / 402.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.48e-05/0.1323, allocations: 96.84 kB / 403 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.993e-05/0.1323, allocations: 8 kB / 403 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.1325, allocations: 15.98 kB / 403 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.319e-05/0.1326, allocations: 27.91 kB / 403 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.1326, allocations: 4 kB / 403 MB, free: 10.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001392/0.1328, allocations: 116.7 kB / 403.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1328, allocations: 4 kB / 403.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003414/0.1331, allocations: 28 kB / 403.2 MB, free: 10.06 MB / 302.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 (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.000169/0.1333, allocations: 103.2 kB / 403.3 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006535/0.134, allocations: 259 kB / 403.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.134, allocations: 0.6875 kB / 403.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002084/0.1342, allocations: 75.91 kB / 403.6 MB, free: 9.605 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004329/0.1346, allocations: 64.77 kB / 403.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008902/0.1355, allocations: 383.2 kB / 404 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000526/0.1361, allocations: 0.7325 MB / 404.8 MB, free: 8.387 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.616e-05/0.1362, allocations: 17.41 kB / 404.8 MB, free: 8.367 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.435e-05/0.1363, allocations: 19.44 kB / 404.8 MB, free: 8.348 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1363, allocations: 0 / 404.8 MB, free: 8.348 MB / 302.1 MB Notification: Performance of Templates: time 0.005548/0.1418, allocations: 1.631 MB / 406.4 MB, free: 6.715 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: