Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_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.001194/0.001194, allocations: 176.2 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.547/1.547, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0008331/0.0008331, allocations: 99.88 kB / 270.9 MB, free: 8.352 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.1316/0.1316, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004743/0.0004744, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1005, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.001842/0.1024, allocations: 1.614 MB / 444 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009432/0.1034, allocations: 0.6363 MB / 444.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.1035, allocations: 4 kB / 444.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.863e-05/0.1035, allocations: 11.86 kB / 444.6 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001605/0.1037, allocations: 11.86 kB / 444.7 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003896/0.1041, allocations: 91.84 kB / 444.7 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001843/0.1043, allocations: 172 kB / 444.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.1045, allocations: 67.06 kB / 445 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001547/0.1047, allocations: 67.7 kB / 445 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001024/0.1048, allocations: 63.67 kB / 445.1 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.838e-05/0.1048, allocations: 8 kB / 445.1 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.185e-05/0.1048, allocations: 4 kB / 445.1 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.369e-05/0.1049, allocations: 23.86 kB / 445.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.763e-05/0.1049, allocations: 57.58 kB / 445.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.1051, allocations: 143.9 kB / 445.3 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1051, allocations: 0 / 445.3 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1051, allocations: 0 / 445.3 MB, free: 13.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.1051, allocations: 0 / 445.3 MB, free: 13.46 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.0007951/0.1059, allocations: 0.5022 MB / 445.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.106, allocations: 8.031 kB / 445.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.679e-05/0.106, allocations: 19.81 kB / 445.9 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.1063, allocations: 231.2 kB / 446.1 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.927e-05/0.1064, allocations: 46.03 kB / 446.1 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.748e-05/0.1064, allocations: 12 kB / 446.1 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006502/0.107, allocations: 346.2 kB / 446.5 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1071, allocations: 4 kB / 446.5 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.318e-05/0.1071, allocations: 4 kB / 446.5 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1071, allocations: 7.984 kB / 446.5 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003983/0.1075, allocations: 148.4 kB / 446.6 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006457/0.1082, allocations: 466.1 kB / 447.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004725/0.1087, allocations: 217.1 kB / 447.3 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000232/0.1089, allocations: 109.6 kB / 447.4 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.1089, allocations: 11.98 kB / 447.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003191/0.1093, allocations: 119.3 kB / 447.5 MB, free: 11.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.1093, allocations: 4 kB / 447.6 MB, free: 11.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007613/0.11, allocations: 306.1 kB / 447.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/0.1101, allocations: 97.05 kB / 447.9 MB, free: 10.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.097e-05/0.1102, allocations: 147 kB / 448.1 MB, free: 10.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.1102, allocations: 29.7 kB / 448.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.929e-05/0.1103, allocations: 112.5 kB / 448.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.694e-05/0.1103, allocations: 39.61 kB / 448.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.056e-05/0.1103, allocations: 4 kB / 448.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.761e-05/0.1104, allocations: 326.8 kB / 448.6 MB, free: 9.938 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.1106, allocations: 72.19 kB / 448.7 MB, free: 9.867 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002006/0.1108, allocations: 146.7 kB / 448.8 MB, free: 9.688 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001979/0.111, allocations: 113.5 kB / 448.9 MB, free: 9.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.111, allocations: 4 kB / 448.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004876/0.1115, allocations: 290.7 kB / 449.2 MB, free: 9.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.1116, allocations: 37.7 kB / 449.2 MB, free: 9.227 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.1116, allocations: 8.281 kB / 449.2 MB, free: 9.219 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.1116, allocations: 8 kB / 449.3 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.1118, allocations: 47.91 kB / 449.3 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.1118, allocations: 4 kB / 449.3 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.112, allocations: 31.83 kB / 449.3 MB, free: 9.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.112, allocations: 11.98 kB / 449.3 MB, free: 9.117 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 0.0001265/0.1122, allocations: 149.5 kB / 449.5 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.1123, allocations: 109.4 kB / 449.6 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.008e-05/0.1124, allocations: 16.72 kB / 449.6 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.1124, allocations: 8 kB / 449.6 MB, free: 8.824 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.1124, allocations: 0 / 449.6 MB, free: 8.824 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1124, allocations: 11.91 kB / 449.6 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005983/0.113, allocations: 0.4982 MB / 450.1 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.113, allocations: 0 / 450.1 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001785/0.1132, allocations: 43.91 kB / 450.2 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.1132, allocations: 7.984 kB / 450.2 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.1133, allocations: 8 kB / 450.2 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.1133, allocations: 0 / 450.2 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1133, allocations: 0 / 450.2 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000478/0.1138, allocations: 339.8 kB / 450.5 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.981e-05/0.1138, allocations: 100.8 kB / 450.6 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.023e-05/0.1138, allocations: 8 kB / 450.6 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.114, allocations: 23.97 kB / 450.7 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.752e-05/0.1141, allocations: 19.98 kB / 450.7 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.1141, allocations: 7.984 kB / 450.7 MB, free: 7.672 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.304e-05/0.1142, allocations: 112.7 kB / 450.8 MB, free: 7.562 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1142, allocations: 0 / 450.8 MB, free: 7.562 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002627/0.1145, allocations: 36 kB / 450.8 MB, free: 7.527 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 0.0001268/0.1146, allocations: 99.23 kB / 450.9 MB, free: 7.418 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000514/0.1151, allocations: 262.9 kB / 451.2 MB, free: 7.148 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.1151, allocations: 4 kB / 451.2 MB, free: 7.145 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.1153, allocations: 72.62 kB / 451.3 MB, free: 7.074 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004416/0.1158, allocations: 59.95 kB / 451.3 MB, free: 7.016 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006407/0.1164, allocations: 409.9 kB / 451.7 MB, free: 6.586 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001782/0.1166, allocations: 0.7324 MB / 452.4 MB, free: 5.828 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.808e-05/0.1167, allocations: 15.44 kB / 452.5 MB, free: 5.812 MB / 298.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1167, allocations: 3.938 kB / 452.5 MB, free: 5.809 MB / 298.7 MB Notification: Performance of Templates: time 0.003314/0.12, allocations: 2.14 MB / 454.6 MB, free: 3.664 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1)