Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.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.TestIntegerSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002805/0.002804, allocations: 182.4 kB / 16.44 MB, free: 5.707 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.179/4.179, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.001971/0.001971, allocations: 90.86 kB / 270.9 MB, free: 8.363 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.211/0.211, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009644/0.0009655, allocations: 19.98 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.1635, allocations: 50.36 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.005603/0.1692, allocations: 1.818 MB / 444.2 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004502/0.1738, allocations: 1.124 MB / 445.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003892/0.1742, allocations: 7.938 kB / 445.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007349/0.175, allocations: 87.58 kB / 445.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006301/0.1757, allocations: 87.73 kB / 445.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003266/0.179, allocations: 279.3 kB / 445.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009094/0.18, allocations: 192 kB / 445.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005707/0.1806, allocations: 113.8 kB / 446 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004389/0.1811, allocations: 103.5 kB / 446.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002826/0.1814, allocations: 119.4 kB / 446.3 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.669e-05/0.1815, allocations: 8 kB / 446.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003641/0.1818, allocations: 43.97 kB / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001597/0.182, allocations: 71.73 kB / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.1822, allocations: 81.45 kB / 446.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007388/0.1829, allocations: 283.6 kB / 446.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.183, allocations: 0 / 446.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.183, allocations: 0 / 446.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.183, allocations: 0 / 446.7 MB, free: 12.07 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.001718/0.1848, allocations: 0.6175 MB / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.536e-05/0.1849, allocations: 12.03 kB / 447.4 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002269/0.1851, allocations: 51.38 kB / 447.4 MB, free: 11.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001204/0.1864, allocations: 347.3 kB / 447.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.001e-05/0.1865, allocations: 20.56 kB / 447.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.055e-05/0.1866, allocations: 24 kB / 447.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002255/0.1889, allocations: 0.6705 MB / 448.5 MB, free: 10.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.578e-05/0.189, allocations: 7.875 kB / 448.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.498e-05/0.1891, allocations: 15.98 kB / 448.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-05/0.1892, allocations: 12 kB / 448.5 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008705/0.1907, allocations: 139.7 kB / 448.6 MB, free: 9.996 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002081/0.1928, allocations: 1.144 MB / 449.8 MB, free: 8.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001881/0.1948, allocations: 0.6921 MB / 450.5 MB, free: 7.902 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.91e-05/0.195, allocations: 20.06 kB / 450.5 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000438/0.1954, allocations: 113.9 kB / 450.6 MB, free: 7.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 7.875e-06/0.1955, allocations: 4 kB / 450.6 MB, free: 7.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.002383/0.1979, allocations: 0.5341 MB / 451.1 MB, free: 7.188 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002781/0.1982, allocations: 396.8 kB / 451.5 MB, free: 6.715 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001038/0.1993, allocations: 437.5 kB / 452 MB, free: 6.281 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.1994, allocations: 41.69 kB / 452 MB, free: 6.234 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001981/0.1997, allocations: 207.5 kB / 452.2 MB, free: 6.027 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001057/0.2007, allocations: 43.64 kB / 452.2 MB, free: 5.984 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.639e-05/0.2008, allocations: 8 kB / 452.2 MB, free: 5.977 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.201, allocations: 330.8 kB / 452.6 MB, free: 5.645 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004043/0.2014, allocations: 72.83 kB / 452.6 MB, free: 5.574 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006827/0.2021, allocations: 354 kB / 453 MB, free: 5.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000604/0.2028, allocations: 135.9 kB / 453.1 MB, free: 4.957 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.078e-05/0.2028, allocations: 7.953 kB / 453.1 MB, free: 4.949 MB / 298.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00173/0.2046, allocations: 397.5 kB / 453.5 MB, free: 4.555 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.146e-05/0.2047, allocations: 12.22 kB / 453.5 MB, free: 4.543 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.575e-05/0.2047, allocations: 8 kB / 453.5 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.639e-05/0.2048, allocations: 12 kB / 453.5 MB, free: 4.523 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007781/0.2056, allocations: 91.78 kB / 453.6 MB, free: 4.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.789e-05/0.2057, allocations: 19.92 kB / 453.7 MB, free: 4.414 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006003/0.2063, allocations: 43.62 kB / 453.7 MB, free: 4.371 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.645e-05/0.2064, allocations: 24 kB / 453.7 MB, free: 4.348 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 51 ($whenCondition1,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,ClockedSignalToSquare.y2,$CLKPRE.ClockedSignalToSquare.y2,ClockedSignalToSquare.y,ClockedSignalToSquare.u,superSample1.y,superSample1.u,subSample1.y,backSample1.y,backSample1.u,shiftSample1.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,fractionalDelay.y,fractionalDelay.u_buffer[1],fractionalDelay.u,UnitDelay1.y,UnitDelay1.u,$CLKPRE.UnitDelay1.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample3.y,shiftSample1.u,subSample1.u,assignClock2.y[3],assignClock2.y[2],assignClock2.y[1],assignClock2.u[3],assignClock2.u[2],assignClock2.u[1],integerConstant3[3].y,integerConstant3[2].y,integerConstant3[1].y,sample1.y[3],sample1.y[2],sample1.y[1],sample2.y,hold1.u,hold1.y,assignClock1.y,assignClock1.u,fractionalDelay.first) * Number of discrete states: 0 () * Number of clocked states: 4 (ClockedSignalToSquare.y2,upSample1.b_super,UnitDelay1.u,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 53 * 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.0005587/0.207, allocations: 225.4 kB / 453.9 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001112/0.2081, allocations: 297.1 kB / 454.2 MB, free: 3.824 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002589/0.2084, allocations: 55.55 kB / 454.3 MB, free: 3.762 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.436e-05/0.2085, allocations: 15.92 kB / 454.3 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.526e-05/0.2085, allocations: 4 kB / 454.3 MB, free: 3.742 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.679e-05/0.2086, allocations: 3.984 kB / 454.3 MB, free: 3.738 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007403/0.2093, allocations: 329.4 kB / 454.6 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.491e-05/0.2094, allocations: 4 kB / 454.6 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008385/0.2103, allocations: 71.86 kB / 454.7 MB, free: 3.293 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.038e-05/0.2103, allocations: 4 kB / 454.7 MB, free: 3.289 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.117e-05/0.2104, allocations: 15.98 kB / 454.7 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.426e-05/0.2104, allocations: 4 kB / 454.7 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.217e-06/0.2105, allocations: 7.938 kB / 454.7 MB, free: 3.262 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.2122, allocations: 0.5536 MB / 455.3 MB, free: 2.598 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002534/0.2125, allocations: 132.6 kB / 455.4 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001923/0.2127, allocations: 8 kB / 455.4 MB, free: 2.441 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003627/0.2131, allocations: 27.95 kB / 455.5 MB, free: 2.414 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.2133, allocations: 11.98 kB / 455.5 MB, free: 2.402 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.119e-05/0.2134, allocations: 23.92 kB / 455.5 MB, free: 2.379 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007302/0.2141, allocations: 303.1 kB / 455.8 MB, free: 2.082 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.152e-06/0.2142, allocations: 0 / 455.8 MB, free: 2.082 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001222/0.2154, allocations: 75.98 kB / 455.9 MB, free: 2.008 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 44 ($whenCondition1,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,ClockedSignalToSquare.y,hold1.y,ClockedSignalToSquare.y2,superSample1.y,ClockedSignalToSquare.u,subSample1.y,superSample1.u,backSample1.y,shiftSample1.y,backSample1.u,upSample1.y,upSample1.b_super,upSample1.u_super,fractionalDelay.y,assignClock1.u,assignClock1.y,hold1.u,sample2.y,sample1.y[1],sample1.y[2],sample1.y[3],integerConstant3[1].y,integerConstant3[2].y,integerConstant3[3].y,assignClock2.u[1],assignClock2.u[2],assignClock2.u[3],assignClock2.y[1],assignClock2.y[2],assignClock2.y[3],subSample1.u,shiftSample1.u,sample3.y,upSample1.u,upSample1.dummy,upSample1.b,UnitDelay1.u,UnitDelay1.y,fractionalDelay.u,fractionalDelay.u_buffer[1]) * Number of discrete states: 2 (integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (ClockedSignalToSquare.y2,upSample1.b_super,upSample1.b,UnitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 41 * Array equations: 1 * 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.00215/0.2176, allocations: 448.8 kB / 456.3 MB, free: 1.562 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.2192, allocations: 288.8 kB / 456.6 MB, free: 1.281 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.406e-05/0.2193, allocations: 4 kB / 456.6 MB, free: 1.277 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002566/0.2196, allocations: 40.05 kB / 456.6 MB, free: 1.238 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001833/0.2215, allocations: 234.4 kB / 456.9 MB, free: 1.012 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002931/0.2244, allocations: 0.8307 MB / 457.7 MB, free: 116 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009058/0.2254, allocations: 0.8437 MB / 458.5 MB, free: 15.24 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003309/0.2258, allocations: 43.42 kB / 458.6 MB, free: 15.2 MB / 314.7 MB Notification: Performance of SimCode: time 2.405e-06/0.2258, allocations: 4 kB / 458.6 MB, free: 15.2 MB / 314.7 MB Notification: Performance of Templates: time 0.06308/0.2889, allocations: 5.159 MB / 463.7 MB, free: 10.03 MB / 314.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe 2>&1)