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.001066/0.001066, allocations: 178.1 kB / 15.8 MB, free: 6.34 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.733/1.733, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0008565/0.0008565, allocations: 86.8 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07985/0.07985, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004192/0.0004196, allocations: 10.25 kB / 392 MB, free: 54.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1167, allocations: 50.37 MB / 442.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.2383, allocations: 83.67 MB / 0.5137 GB, free: 7.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.2386, allocations: 63.97 kB / 0.5138 GB, free: 7.098 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2248/0.4634, allocations: 10.24 MB / 0.5238 GB, free: 83.63 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4635, allocations: 0 / 0.5238 GB, free: 83.63 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.881e-05/0.4635, allocations: 7.344 kB / 0.5238 GB, free: 83.63 MB / 362.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.001209/0.4648, allocations: 0.655 MB / 0.5244 GB, free: 83.11 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.4648, allocations: 9.406 kB / 0.5244 GB, free: 83.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/0.465, allocations: 49.69 kB / 0.5245 GB, free: 83.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000667/0.4656, allocations: 377.5 kB / 0.5248 GB, free: 82.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.463e-05/0.4657, allocations: 19.34 kB / 0.5248 GB, free: 82.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.89e-05/0.4657, allocations: 27.94 kB / 0.5249 GB, free: 82.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.4668, allocations: 0.6855 MB / 0.5255 GB, free: 82.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.4669, allocations: 1.125 kB / 0.5255 GB, free: 82.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.214e-05/0.4669, allocations: 11.67 kB / 0.5256 GB, free: 82.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.4669, allocations: 7.5 kB / 0.5256 GB, free: 82.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003025/0.4672, allocations: 151.3 kB / 0.5257 GB, free: 82.58 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.4683, allocations: 1.157 MB / 0.5268 GB, free: 81.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000694/0.469, allocations: 0.6651 MB / 0.5275 GB, free: 81.1 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.94e-05/0.469, allocations: 14.14 kB / 0.5275 GB, free: 81.1 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002035/0.4692, allocations: 120.8 kB / 0.5276 GB, free: 81.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 4.579e-06/0.4693, allocations: 1.281 kB / 0.5276 GB, free: 81.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=46): time 0.0009556/0.4702, allocations: 468.5 kB / 0.5281 GB, free: 80.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.4703, allocations: 374.8 kB / 0.5284 GB, free: 80.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005278/0.4709, allocations: 402.1 kB / 0.5288 GB, free: 80.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.243e-05/0.4709, allocations: 35.92 kB / 0.5288 GB, free: 80.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.4711, allocations: 164.4 kB / 0.529 GB, free: 80.29 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.758e-05/0.4711, allocations: 49.75 kB / 0.529 GB, free: 80.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.339e-05/0.4711, allocations: 14.22 kB / 0.5291 GB, free: 80.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.437e-05/0.4712, allocations: 357.7 kB / 0.5294 GB, free: 79.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.4714, allocations: 69.14 kB / 0.5295 GB, free: 79.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002486/0.4716, allocations: 361.4 kB / 0.5298 GB, free: 79.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.4718, allocations: 140.4 kB / 0.5299 GB, free: 79.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.4719, allocations: 6.156 kB / 0.5299 GB, free: 79.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006526/0.4725, allocations: 425.8 kB / 0.5303 GB, free: 79.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.4726, allocations: 8.875 kB / 0.5304 GB, free: 79.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.4726, allocations: 13.73 kB / 0.5304 GB, free: 79.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.549e-05/0.4726, allocations: 12.44 kB / 0.5304 GB, free: 79.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000259/0.4729, allocations: 86.92 kB / 0.5305 GB, free: 79.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.942e-05/0.4729, allocations: 19.84 kB / 0.5305 GB, free: 79.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002299/0.4731, allocations: 37.97 kB / 0.5305 GB, free: 79.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.66e-05/0.4732, allocations: 25.75 kB / 0.5305 GB, free: 79.43 MB / 362.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,backSample1.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,backSample1.u,shiftSample1.y,fractionalDelay.y,ClockedSignalToSquare.u,superSample1.y,superSample1.u,subSample1.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,ClockedSignalToSquare.y2,$CLKPRE.ClockedSignalToSquare.y2,ClockedSignalToSquare.y,fractionalDelay.first) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample1.b_super,UnitDelay1.u,upSample1.b,ClockedSignalToSquare.y2) * 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.0002181/0.4734, allocations: 225.4 kB / 0.5308 GB, free: 79.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004175/0.4738, allocations: 293 kB / 0.531 GB, free: 79.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003041/0.4741, allocations: 145.2 kB / 0.5312 GB, free: 79.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.4742, allocations: 11.55 kB / 0.5312 GB, free: 79.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.4742, allocations: 6.656 kB / 0.5312 GB, free: 79.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.4742, allocations: 7.188 kB / 0.5312 GB, free: 79.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003132/0.4745, allocations: 333.9 kB / 0.5315 GB, free: 78.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.4745, allocations: 2.594 kB / 0.5315 GB, free: 78.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002254/0.4748, allocations: 75.67 kB / 0.5316 GB, free: 78.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.764e-06/0.4748, allocations: 4.25 kB / 0.5316 GB, free: 78.97 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.4748, allocations: 13.55 kB / 0.5316 GB, free: 78.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.4748, allocations: 4.562 kB / 0.5316 GB, free: 78.97 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.4748, allocations: 7.047 kB / 0.5316 GB, free: 78.97 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006697/0.4755, allocations: 0.5507 MB / 0.5322 GB, free: 78.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.4757, allocations: 140.3 kB / 0.5323 GB, free: 78.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.42e-05/0.4757, allocations: 18 kB / 0.5323 GB, free: 78.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.4759, allocations: 13.31 kB / 0.5323 GB, free: 78.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.801e-05/0.4759, allocations: 14.19 kB / 0.5323 GB, free: 78.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.455e-05/0.476, allocations: 15.25 kB / 0.5324 GB, free: 78.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003514/0.4763, allocations: 304.2 kB / 0.5326 GB, free: 78.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4763, allocations: 0 / 0.5326 GB, free: 78.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006055/0.477, allocations: 93 kB / 0.5327 GB, free: 78.43 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 44 ($whenCondition1,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,ClockedSignalToSquare.y,hold1.y,backSample1.y,upSample1.y,upSample1.b_super,upSample1.u_super,fractionalDelay.y,shiftSample1.y,backSample1.u,superSample1.y,ClockedSignalToSquare.u,subSample1.y,superSample1.u,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],ClockedSignalToSquare.y2) * Number of discrete states: 2 (integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 4 (upSample1.b_super,upSample1.b,UnitDelay1.u,ClockedSignalToSquare.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 45 * Array equations: 0 * 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.001049/0.478, allocations: 477.1 kB / 0.5332 GB, free: 78.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005422/0.4786, allocations: 313.4 kB / 0.5335 GB, free: 78.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4786, allocations: 1.312 kB / 0.5335 GB, free: 78.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.4787, allocations: 47.77 kB / 0.5335 GB, free: 78.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006867/0.4794, allocations: 229.9 kB / 0.5338 GB, free: 78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.4809, allocations: 0.7902 MB / 0.5345 GB, free: 77.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.4813, allocations: 0.8443 MB / 0.5353 GB, free: 76.78 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002003/0.4815, allocations: 58.38 kB / 0.5354 GB, free: 76.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.4816, allocations: 40.36 kB / 0.5354 GB, free: 76.75 MB / 362.7 MB Notification: Performance of SimCode: time 3.5e-07/0.4816, allocations: 1.406 kB / 0.5354 GB, free: 76.75 MB / 362.7 MB Notification: Performance of Templates: time 0.009168/0.4908, allocations: 4.617 MB / 0.54 GB, free: 75.77 MB / 362.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)