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.001427/0.001427, allocations: 171.9 kB / 16.8 MB, free: 5.031 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.725/1.725, allocations: 205.4 MB / 223 MB, free: 9.02 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.0007645/0.0007644, allocations: 86.34 kB / 271.3 MB, free: 8.25 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.08467/0.08467, allocations: 12.59 MB / 332.2 MB, free: 11.26 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004662/0.0004664, allocations: 16 kB / 393.2 MB, free: 65.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08884/0.08933, allocations: 50.37 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3834/0.4728, allocations: 83.72 MB / 0.515 GB, free: 12.14 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/0.473, allocations: 66.53 kB / 0.515 GB, free: 12.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02477/0.4978, allocations: 10.25 MB / 0.525 GB, free: 3.965 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4979, allocations: 0 / 0.525 GB, free: 3.965 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.193e-05/0.4979, allocations: 8 kB / 0.525 GB, free: 3.957 MB / 330.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.0008666/0.4988, allocations: 0.65 MB / 0.5257 GB, free: 3.273 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.4988, allocations: 16.03 kB / 0.5257 GB, free: 3.258 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.499, allocations: 48.25 kB / 0.5257 GB, free: 3.215 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005039/0.4995, allocations: 378.9 kB / 0.5261 GB, free: 2.828 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.4995, allocations: 18.88 kB / 0.5261 GB, free: 2.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.056e-05/0.4995, allocations: 26.75 kB / 0.5261 GB, free: 2.801 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008741/0.5004, allocations: 0.6873 MB / 0.5268 GB, free: 2.164 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.5005, allocations: 8.109 kB / 0.5268 GB, free: 2.156 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.5005, allocations: 13.25 kB / 0.5268 GB, free: 2.148 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.5005, allocations: 4 kB / 0.5268 GB, free: 2.145 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002547/0.5008, allocations: 153.7 kB / 0.527 GB, free: 2.031 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008433/0.5016, allocations: 1.164 MB / 0.5281 GB, free: 0.8672 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000556/0.5022, allocations: 0.6606 MB / 0.5288 GB, free: 136 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002969/0.5025, allocations: 234.7 kB / 0.529 GB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.697e-05/0.5026, allocations: 16.36 kB / 0.529 GB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001967/0.5028, allocations: 117.3 kB / 0.5291 GB, free: 15.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 3.627e-06/0.5028, allocations: 0 / 0.5291 GB, free: 15.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.0008365/0.5036, allocations: 476 kB / 0.5296 GB, free: 15.42 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001914/0.5038, allocations: 371.1 kB / 0.5299 GB, free: 14.99 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005039/0.5043, allocations: 440.6 kB / 0.5303 GB, free: 14.64 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.813e-05/0.5044, allocations: 31.77 kB / 0.5304 GB, free: 14.61 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.5045, allocations: 162.5 kB / 0.5305 GB, free: 14.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.966e-05/0.5046, allocations: 46.03 kB / 0.5306 GB, free: 14.47 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.317e-05/0.5046, allocations: 11.19 kB / 0.5306 GB, free: 14.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.5048, allocations: 350.7 kB / 0.5309 GB, free: 14.13 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.5049, allocations: 75.58 kB / 0.531 GB, free: 14.08 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003122/0.5052, allocations: 375.5 kB / 0.5313 GB, free: 13.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004408/0.5057, allocations: 429.9 kB / 0.5318 GB, free: 13.13 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/0.5057, allocations: 4 kB / 0.5318 GB, free: 13.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006261/0.5063, allocations: 423.2 kB / 0.5322 GB, free: 12.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.5064, allocations: 12.88 kB / 0.5322 GB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.5064, allocations: 15.94 kB / 0.5322 GB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.5064, allocations: 12.05 kB / 0.5322 GB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002546/0.5067, allocations: 87.52 kB / 0.5323 GB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.115e-05/0.5067, allocations: 19.92 kB / 0.5323 GB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.5069, allocations: 43.25 kB / 0.5323 GB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.056e-05/0.507, allocations: 23.5 kB / 0.5324 GB, free: 12.58 MB / 346.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.0002574/0.5072, allocations: 237.3 kB / 0.5326 GB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003955/0.5076, allocations: 280.4 kB / 0.5329 GB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003108/0.508, allocations: 168.3 kB / 0.533 GB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.508, allocations: 4 kB / 0.533 GB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.508, allocations: 4 kB / 0.533 GB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.508, allocations: 4 kB / 0.533 GB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003266/0.5083, allocations: 334.3 kB / 0.5334 GB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.5083, allocations: 4 kB / 0.5334 GB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002844/0.5086, allocations: 67.47 kB / 0.5334 GB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.758e-06/0.5087, allocations: 4 kB / 0.5334 GB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.303e-05/0.5087, allocations: 22.8 kB / 0.5334 GB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.5087, allocations: 4 kB / 0.5335 GB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.5087, allocations: 11.94 kB / 0.5335 GB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007013/0.5094, allocations: 446.4 kB / 0.5339 GB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.5096, allocations: 135.1 kB / 0.534 GB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.394e-05/0.5097, allocations: 18.69 kB / 0.534 GB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.5098, allocations: 19.05 kB / 0.5341 GB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.758e-05/0.5099, allocations: 11.92 kB / 0.5341 GB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.772e-05/0.5099, allocations: 19.5 kB / 0.5341 GB, free: 10.99 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003735/0.5103, allocations: 307.9 kB / 0.5344 GB, free: 10.75 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5103, allocations: 0 / 0.5344 GB, free: 10.75 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005675/0.5109, allocations: 87.75 kB / 0.5345 GB, free: 10.68 MB / 346.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.001184/0.5121, allocations: 479.5 kB / 0.5349 GB, free: 10.22 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006784/0.5128, allocations: 314.1 kB / 0.5352 GB, free: 9.969 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.5128, allocations: 0 / 0.5352 GB, free: 9.969 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.5129, allocations: 47.11 kB / 0.5353 GB, free: 9.934 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009052/0.5138, allocations: 237 kB / 0.5355 GB, free: 9.754 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.5152, allocations: 0.8079 MB / 0.5363 GB, free: 8.973 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004612/0.5157, allocations: 0.831 MB / 0.5371 GB, free: 8.125 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001979/0.5159, allocations: 51.62 kB / 0.5371 GB, free: 8.078 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.516, allocations: 47.05 kB / 0.5372 GB, free: 8.035 MB / 346.7 MB Notification: Performance of SimCode: time 5.41e-07/0.516, allocations: 0 / 0.5372 GB, free: 8.035 MB / 346.7 MB Notification: Performance of Templates: time 0.01016/0.5262, allocations: 4.675 MB / 0.5417 GB, free: 3.367 MB / 346.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)