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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001339/0.001339, allocations: 184.5 kB / 7.844 MB, free: 2.477 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.248/1.248, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0009072/0.0009074, allocations: 90.34 kB / 261.5 MB, free: 13.55 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.07137/0.07137, allocations: 12.58 MB / 322 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.824e-06/7.925e-06, allocations: 4 kB / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09067/0.0907, allocations: 50.37 MB / 428.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2653/0.3561, allocations: 82.84 MB / 0.4996 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.3564, allocations: 64.84 kB / 0.4997 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02611/0.3825, allocations: 9.757 MB / 0.5092 GB, free: 9.133 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.268e-05/0.3826, allocations: 10.38 kB / 0.5092 GB, free: 9.129 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.0008679/0.3835, allocations: 0.6025 MB / 0.5098 GB, free: 8.582 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.3835, allocations: 9.812 kB / 0.5098 GB, free: 8.582 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001419/0.3837, allocations: 44.44 kB / 0.5098 GB, free: 8.559 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006122/0.3843, allocations: 364.4 kB / 0.5102 GB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.3843, allocations: 13.12 kB / 0.5102 GB, free: 8.281 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.783e-05/0.3844, allocations: 19 kB / 0.5102 GB, free: 8.277 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003053/0.3847, allocations: 156 kB / 0.5104 GB, free: 8.258 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008276/0.3855, allocations: 0.6143 MB / 0.511 GB, free: 7.922 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.3855, allocations: 5.5 kB / 0.511 GB, free: 7.918 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.554e-05/0.3856, allocations: 1.562 kB / 0.511 GB, free: 7.918 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.3856, allocations: 15.34 kB / 0.511 GB, free: 7.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008174/0.3864, allocations: 1.085 MB / 0.5121 GB, free: 6.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000528/0.387, allocations: 0.6342 MB / 0.5127 GB, free: 6.355 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/0.3872, allocations: 221.7 kB / 0.5129 GB, free: 6.254 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.368e-05/0.3873, allocations: 9.516 kB / 0.5129 GB, free: 6.254 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001161/0.3874, allocations: 114.3 kB / 0.513 GB, free: 6.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=46): time 2.845e-06/0.3874, allocations: 1.344 kB / 0.513 GB, free: 6.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005356/0.3879, allocations: 311.3 kB / 0.5133 GB, free: 6.059 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.866e-05/0.388, allocations: 357.8 kB / 0.5136 GB, free: 5.645 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003836/0.3884, allocations: 350.3 kB / 0.514 GB, free: 5.504 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.3885, allocations: 28.39 kB / 0.514 GB, free: 5.473 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.507e-05/0.3885, allocations: 130.9 kB / 0.5141 GB, free: 5.367 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.064e-05/0.3886, allocations: 43.55 kB / 0.5142 GB, free: 5.344 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.123e-05/0.3886, allocations: 0 / 0.5142 GB, free: 5.344 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.794e-05/0.3887, allocations: 352.5 kB / 0.5145 GB, free: 5.016 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.3888, allocations: 58.06 kB / 0.5146 GB, free: 5.012 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/0.389, allocations: 357.1 kB / 0.5149 GB, free: 4.629 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002115/0.3892, allocations: 120.6 kB / 0.515 GB, free: 4.59 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.3892, allocations: 2.906 kB / 0.515 GB, free: 4.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000532/0.3898, allocations: 348.7 kB / 0.5153 GB, free: 4.461 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.3898, allocations: 5.469 kB / 0.5154 GB, free: 4.461 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.3898, allocations: 8.625 kB / 0.5154 GB, free: 4.461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/0.3898, allocations: 21.45 kB / 0.5154 GB, free: 4.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002706/0.3901, allocations: 83.5 kB / 0.5155 GB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.527e-05/0.3901, allocations: 20.98 kB / 0.5155 GB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000219/0.3904, allocations: 29.25 kB / 0.5155 GB, free: 4.414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.935e-05/0.3904, allocations: 32.5 kB / 0.5155 GB, free: 4.406 MB / 330.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 () * 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.0001114/0.3905, allocations: 146 kB / 0.5157 GB, free: 4.281 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003595/0.3909, allocations: 261.1 kB / 0.5159 GB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002322/0.3911, allocations: 138.3 kB / 0.5161 GB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.3911, allocations: 7.312 kB / 0.5161 GB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.3912, allocations: 2.656 kB / 0.5161 GB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.908e-06/0.3912, allocations: 11.05 kB / 0.5161 GB, free: 4.117 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002502/0.3914, allocations: 289.6 kB / 0.5164 GB, free: 3.895 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3914, allocations: 2.469 kB / 0.5164 GB, free: 3.895 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/0.3917, allocations: 74.7 kB / 0.5164 GB, free: 3.875 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/0.3917, allocations: 5.25 kB / 0.5164 GB, free: 3.875 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.309e-05/0.3917, allocations: 7.844 kB / 0.5164 GB, free: 3.875 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.3917, allocations: 4.031 kB / 0.5164 GB, free: 3.875 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.3918, allocations: 2.625 kB / 0.5165 GB, free: 3.875 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004861/0.3922, allocations: 0.5088 MB / 0.5169 GB, free: 3.512 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.301e-05/0.3923, allocations: 132.7 kB / 0.5171 GB, free: 3.387 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.373e-05/0.3924, allocations: 12.78 kB / 0.5171 GB, free: 3.383 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.3926, allocations: 8.109 kB / 0.5171 GB, free: 3.379 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.503e-05/0.3926, allocations: 10.86 kB / 0.5171 GB, free: 3.375 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.3926, allocations: 14.38 kB / 0.5171 GB, free: 3.375 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003088/0.3929, allocations: 260.9 kB / 0.5174 GB, free: 3.277 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006273/0.3936, allocations: 80.05 kB / 0.5174 GB, free: 3.262 MB / 330.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) * 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.0008055/0.3944, allocations: 358.9 kB / 0.5178 GB, free: 3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000467/0.3949, allocations: 277.8 kB / 0.5181 GB, free: 2.949 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3949, allocations: 1.375 kB / 0.5181 GB, free: 2.949 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.26e-05/0.395, allocations: 43.86 kB / 0.5181 GB, free: 2.941 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007424/0.3957, allocations: 208.9 kB / 0.5183 GB, free: 2.887 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/0.3968, allocations: 0.551 MB / 0.5188 GB, free: 2.605 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004434/0.3973, allocations: 0.8824 MB / 0.5197 GB, free: 1.824 MB / 330.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3973, allocations: 1.219 kB / 0.5197 GB, free: 1.824 MB / 330.7 MB Notification: Performance of Templates: time 0.009761/0.4071, allocations: 4.701 MB / 0.5243 GB, free: 15.57 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)