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.001293/0.001293, allocations: 99.88 kB / 16.02 MB, free: 6.352 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.001636/0.001635, allocations: 196.7 kB / 16.95 MB, free: 6.172 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.921/1.921, allocations: 205.1 MB / 222.8 MB, free: 4.691 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.07724/0.07724, allocations: 12.59 MB / 282.7 MB, free: 8.793 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.001685/0.001685, allocations: 88.39 kB / 343 MB, free: 21.1 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1136, allocations: 49.41 MB / 392.4 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.004886/0.1186, allocations: 2.242 MB / 394.6 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002731/0.1214, allocations: 1.197 MB / 395.8 MB, free: 136 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000248/0.1217, allocations: 7.938 kB / 395.8 MB, free: 128 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004985/0.1222, allocations: 87.58 kB / 395.9 MB, free: 40 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003165/0.1225, allocations: 95.89 kB / 396 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.1236, allocations: 279.6 kB / 396.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004403/0.124, allocations: 323.4 kB / 396.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002718/0.1243, allocations: 131.3 kB / 396.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.1245, allocations: 147.3 kB / 396.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001971/0.1247, allocations: 155.3 kB / 397 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.702e-05/0.1248, allocations: 24 kB / 397 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.1249, allocations: 79.89 kB / 397.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001117/0.1251, allocations: 95.69 kB / 397.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.1252, allocations: 151 kB / 397.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004578/0.1257, allocations: 386.8 kB / 397.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1257, allocations: 0 / 397.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1257, allocations: 0 / 397.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.1257, allocations: 0 / 397.7 MB, free: 14.21 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.001058/0.1268, allocations: 0.6915 MB / 398.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.1268, allocations: 12.03 kB / 398.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.788e-05/0.1269, allocations: 48.38 kB / 398.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004981/0.1274, allocations: 348.4 kB / 398.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.783e-05/0.1275, allocations: 24.92 kB / 398.9 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.055e-05/0.1275, allocations: 28.12 kB / 398.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.1286, allocations: 0.6863 MB / 399.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.1286, allocations: 0 / 399.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.478e-05/0.1286, allocations: 8 kB / 399.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.782e-05/0.1287, allocations: 12 kB / 399.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002617/0.1289, allocations: 151.7 kB / 399.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.1302, allocations: 1.144 MB / 400.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.1313, allocations: 0.688 MB / 401.6 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003923/0.1317, allocations: 241.3 kB / 401.8 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.723e-05/0.1318, allocations: 19.94 kB / 401.8 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002898/0.1321, allocations: 117.9 kB / 401.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 4.498e-06/0.1321, allocations: 0 / 401.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.001017/0.1331, allocations: 482 kB / 402.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003189/0.1334, allocations: 399.7 kB / 402.8 MB, free: 8.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005717/0.134, allocations: 437.5 kB / 403.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.318e-05/0.1341, allocations: 33.86 kB / 403.3 MB, free: 8.098 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.1342, allocations: 169 kB / 403.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.245e-05/0.1343, allocations: 47.67 kB / 403.5 MB, free: 7.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.1345, allocations: 86.12 kB / 403.6 MB, free: 7.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002161/0.1347, allocations: 354.8 kB / 403.9 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.1349, allocations: 72.83 kB / 404 MB, free: 7.359 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004325/0.1353, allocations: 358 kB / 404.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004707/0.1358, allocations: 438.6 kB / 404.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.1358, allocations: 4 kB / 404.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006375/0.1364, allocations: 424.6 kB / 405.2 MB, free: 5.895 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.1365, allocations: 11.94 kB / 405.2 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.1365, allocations: 12.97 kB / 405.2 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.807e-05/0.1365, allocations: 16 kB / 405.2 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002558/0.1368, allocations: 91.83 kB / 405.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.713e-05/0.1368, allocations: 15.94 kB / 405.3 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001924/0.137, allocations: 43.67 kB / 405.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.137, allocations: 24 kB / 405.4 MB, free: 5.684 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.0002499/0.1373, allocations: 225.5 kB / 405.6 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004163/0.1377, allocations: 296.7 kB / 405.9 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.1378, allocations: 51.28 kB / 405.9 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.54e-05/0.1379, allocations: 8 kB / 405.9 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.1379, allocations: 7.938 kB / 406 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.1379, allocations: 8.312 kB / 406 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000429/0.1383, allocations: 321.2 kB / 406.3 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.1384, allocations: 4 kB / 406.3 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002176/0.1386, allocations: 75.83 kB / 406.4 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/0.1386, allocations: 8.188 kB / 406.4 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/0.1386, allocations: 11.98 kB / 406.4 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.1386, allocations: 4 kB / 406.4 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-05/0.1387, allocations: 4 kB / 406.4 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006837/0.1394, allocations: 461.7 kB / 406.8 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.1395, allocations: 120.6 kB / 407 MB, free: 3.977 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.182e-05/0.1395, allocations: 16 kB / 407 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.1397, allocations: 15.98 kB / 407 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.1398, allocations: 15.98 kB / 407 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.58e-05/0.1398, allocations: 23.92 kB / 407 MB, free: 3.906 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003742/0.1402, allocations: 303.1 kB / 407.3 MB, free: 3.609 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1402, allocations: 0 / 407.3 MB, free: 3.609 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000433/0.1406, allocations: 79.91 kB / 407.4 MB, free: 3.531 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.0009931/0.1416, allocations: 452.6 kB / 407.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006109/0.1423, allocations: 337.8 kB / 408.2 MB, free: 2.754 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1423, allocations: 0 / 408.2 MB, free: 2.754 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.1424, allocations: 43.91 kB / 408.2 MB, free: 2.711 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008399/0.1432, allocations: 261.8 kB / 408.5 MB, free: 2.457 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001217/0.1445, allocations: 0.8456 MB / 409.3 MB, free: 1.555 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003939/0.1449, allocations: 0.8278 MB / 410.1 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001522/0.145, allocations: 55.48 kB / 410.2 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.317e-05/0.1451, allocations: 39.44 kB / 410.2 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1451, allocations: 0 / 410.2 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of Templates: time 0.009393/0.1545, allocations: 4.883 MB / 415.1 MB, free: 11.71 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)