Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_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.00268/0.00268, allocations: 186.9 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.046/4.046, allocations: 205.4 MB / 222.6 MB, free: 13.75 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.002115/0.002114, allocations: 102.8 kB / 270.9 MB, free: 13.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1836/0.1836, allocations: 12.58 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009901/0.0009904, allocations: 14.12 kB / 392 MB, free: 54.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1607/0.1618, allocations: 50.37 MB / 442.3 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger): time 0.003935/0.1658, allocations: 1.556 MB / 443.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003198/0.1691, allocations: 0.9447 MB / 444.8 MB, free: 9.113 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002578/0.1694, allocations: 0 / 444.8 MB, free: 9.113 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005236/0.17, allocations: 59.78 kB / 444.9 MB, free: 9.055 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004661/0.1705, allocations: 79.7 kB / 445 MB, free: 8.977 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001564/0.1721, allocations: 192.2 kB / 445.2 MB, free: 8.793 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000483/0.1726, allocations: 115.7 kB / 445.3 MB, free: 8.68 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.1729, allocations: 33.52 kB / 445.3 MB, free: 8.645 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00022/0.1731, allocations: 59.77 kB / 445.4 MB, free: 8.586 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002785/0.1734, allocations: 75.67 kB / 445.4 MB, free: 8.512 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.103e-05/0.1735, allocations: 4 kB / 445.4 MB, free: 8.508 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003299/0.1738, allocations: 31.98 kB / 445.5 MB, free: 8.477 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.174, allocations: 51.81 kB / 445.5 MB, free: 8.426 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.1741, allocations: 53.58 kB / 445.6 MB, free: 8.367 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001136/0.1753, allocations: 184.5 kB / 445.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.1754, allocations: 0 / 445.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.178e-06/0.1754, allocations: 0 / 445.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.1754, allocations: 0 / 445.8 MB, free: 8.188 MB / 282.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.001588/0.177, allocations: 0.5 MB / 446.3 MB, free: 7.633 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.466e-05/0.1771, allocations: 8.031 kB / 446.3 MB, free: 7.625 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002186/0.1773, allocations: 23.72 kB / 446.3 MB, free: 7.602 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007193/0.1781, allocations: 273.5 kB / 446.6 MB, free: 7.297 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.114e-05/0.1782, allocations: 11.98 kB / 446.6 MB, free: 7.285 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.394e-05/0.1782, allocations: 12 kB / 446.6 MB, free: 7.273 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.1795, allocations: 170.7 kB / 446.7 MB, free: 7.082 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.1796, allocations: 0 / 446.7 MB, free: 7.082 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.566e-05/0.1797, allocations: 15.89 kB / 446.8 MB, free: 7.066 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.1797, allocations: 0 / 446.8 MB, free: 7.066 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003397/0.1801, allocations: 47.91 kB / 446.8 MB, free: 7.02 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.1818, allocations: 409.4 kB / 447.2 MB, free: 6.566 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006471/0.1825, allocations: 125.4 kB / 447.3 MB, free: 6.426 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.303e-05/0.1826, allocations: 7.984 kB / 447.3 MB, free: 6.418 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004089/0.1831, allocations: 87.31 kB / 447.4 MB, free: 6.32 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 5.059e-06/0.1831, allocations: 0 / 447.4 MB, free: 6.32 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.001057/0.1842, allocations: 181.4 kB / 447.6 MB, free: 6.137 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.1844, allocations: 144.4 kB / 447.7 MB, free: 5.965 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007303/0.1851, allocations: 321 kB / 448.1 MB, free: 5.641 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.566e-05/0.1852, allocations: 29.7 kB / 448.1 MB, free: 5.605 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.1854, allocations: 186.4 kB / 448.3 MB, free: 5.422 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.1855, allocations: 31.84 kB / 448.3 MB, free: 5.391 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.197e-05/0.1856, allocations: 4 kB / 448.3 MB, free: 5.387 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.1857, allocations: 322.8 kB / 448.6 MB, free: 5.062 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002718/0.186, allocations: 35.97 kB / 448.7 MB, free: 5.027 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003067/0.1863, allocations: 116.5 kB / 448.8 MB, free: 4.883 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002642/0.1866, allocations: 43.94 kB / 448.8 MB, free: 4.84 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.1867, allocations: 0 / 448.8 MB, free: 4.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006872/0.1874, allocations: 153.5 kB / 449 MB, free: 4.684 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.407e-05/0.1874, allocations: 4 kB / 449 MB, free: 4.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.1875, allocations: 4 kB / 449 MB, free: 4.676 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.831e-05/0.1875, allocations: 4.156 kB / 449 MB, free: 4.672 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002971/0.1878, allocations: 31.92 kB / 449 MB, free: 4.641 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.1879, allocations: 0 / 449 MB, free: 4.641 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002915/0.1882, allocations: 15.84 kB / 449 MB, free: 4.625 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.477e-05/0.1882, allocations: 8.375 kB / 449 MB, free: 4.617 MB / 282.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 () * Number of clocked states: 1 (ClockedSignalToTrigger.y2) * 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 0.001529/0.1898, allocations: 167.8 kB / 449.2 MB, free: 4.441 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002921/0.1901, allocations: 65.41 kB / 449.3 MB, free: 4.371 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001339/0.1903, allocations: 25.7 kB / 449.3 MB, free: 4.348 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.1903, allocations: 7.938 kB / 449.3 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.1903, allocations: 4 kB / 449.3 MB, free: 4.336 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.1903, allocations: 0 / 449.3 MB, free: 4.336 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001259/0.1916, allocations: 470.3 kB / 449.7 MB, free: 3.82 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.1917, allocations: 0 / 449.7 MB, free: 3.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001748/0.1919, allocations: 11.94 kB / 449.8 MB, free: 3.809 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.255e-05/0.1919, allocations: 4.281 kB / 449.8 MB, free: 3.805 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.085e-05/0.192, allocations: 7.984 kB / 449.8 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.212e-06/0.192, allocations: 0 / 449.8 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.192, allocations: 4 kB / 449.8 MB, free: 3.793 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006847/0.1927, allocations: 269.9 kB / 450 MB, free: 3.504 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.1929, allocations: 104.8 kB / 450.1 MB, free: 3.383 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.234e-05/0.193, allocations: 11.88 kB / 450.2 MB, free: 3.371 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000305/0.1933, allocations: 12.11 kB / 450.2 MB, free: 3.359 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.1935, allocations: 7.984 kB / 450.2 MB, free: 3.352 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.129e-05/0.1935, allocations: 15.95 kB / 450.2 MB, free: 3.336 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005325/0.1941, allocations: 236.4 kB / 450.4 MB, free: 3.102 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.1941, allocations: 0 / 450.4 MB, free: 3.102 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008826/0.195, allocations: 39.98 kB / 450.5 MB, free: 3.062 MB / 282.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) * Number of clocked states: 1 (ClockedSignalToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.00205/0.1971, allocations: 422.8 kB / 450.9 MB, free: 2.645 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007852/0.1981, allocations: 108 kB / 451 MB, free: 2.539 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/0.1981, allocations: 8.125 kB / 451 MB, free: 2.531 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002366/0.1984, allocations: 35.97 kB / 451 MB, free: 2.496 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009063/0.1993, allocations: 64.38 kB / 451.1 MB, free: 2.438 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001514/0.2009, allocations: 437.1 kB / 451.5 MB, free: 1.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.2014, allocations: 0.7479 MB / 452.3 MB, free: 1.207 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001794/0.2016, allocations: 27.42 kB / 452.3 MB, free: 1.18 MB / 282.7 MB Notification: Performance of SimCode: time 1.643e-06/0.2016, allocations: 0 / 452.3 MB, free: 1.18 MB / 282.7 MB Notification: Performance of Templates: time 0.01339/0.215, allocations: 3.069 MB / 455.4 MB, free: 14.11 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe 2>&1)