Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.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.WorkInProgress.Tests.TestIntegerSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007883/0.007883, allocations: 92.27 kB / 15.91 MB, free: 6.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 196.2 kB / 16.84 MB, free: 6.188 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.852/1.852, allocations: 205.1 MB / 222.7 MB, free: 4.711 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.08812/0.08812, allocations: 12.59 MB / 282.6 MB, free: 8.855 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.001753/0.001753, allocations: 91.88 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1413, allocations: 49.39 MB / 392.2 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.00421/0.1456, allocations: 2.253 MB / 394.4 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002091/0.1477, allocations: 1.205 MB / 395.6 MB, free: 244 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001721/0.1479, allocations: 7.938 kB / 395.6 MB, free: 236 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004562/0.1484, allocations: 91.58 kB / 395.7 MB, free: 144 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002001/0.1486, allocations: 87.64 kB / 395.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009241/0.1495, allocations: 283.5 kB / 396.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003604/0.1499, allocations: 299.6 kB / 396.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000238/0.1502, allocations: 119.4 kB / 396.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.1504, allocations: 135.3 kB / 396.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.1506, allocations: 143.3 kB / 396.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.593e-05/0.1506, allocations: 12 kB / 396.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001646/0.1508, allocations: 71.89 kB / 396.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.1509, allocations: 87.69 kB / 396.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.151, allocations: 147 kB / 397.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003959/0.1514, allocations: 382.9 kB / 397.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.1515, allocations: 0 / 397.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1515, allocations: 0 / 397.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.1515, allocations: 0 / 397.5 MB, free: 14.41 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0009888/0.1525, allocations: 0.6838 MB / 398.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.1525, allocations: 15.97 kB / 398.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.409e-05/0.1526, allocations: 44.38 kB / 398.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005093/0.1531, allocations: 356.4 kB / 398.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.1532, allocations: 20.94 kB / 398.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.883e-05/0.1532, allocations: 28.12 kB / 398.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.1543, allocations: 0.6824 MB / 399.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.1543, allocations: 4 kB / 399.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.1543, allocations: 15.98 kB / 399.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.708e-05/0.1544, allocations: 8 kB / 399.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002846/0.1547, allocations: 151.7 kB / 399.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001449/0.1561, allocations: 1.14 MB / 400.6 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009691/0.1571, allocations: 0.6957 MB / 401.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003407/0.1574, allocations: 241.4 kB / 401.5 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.803e-05/0.1575, allocations: 19.94 kB / 401.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002389/0.1577, allocations: 113.9 kB / 401.7 MB, free: 9.723 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.034e-06/0.1578, allocations: 0 / 401.7 MB, free: 9.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0008708/0.1586, allocations: 474.1 kB / 402.1 MB, free: 9.254 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002462/0.1589, allocations: 403.8 kB / 402.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004642/0.1594, allocations: 433.6 kB / 402.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.285e-05/0.1594, allocations: 41.69 kB / 403 MB, free: 8.297 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.1595, allocations: 165 kB / 403.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.39e-05/0.1596, allocations: 43.69 kB / 403.2 MB, free: 8.086 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.1597, allocations: 90.06 kB / 403.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1599, allocations: 354.8 kB / 403.6 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.16, allocations: 72.83 kB / 403.7 MB, free: 7.562 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003627/0.1604, allocations: 358 kB / 404 MB, free: 7.078 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005259/0.1609, allocations: 430.6 kB / 404.5 MB, free: 6.531 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.056e-06/0.1609, allocations: 4 kB / 404.5 MB, free: 6.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006441/0.1616, allocations: 437 kB / 404.9 MB, free: 6.094 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.1616, allocations: 8 kB / 404.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-05/0.1616, allocations: 8 kB / 404.9 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.778e-05/0.1617, allocations: 12 kB / 404.9 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002704/0.1619, allocations: 92.45 kB / 405 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.055e-05/0.162, allocations: 15.94 kB / 405 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.1622, allocations: 47.62 kB / 405.1 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.173e-05/0.1622, allocations: 27.98 kB / 405.1 MB, free: 5.887 MB / 302.1 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 ($PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition1,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,ClockedSignalToSquare.y,$CLKPRE.ClockedSignalToSquare.y2,ClockedSignalToSquare.y2,ClockedSignalToSquare.u,superSample1.y,superSample1.u,subSample1.y,backSample1.y,backSample1.u,shiftSample1.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,fractionalDelay.y,fractionalDelay.u_buffer[1],fractionalDelay.u,UnitDelay1.y,$CLKPRE.UnitDelay1.u,UnitDelay1.u,$CLKPRE.upSample1.b,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.y,hold1.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002504/0.1625, allocations: 229.8 kB / 405.3 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004374/0.1629, allocations: 300.8 kB / 405.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.163, allocations: 55.27 kB / 405.7 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.965e-05/0.1631, allocations: 8 kB / 405.7 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.1631, allocations: 4 kB / 405.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.1631, allocations: 3.984 kB / 405.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003975/0.1635, allocations: 325.2 kB / 406 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.1635, allocations: 4 kB / 406 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002093/0.1637, allocations: 67.84 kB / 406.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.1637, allocations: 4 kB / 406.1 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.699e-05/0.1638, allocations: 15.98 kB / 406.1 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.1638, allocations: 4.062 kB / 406.1 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.1638, allocations: 8 kB / 406.1 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006527/0.1645, allocations: 453.7 kB / 406.5 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.92e-05/0.1646, allocations: 128.6 kB / 406.7 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.246e-05/0.1646, allocations: 12 kB / 406.7 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.1647, allocations: 12 kB / 406.7 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.579e-05/0.1648, allocations: 15.98 kB / 406.7 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.703e-05/0.1648, allocations: 19.98 kB / 406.7 MB, free: 4.117 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003031/0.1652, allocations: 307.1 kB / 407 MB, free: 3.816 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1652, allocations: 0 / 407 MB, free: 3.816 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005082/0.1657, allocations: 75.91 kB / 407.1 MB, free: 3.742 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001002/0.1667, allocations: 460.5 kB / 407.6 MB, free: 3.285 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000522/0.1672, allocations: 297.5 kB / 407.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1672, allocations: 0 / 407.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.1673, allocations: 47.98 kB / 407.9 MB, free: 2.949 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007682/0.1681, allocations: 241.8 kB / 408.1 MB, free: 2.715 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.1693, allocations: 0.8316 MB / 409 MB, free: 1.828 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007447/0.17, allocations: 0.8281 MB / 409.8 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001323/0.1702, allocations: 55.5 kB / 409.8 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.272e-05/0.1703, allocations: 43.36 kB / 409.9 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1703, allocations: 0 / 409.9 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of Templates: time 0.009701/0.18, allocations: 4.677 MB / 414.6 MB, free: 12.2 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.sim & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe 2>&1)