Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.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.WorkInProgress.Tests.TestClockedIntegerToTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 172.8 kB / 8.043 MB, free: 1.031 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.612/1.612, allocations: 205.3 MB / 213.8 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008513/0.0008513, allocations: 86.59 kB / 261.8 MB, free: 1.668 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.06608/0.06608, allocations: 12.58 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.696e-05/1.696e-05, allocations: 4 kB / 378.9 MB, free: 6.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2199, allocations: 50.37 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1033/0.3233, allocations: 81.19 MB / 0.4985 GB, free: 1.039 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001829/0.3235, allocations: 67.97 kB / 0.4986 GB, free: 0.9727 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01481/0.3384, allocations: 5.774 MB / 0.5042 GB, free: 11.2 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3384, allocations: 3.938 kB / 0.5042 GB, free: 11.19 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.785e-05/0.3384, allocations: 7.984 kB / 0.5042 GB, free: 11.18 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005531/0.339, allocations: 487.6 kB / 0.5047 GB, free: 10.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.339, allocations: 12.03 kB / 0.5047 GB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.725e-05/0.3391, allocations: 27.66 kB / 0.5047 GB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003791/0.3395, allocations: 285.6 kB / 0.505 GB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.402e-05/0.3395, allocations: 8 kB / 0.505 GB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.783e-05/0.3396, allocations: 11.94 kB / 0.505 GB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001379/0.3397, allocations: 47.98 kB / 0.5051 GB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002977/0.34, allocations: 159.7 kB / 0.5052 GB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.34, allocations: 0 / 0.5052 GB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.3401, allocations: 11.98 kB / 0.5052 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.3401, allocations: 4 kB / 0.5053 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000603/0.3407, allocations: 386 kB / 0.5056 GB, free: 9.617 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.3409, allocations: 117.4 kB / 0.5057 GB, free: 9.484 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.964e-05/0.341, allocations: 45.7 kB / 0.5058 GB, free: 9.434 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.341, allocations: 4 kB / 0.5058 GB, free: 9.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001731/0.3412, allocations: 83.31 kB / 0.5059 GB, free: 9.336 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.482e-06/0.3412, allocations: 4 kB / 0.5059 GB, free: 9.332 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003023/0.3415, allocations: 145.3 kB / 0.506 GB, free: 9.184 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.456e-05/0.3416, allocations: 128.5 kB / 0.5061 GB, free: 9.027 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003137/0.3419, allocations: 284.5 kB / 0.5064 GB, free: 8.746 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.671e-05/0.3419, allocations: 33.7 kB / 0.5064 GB, free: 8.707 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.259e-05/0.342, allocations: 124 kB / 0.5065 GB, free: 8.582 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.833e-05/0.3421, allocations: 35.78 kB / 0.5066 GB, free: 8.547 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.935e-06/0.3421, allocations: 0 / 0.5066 GB, free: 8.547 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.3422, allocations: 342.8 kB / 0.5069 GB, free: 8.203 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.061e-05/0.3423, allocations: 32 kB / 0.5069 GB, free: 8.172 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.3424, allocations: 118.9 kB / 0.5071 GB, free: 8.027 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.244e-05/0.3425, allocations: 35.98 kB / 0.5071 GB, free: 7.992 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3425, allocations: 4 kB / 0.5071 GB, free: 7.988 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002185/0.3428, allocations: 149.3 kB / 0.5072 GB, free: 7.836 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.3428, allocations: 11.89 kB / 0.5072 GB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3428, allocations: 0 / 0.5072 GB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.3428, allocations: 4 kB / 0.5072 GB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.3429, allocations: 28.08 kB / 0.5073 GB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.343, allocations: 4 kB / 0.5073 GB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.201e-05/0.343, allocations: 4 kB / 0.5073 GB, free: 7.785 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.3431, allocations: 12 kB / 0.5073 GB, free: 7.773 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.triggeredBooleanSampler.y,triggeredBooleanSampler.y,$whenCondition2,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,ClockedSignalToTrigger.y2,$CLKPRE.ClockedSignalToTrigger.y2,$whenCondition1,ClockedSignalToTrigger.y,$PRE.ClockedSignalToTrigger.y3,ClockedSignalToTrigger.y3,ClockedSignalToTrigger.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * 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.787e-05/0.3432, allocations: 119.2 kB / 0.5074 GB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.86e-05/0.3433, allocations: 61.42 kB / 0.5075 GB, free: 7.586 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002352/0.3435, allocations: 139.4 kB / 0.5076 GB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.3435, allocations: 8.125 kB / 0.5076 GB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.3435, allocations: 7.984 kB / 0.5076 GB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3435, allocations: 0 / 0.5076 GB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005208/0.3441, allocations: 450.9 kB / 0.508 GB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3441, allocations: 4 kB / 0.508 GB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.076e-05/0.3442, allocations: 15.92 kB / 0.5081 GB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.133e-06/0.3442, allocations: 7.953 kB / 0.5081 GB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.3442, allocations: 0 / 0.5081 GB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3442, allocations: 3.938 kB / 0.5081 GB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.3442, allocations: 4 kB / 0.5081 GB, free: 6.906 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002717/0.3445, allocations: 261.8 kB / 0.5083 GB, free: 6.625 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.345e-05/0.3446, allocations: 108.8 kB / 0.5084 GB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.814e-05/0.3446, allocations: 3.984 kB / 0.5084 GB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.686e-05/0.3448, allocations: 4 kB / 0.5084 GB, free: 6.492 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.199e-05/0.3448, allocations: 15.98 kB / 0.5085 GB, free: 6.477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.467e-05/0.3448, allocations: 8 kB / 0.5085 GB, free: 6.469 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000218/0.3451, allocations: 220.5 kB / 0.5087 GB, free: 6.254 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3451, allocations: 0 / 0.5087 GB, free: 6.254 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003414/0.3454, allocations: 56.05 kB / 0.5087 GB, free: 6.199 MB / 362.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: 11 (sample1.y,ClockedSignalToTrigger.u,ClockedSignalToTrigger.y2,ClockedSignalToTrigger.y,$whenCondition2,$whenCondition1,ClockedSignalToTrigger.y3,triggeredBooleanSampler.y,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 3 (integerTable.combiTimeTable.nextTimeEvent,ClockedSignalToTrigger.y3,integerTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0008179/0.3462, allocations: 370.1 kB / 0.5091 GB, free: 5.836 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002521/0.3465, allocations: 107.9 kB / 0.5092 GB, free: 5.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.3465, allocations: 7.938 kB / 0.5092 GB, free: 5.723 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.215e-05/0.3466, allocations: 39.94 kB / 0.5092 GB, free: 5.684 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003602/0.347, allocations: 43.81 kB / 0.5093 GB, free: 5.641 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005168/0.3475, allocations: 298.4 kB / 0.5096 GB, free: 5.324 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.3479, allocations: 0.756 MB / 0.5103 GB, free: 4.535 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.151e-05/0.348, allocations: 29.84 kB / 0.5103 GB, free: 4.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.784e-05/0.348, allocations: 31.42 kB / 0.5104 GB, free: 4.473 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.348, allocations: 0 / 0.5104 GB, free: 4.473 MB / 362.7 MB Notification: Performance of Templates: time 0.005878/0.3539, allocations: 2.706 MB / 0.513 GB, free: 1.77 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.sim & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe 2>&1)