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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.0009544/0.0009544, allocations: 174.2 kB / 16.8 MB, free: 5.008 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.472/1.472, allocations: 205.4 MB / 223 MB, free: 9.023 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.0008038/0.0008039, allocations: 90.36 kB / 271.3 MB, free: 8.246 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.0831/0.0831, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003767/0.0003768, allocations: 15.94 kB / 393.3 MB, free: 65.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08515/0.08554, allocations: 50.37 MB / 443.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.002225/0.08782, allocations: 1.875 MB / 445.6 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.08941, allocations: 1.182 MB / 446.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.08955, allocations: 7.938 kB / 446.7 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003444/0.08993, allocations: 87.66 kB / 446.8 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001789/0.09012, allocations: 87.64 kB / 446.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007504/0.09088, allocations: 283.5 kB / 447.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002492/0.09114, allocations: 303.6 kB / 447.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001911/0.09134, allocations: 119.4 kB / 447.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.09146, allocations: 111.4 kB / 447.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.09161, allocations: 135.2 kB / 447.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.09165, allocations: 4 kB / 447.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.09178, allocations: 63.95 kB / 447.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.208e-05/0.09187, allocations: 71.75 kB / 448 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.09198, allocations: 168.6 kB / 448.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002351/0.09223, allocations: 279.7 kB / 448.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.09224, allocations: 0 / 448.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.09225, allocations: 0 / 448.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.09226, allocations: 0 / 448.4 MB, free: 10.66 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.0006774/0.09294, allocations: 0.6138 MB / 449 MB, free: 9.988 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.09299, allocations: 8.031 kB / 449 MB, free: 9.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.409e-05/0.09306, allocations: 52.36 kB / 449.1 MB, free: 9.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.0934, allocations: 356.4 kB / 449.4 MB, free: 9.543 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.09343, allocations: 20.94 kB / 449.5 MB, free: 9.523 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.488e-05/0.09348, allocations: 28.12 kB / 449.5 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007842/0.09427, allocations: 0.6785 MB / 450.2 MB, free: 8.742 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.09429, allocations: 7.938 kB / 450.2 MB, free: 8.734 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.09432, allocations: 12 kB / 450.2 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.182e-05/0.09436, allocations: 15.98 kB / 450.2 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002556/0.09463, allocations: 143.7 kB / 450.3 MB, free: 8.566 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007568/0.09539, allocations: 1.148 MB / 451.5 MB, free: 7.316 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006115/0.09602, allocations: 0.688 MB / 452.2 MB, free: 6.473 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002638/0.0963, allocations: 254.1 kB / 452.4 MB, free: 6.191 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.884e-05/0.09635, allocations: 19.98 kB / 452.5 MB, free: 6.172 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001777/0.09653, allocations: 109.9 kB / 452.6 MB, free: 6.043 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 2.414e-06/0.09654, allocations: 0 / 452.6 MB, free: 6.043 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.0007352/0.09728, allocations: 485.6 kB / 453 MB, free: 5.562 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.09741, allocations: 391.9 kB / 453.4 MB, free: 5.094 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000354/0.09778, allocations: 441.5 kB / 453.8 MB, free: 4.656 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.09781, allocations: 37.7 kB / 453.9 MB, free: 4.613 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.09793, allocations: 165 kB / 454 MB, free: 4.445 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.922e-05/0.09797, allocations: 51.61 kB / 454.1 MB, free: 4.395 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.119e-05/0.09799, allocations: 8 kB / 454.1 MB, free: 4.387 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.788e-05/0.09808, allocations: 358.8 kB / 454.5 MB, free: 4.027 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.09821, allocations: 72.83 kB / 454.5 MB, free: 3.957 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002199/0.09844, allocations: 358 kB / 454.9 MB, free: 3.469 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003531/0.09881, allocations: 434.6 kB / 455.3 MB, free: 2.918 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.09882, allocations: 4 kB / 455.3 MB, free: 2.914 MB / 298.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000525/0.09935, allocations: 424.8 kB / 455.7 MB, free: 2.492 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.09938, allocations: 8 kB / 455.7 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.0994, allocations: 12 kB / 455.7 MB, free: 2.473 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.09943, allocations: 12 kB / 455.7 MB, free: 2.461 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002387/0.09967, allocations: 91.77 kB / 455.8 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.09969, allocations: 16.5 kB / 455.9 MB, free: 2.355 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/0.09988, allocations: 47.61 kB / 455.9 MB, free: 2.309 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.09991, allocations: 24 kB / 455.9 MB, free: 2.285 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000185/0.1001, allocations: 225.6 kB / 456.1 MB, free: 2.059 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003288/0.1004, allocations: 297 kB / 456.4 MB, free: 1.762 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.82e-05/0.1005, allocations: 51.31 kB / 456.5 MB, free: 1.707 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.689e-05/0.1006, allocations: 12 kB / 456.5 MB, free: 1.695 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1006, allocations: 0 / 456.5 MB, free: 1.695 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.365e-06/0.1006, allocations: 7.984 kB / 456.5 MB, free: 1.688 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002556/0.1008, allocations: 329.2 kB / 456.8 MB, free: 1.316 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.1009, allocations: 0 / 456.8 MB, free: 1.316 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001985/0.1011, allocations: 72.2 kB / 456.9 MB, free: 1.246 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.1011, allocations: 4 kB / 456.9 MB, free: 1.242 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.204e-05/0.1011, allocations: 12 kB / 456.9 MB, free: 1.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.1011, allocations: 11.98 kB / 456.9 MB, free: 1.219 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.1011, allocations: 7.938 kB / 456.9 MB, free: 1.211 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005049/0.1016, allocations: 461.8 kB / 457.4 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.794e-05/0.1017, allocations: 136.5 kB / 457.5 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.823e-05/0.1018, allocations: 12 kB / 457.5 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.1019, allocations: 15.98 kB / 457.5 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.258e-05/0.102, allocations: 11.98 kB / 457.6 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-05/0.102, allocations: 23.94 kB / 457.6 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000247/0.1023, allocations: 307.1 kB / 457.9 MB, free: 200 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1023, allocations: 3.938 kB / 457.9 MB, free: 196 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.000427/0.1027, allocations: 79.98 kB / 458 MB, free: 116 kB / 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 (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.0009734/0.1037, allocations: 438.9 kB / 458.4 MB, free: 15.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005215/0.1042, allocations: 293.1 kB / 458.7 MB, free: 15.39 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1042, allocations: 0.75 kB / 458.7 MB, free: 15.39 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.489e-05/0.1043, allocations: 39.92 kB / 458.7 MB, free: 15.36 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008381/0.1052, allocations: 244.9 kB / 459 MB, free: 15.12 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.1064, allocations: 0.8737 MB / 459.8 MB, free: 14.18 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004366/0.1068, allocations: 0.832 MB / 460.7 MB, free: 13.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.72e-05/0.1069, allocations: 39.42 kB / 460.7 MB, free: 13.28 MB / 314.7 MB Notification: Performance of SimCode: time 4.61e-07/0.1069, allocations: 0 / 460.7 MB, free: 13.28 MB / 314.7 MB Notification: Performance of Templates: time 0.007271/0.1142, allocations: 5.19 MB / 465.9 MB, free: 8.082 MB / 314.7 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)