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.001229/0.001229, allocations: 95.89 kB / 15.73 MB, free: 440 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00159/0.001591, allocations: 171.9 kB / 16.61 MB, free: 6.426 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.782/1.782, allocations: 205.4 MB / 222.8 MB, free: 5.668 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.08828/0.08828, allocations: 12.59 MB / 283.6 MB, free: 8.703 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.0007332/0.0007333, allocations: 24 kB / 344.5 MB, free: 21.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1391, allocations: 50.38 MB / 394.9 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.00421/0.1434, allocations: 1.827 MB / 396.7 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003255/0.1467, allocations: 1.108 MB / 397.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002508/0.147, allocations: 11.94 kB / 397.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005083/0.1475, allocations: 91.56 kB / 397.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003292/0.1478, allocations: 87.73 kB / 398 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001256/0.1491, allocations: 271.3 kB / 398.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00048/0.1496, allocations: 200 kB / 398.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003061/0.1499, allocations: 105.9 kB / 398.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000194/0.1502, allocations: 107.5 kB / 398.7 MB, free: 15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002339/0.1504, allocations: 115.4 kB / 398.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.945e-05/0.1504, allocations: 4 kB / 398.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001632/0.1506, allocations: 47.97 kB / 398.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.1507, allocations: 71.75 kB / 398.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.165e-05/0.1508, allocations: 81.45 kB / 399 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004316/0.1513, allocations: 291.6 kB / 399.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.1513, allocations: 4 kB / 399.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1513, allocations: 0 / 399.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.1513, allocations: 0 / 399.3 MB, free: 14.39 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.001339/0.1527, allocations: 0.6097 MB / 399.9 MB, free: 13.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.1527, allocations: 8.031 kB / 399.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.1529, allocations: 47.44 kB / 399.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007214/0.1536, allocations: 355.2 kB / 400.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.919e-05/0.1537, allocations: 16.56 kB / 400.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.62e-05/0.1538, allocations: 32 kB / 400.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.155, allocations: 0.6705 MB / 401 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.155, allocations: 3.938 kB / 401 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.1551, allocations: 12 kB / 401 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.756e-05/0.1551, allocations: 16 kB / 401 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003485/0.1555, allocations: 143.7 kB / 401.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00152/0.157, allocations: 1.144 MB / 402.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/0.1581, allocations: 0.6843 MB / 403 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.831e-05/0.1582, allocations: 20.05 kB / 403 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002531/0.1584, allocations: 113.9 kB / 403.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 3.958e-06/0.1585, allocations: 0 / 403.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.001061/0.1595, allocations: 0.5387 MB / 403.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003392/0.1599, allocations: 403.8 kB / 404.1 MB, free: 9.039 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006617/0.1605, allocations: 441.4 kB / 404.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.174e-05/0.1606, allocations: 37.7 kB / 404.5 MB, free: 8.559 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.1608, allocations: 169.1 kB / 404.7 MB, free: 8.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.379e-05/0.1608, allocations: 39.69 kB / 404.7 MB, free: 8.348 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.329e-05/0.1608, allocations: 8 kB / 404.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.161, allocations: 354.8 kB / 405.1 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.1612, allocations: 64.83 kB / 405.2 MB, free: 7.922 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004487/0.1616, allocations: 366 kB / 405.5 MB, free: 7.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002847/0.1619, allocations: 127.8 kB / 405.6 MB, free: 7.301 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/0.162, allocations: 7.953 kB / 405.7 MB, free: 7.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008211/0.1628, allocations: 420.8 kB / 406.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.323e-05/0.1628, allocations: 9.25 kB / 406.1 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.943e-05/0.1629, allocations: 11.94 kB / 406.1 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.372e-05/0.1629, allocations: 16 kB / 406.1 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002883/0.1632, allocations: 92.42 kB / 406.2 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.135e-05/0.1632, allocations: 15.94 kB / 406.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002745/0.1635, allocations: 47.67 kB / 406.3 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.532e-05/0.1636, allocations: 24 kB / 406.3 MB, free: 6.664 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 ($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.000334/0.1639, allocations: 225.7 kB / 406.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005391/0.1645, allocations: 301.2 kB / 406.8 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001476/0.1646, allocations: 51.28 kB / 406.8 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.7e-05/0.1647, allocations: 8 kB / 406.8 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-05/0.1647, allocations: 8 kB / 406.9 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.1647, allocations: 3.984 kB / 406.9 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006421/0.1654, allocations: 329.1 kB / 407.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/0.1654, allocations: 4 kB / 407.2 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002381/0.1656, allocations: 71.84 kB / 407.3 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-05/0.1657, allocations: 8 kB / 407.3 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.124e-05/0.1657, allocations: 8 kB / 407.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.849e-06/0.1657, allocations: 8.094 kB / 407.3 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.106e-06/0.1658, allocations: 7.938 kB / 407.3 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008292/0.1666, allocations: 0.5575 MB / 407.8 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.1667, allocations: 124.6 kB / 408 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.298e-05/0.1668, allocations: 16.12 kB / 408 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.1669, allocations: 19.89 kB / 408 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.942e-05/0.167, allocations: 15.97 kB / 408 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.145e-05/0.167, allocations: 20 kB / 408 MB, free: 4.703 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003673/0.1674, allocations: 307.1 kB / 408.3 MB, free: 4.402 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1674, allocations: 4 kB / 408.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005239/0.168, allocations: 68 kB / 408.4 MB, free: 4.332 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 (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.001188/0.1691, allocations: 451.4 kB / 408.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006686/0.1698, allocations: 297.8 kB / 409.1 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.1698, allocations: 0 / 409.1 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.17, allocations: 43.98 kB / 409.2 MB, free: 3.551 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008349/0.1708, allocations: 232.9 kB / 409.4 MB, free: 3.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.1722, allocations: 0.7941 MB / 410.2 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.1727, allocations: 0.8359 MB / 411 MB, free: 1.605 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001572/0.1728, allocations: 59.47 kB / 411.1 MB, free: 1.551 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.852e-05/0.1729, allocations: 35.44 kB / 411.1 MB, free: 1.516 MB / 302.1 MB Notification: Performance of SimCode: time 7.92e-07/0.1729, allocations: 0 / 411.1 MB, free: 1.516 MB / 302.1 MB Notification: Performance of Templates: time 0.009534/0.1825, allocations: 4.439 MB / 415.6 MB, free: 13.07 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: