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.001042/0.001043, allocations: 96.7 kB / 15.74 MB, free: 424 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.001617/0.001616, allocations: 172.5 kB / 16.62 MB, free: 6.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.4 MB / 222.8 MB, free: 5.613 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.1/0.1, allocations: 12.6 MB / 283.7 MB, free: 8.688 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.0008028/0.0008031, allocations: 23.98 kB / 344.5 MB, free: 21.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1205, allocations: 50.39 MB / 394.9 MB, free: 2.785 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.002997/0.1236, allocations: 1.822 MB / 396.7 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002036/0.1257, allocations: 1.151 MB / 397.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002203/0.1259, allocations: 11.94 kB / 397.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004503/0.1264, allocations: 83.64 kB / 398 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000234/0.1266, allocations: 83.64 kB / 398.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008171/0.1275, allocations: 263.5 kB / 398.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000323/0.1278, allocations: 287.6 kB / 398.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002331/0.128, allocations: 113.8 kB / 398.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.1282, allocations: 111.4 kB / 398.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001745/0.1284, allocations: 115.4 kB / 398.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.835e-05/0.1284, allocations: 8 kB / 398.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.1286, allocations: 55.91 kB / 399 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.985e-05/0.1287, allocations: 75.73 kB / 399.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.41e-05/0.1288, allocations: 77.45 kB / 399.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003513/0.1291, allocations: 279.7 kB / 399.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.1292, allocations: 0 / 399.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1292, allocations: 4 kB / 399.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1292, allocations: 0 / 399.4 MB, free: 14.24 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.0008695/0.1301, allocations: 0.6213 MB / 400 MB, free: 13.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.1301, allocations: 12.03 kB / 400.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.843e-05/0.1302, allocations: 43.44 kB / 400.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00044/0.1307, allocations: 347.3 kB / 400.4 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/0.1307, allocations: 20.56 kB / 400.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.601e-05/0.1308, allocations: 27.98 kB / 400.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.1318, allocations: 0.6705 MB / 401.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.1318, allocations: 7.938 kB / 401.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.1319, allocations: 12 kB / 401.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.036e-05/0.1319, allocations: 8 kB / 401.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002796/0.1322, allocations: 147.7 kB / 401.3 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001319/0.1335, allocations: 1.156 MB / 402.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009843/0.1345, allocations: 0.6804 MB / 403.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003759/0.1349, allocations: 237.6 kB / 403.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.644e-05/0.135, allocations: 20.05 kB / 403.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002267/0.1352, allocations: 113.9 kB / 403.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.234e-06/0.1352, allocations: 7.938 kB / 403.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0008996/0.1361, allocations: 469.3 kB / 404 MB, free: 9.188 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002442/0.1364, allocations: 400.8 kB / 404.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004983/0.1369, allocations: 441.4 kB / 404.8 MB, free: 8.273 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.984e-05/0.1369, allocations: 37.64 kB / 404.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.1371, allocations: 165 kB / 405 MB, free: 8.062 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.95e-05/0.1371, allocations: 51.61 kB / 405.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.38e-05/0.1371, allocations: 8 kB / 405.1 MB, free: 8.004 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.1373, allocations: 354.8 kB / 405.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.1375, allocations: 72.83 kB / 405.5 MB, free: 7.578 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003186/0.1378, allocations: 358 kB / 405.8 MB, free: 7.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002188/0.138, allocations: 135.8 kB / 406 MB, free: 6.957 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.138, allocations: 4 kB / 406 MB, free: 6.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006555/0.1387, allocations: 417.3 kB / 406.4 MB, free: 6.539 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.1387, allocations: 21.22 kB / 406.4 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.1388, allocations: 8 kB / 406.4 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.795e-05/0.1388, allocations: 12 kB / 406.4 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002552/0.139, allocations: 87.83 kB / 406.5 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.738e-05/0.1391, allocations: 19.92 kB / 406.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002199/0.1393, allocations: 43.67 kB / 406.6 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.895e-05/0.1393, allocations: 24 kB / 406.6 MB, free: 6.328 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.0002527/0.1396, allocations: 229.4 kB / 406.8 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004194/0.14, allocations: 288.9 kB / 407.1 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.1401, allocations: 55.27 kB / 407.2 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.01e-05/0.1402, allocations: 8 kB / 407.2 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.1402, allocations: 4 kB / 407.2 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.1402, allocations: 7.984 kB / 407.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004238/0.1406, allocations: 329.3 kB / 407.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.1407, allocations: 4.312 kB / 407.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002094/0.1409, allocations: 71.89 kB / 407.6 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.164e-06/0.1409, allocations: 8.328 kB / 407.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.1409, allocations: 8 kB / 407.6 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.1409, allocations: 15.88 kB / 407.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1409, allocations: 0 / 407.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006398/0.1416, allocations: 461.8 kB / 408.1 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.1417, allocations: 128.6 kB / 408.2 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.544e-05/0.1418, allocations: 16 kB / 408.2 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.1419, allocations: 11.98 kB / 408.2 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.494e-05/0.1419, allocations: 15.98 kB / 408.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.807e-05/0.142, allocations: 12 kB / 408.2 MB, free: 4.551 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003605/0.1423, allocations: 303.1 kB / 408.5 MB, free: 4.254 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1424, allocations: 4 kB / 408.5 MB, free: 4.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000439/0.1428, allocations: 79.89 kB / 408.6 MB, free: 4.172 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.0009561/0.1438, allocations: 455.3 kB / 409.1 MB, free: 3.719 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005387/0.1443, allocations: 296.4 kB / 409.3 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1443, allocations: 0 / 409.3 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001737/0.1445, allocations: 43.97 kB / 409.4 MB, free: 3.387 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007499/0.1453, allocations: 235 kB / 409.6 MB, free: 3.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.1465, allocations: 0.8052 MB / 410.4 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004887/0.147, allocations: 0.8281 MB / 411.3 MB, free: 1.438 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001433/0.1472, allocations: 51.5 kB / 411.3 MB, free: 1.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.804e-05/0.1473, allocations: 39.42 kB / 411.3 MB, free: 1.352 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1473, allocations: 0 / 411.3 MB, free: 1.352 MB / 302.1 MB Notification: Performance of Templates: time 0.009865/0.1571, allocations: 4.443 MB / 415.8 MB, free: 12.9 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: