Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002452/0.002451, allocations: 172.4 kB / 8.19 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.738/1.738, allocations: 205.2 MB / 213.8 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001269/0.001269, allocations: 95 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0985/0.0985, allocations: 12.59 MB / 322.3 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.03e-05/1.071e-05, allocations: 0 / 378.4 MB, free: 76.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1109, allocations: 50.37 MB / 428.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.307/0.418, allocations: 82.84 MB / 0.4996 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.4182, allocations: 65.09 kB / 0.4996 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.04086/0.4591, allocations: 9.755 MB / 0.5092 GB, free: 9.203 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.418e-05/0.4592, allocations: 11.53 kB / 0.5092 GB, free: 9.199 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.0009438/0.4602, allocations: 0.6027 MB / 0.5098 GB, free: 8.656 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.4602, allocations: 9.281 kB / 0.5098 GB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.4604, allocations: 45.25 kB / 0.5098 GB, free: 8.633 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008044/0.4612, allocations: 364 kB / 0.5102 GB, free: 8.359 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.539e-05/0.4612, allocations: 15.94 kB / 0.5102 GB, free: 8.352 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.568e-05/0.4613, allocations: 19.34 kB / 0.5102 GB, free: 8.348 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004638/0.4618, allocations: 153 kB / 0.5104 GB, free: 8.328 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.463, allocations: 0.6111 MB / 0.511 GB, free: 7.992 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.4631, allocations: 8.969 kB / 0.511 GB, free: 7.984 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.4631, allocations: 2.375 kB / 0.511 GB, free: 7.984 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.4631, allocations: 10.44 kB / 0.511 GB, free: 7.98 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.4644, allocations: 1.094 MB / 0.512 GB, free: 6.992 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008626/0.4652, allocations: 0.6322 MB / 0.5127 GB, free: 6.422 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004237/0.4657, allocations: 221.6 kB / 0.5129 GB, free: 6.32 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.261e-05/0.4657, allocations: 13.66 kB / 0.5129 GB, free: 6.316 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001678/0.4659, allocations: 110.4 kB / 0.513 GB, free: 6.227 MB / 330.7 MB Notification: Performance of pre-optimization done (n=46): time 2.845e-06/0.4659, allocations: 0 / 0.513 GB, free: 6.227 MB / 330.7 MB Notification: Performance of matching and sorting (n=46): time 0.0009067/0.4669, allocations: 315.9 kB / 0.5133 GB, free: 6.121 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.467, allocations: 358.6 kB / 0.5136 GB, free: 5.707 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006148/0.4676, allocations: 352.1 kB / 0.514 GB, free: 5.566 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.973e-05/0.4677, allocations: 27.08 kB / 0.514 GB, free: 5.535 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.303e-05/0.4677, allocations: 170.1 kB / 0.5142 GB, free: 5.375 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.926e-05/0.4678, allocations: 46.8 kB / 0.5142 GB, free: 5.352 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.629e-05/0.4678, allocations: 7.938 kB / 0.5142 GB, free: 5.344 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.073e-05/0.4679, allocations: 325.8 kB / 0.5145 GB, free: 5.027 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.4681, allocations: 63.05 kB / 0.5146 GB, free: 5.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003423/0.4685, allocations: 350.7 kB / 0.5149 GB, free: 4.641 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002694/0.4687, allocations: 125 kB / 0.515 GB, free: 4.602 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.4688, allocations: 2.312 kB / 0.515 GB, free: 4.602 MB / 330.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007575/0.4695, allocations: 330.2 kB / 0.5153 GB, free: 4.48 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.4696, allocations: 4.25 kB / 0.5154 GB, free: 4.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/0.4696, allocations: 9.25 kB / 0.5154 GB, free: 4.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.471e-05/0.4696, allocations: 13.69 kB / 0.5154 GB, free: 4.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005333/0.4702, allocations: 87.52 kB / 0.5155 GB, free: 4.461 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.209e-05/0.4702, allocations: 16.72 kB / 0.5155 GB, free: 4.457 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002791/0.4705, allocations: 27.66 kB / 0.5155 GB, free: 4.441 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.38e-05/0.4706, allocations: 29.55 kB / 0.5155 GB, free: 4.438 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.0001797/0.4707, allocations: 70.33 kB / 0.5156 GB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006426/0.4714, allocations: 257 kB / 0.5158 GB, free: 4.293 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003898/0.4718, allocations: 134.7 kB / 0.516 GB, free: 4.234 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.4718, allocations: 10.81 kB / 0.516 GB, free: 4.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.4718, allocations: 2.688 kB / 0.516 GB, free: 4.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.4719, allocations: 2.75 kB / 0.516 GB, free: 4.23 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003879/0.4723, allocations: 299 kB / 0.5163 GB, free: 4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.4723, allocations: 3.469 kB / 0.5163 GB, free: 4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005063/0.4728, allocations: 70.19 kB / 0.5163 GB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.144e-05/0.4728, allocations: 4.406 kB / 0.5163 GB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.301e-05/0.4729, allocations: 17.08 kB / 0.5164 GB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/0.4729, allocations: 4.438 kB / 0.5164 GB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.4729, allocations: 6.125 kB / 0.5164 GB, free: 3.973 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007793/0.4737, allocations: 0.5056 MB / 0.5169 GB, free: 3.613 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001269/0.4738, allocations: 132.7 kB / 0.517 GB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.568e-05/0.4739, allocations: 7.875 kB / 0.517 GB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.4741, allocations: 4.125 kB / 0.517 GB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.116e-05/0.4742, allocations: 18.7 kB / 0.517 GB, free: 3.477 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-05/0.4743, allocations: 18.61 kB / 0.517 GB, free: 3.473 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0004103/0.4747, allocations: 261.5 kB / 0.5173 GB, free: 3.375 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006603/0.4754, allocations: 80.11 kB / 0.5174 GB, free: 3.359 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.0009001/0.4763, allocations: 355.6 kB / 0.5177 GB, free: 3.098 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007163/0.477, allocations: 272.9 kB / 0.518 GB, free: 3.055 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.477, allocations: 4.062 kB / 0.518 GB, free: 3.051 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.4771, allocations: 33.97 kB / 0.518 GB, free: 3.047 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.4782, allocations: 212.6 kB / 0.5182 GB, free: 2.988 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.4797, allocations: 0.5806 MB / 0.5188 GB, free: 2.676 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005009/0.4802, allocations: 0.8853 MB / 0.5196 GB, free: 1.895 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.4802, allocations: 0 / 0.5196 GB, free: 1.895 MB / 330.7 MB Notification: Performance of Templates: time 0.01193/0.4921, allocations: 5.167 MB / 0.5247 GB, free: 15.29 MB / 346.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe 2>&1)