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: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds",fmuType="me",version="2.0",platforms={"static"}) [: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.00351/0.003515, allocations: 187.6 kB / 7.84 MB, free: 2.469 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.989/1.989, allocations: 205.2 MB / 213.5 MB, free: 13.93 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.00132/0.001319, allocations: 86.39 kB / 261.5 MB, free: 13.64 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.0988/0.0988, allocations: 12.59 MB / 322 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2873/0.3862, allocations: 56.49 MB / 378.5 MB, free: 75.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.5039, allocations: 50.38 MB / 428.9 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4063/0.9103, allocations: 82.84 MB / 0.4997 GB, free: 12.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.9106, allocations: 58.33 kB / 0.4998 GB, free: 12.01 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.04565/0.9563, allocations: 10.37 MB / 0.5099 GB, free: 8.867 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.9563, allocations: 9.812 kB / 0.5099 GB, free: 8.867 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.9565, allocations: 44.5 kB / 0.5099 GB, free: 8.844 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.9576, allocations: 362.7 kB / 0.5103 GB, free: 8.57 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.77e-05/0.9577, allocations: 12.56 kB / 0.5103 GB, free: 8.566 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.937e-05/0.9578, allocations: 19.5 kB / 0.5103 GB, free: 8.562 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005651/0.9584, allocations: 150.1 kB / 0.5105 GB, free: 8.547 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.9599, allocations: 0.6148 MB / 0.5111 GB, free: 8.207 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.691e-05/0.96, allocations: 5.188 kB / 0.5111 GB, free: 8.203 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.431e-05/0.96, allocations: 2.75 kB / 0.5111 GB, free: 8.203 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.839e-05/0.9601, allocations: 10.41 kB / 0.5111 GB, free: 8.199 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001694/0.9618, allocations: 1.098 MB / 0.5122 GB, free: 7.207 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.963, allocations: 0.6282 MB / 0.5128 GB, free: 6.637 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005089/0.9635, allocations: 222.1 kB / 0.513 GB, free: 6.535 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.391e-05/0.9636, allocations: 17.86 kB / 0.513 GB, free: 6.531 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001978/0.9638, allocations: 110.2 kB / 0.5131 GB, free: 6.441 MB / 330.7 MB Notification: Performance of pre-optimization done (n=46): time 4.148e-06/0.9639, allocations: 0 / 0.5131 GB, free: 6.441 MB / 330.7 MB Notification: Performance of matching and sorting (n=46): time 0.001102/0.965, allocations: 315.5 kB / 0.5134 GB, free: 6.336 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001623/0.9652, allocations: 356.7 kB / 0.5137 GB, free: 5.922 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007729/0.966, allocations: 351.3 kB / 0.5141 GB, free: 5.781 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001116/0.9661, allocations: 27.23 kB / 0.5141 GB, free: 5.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.783e-05/0.9662, allocations: 126.5 kB / 0.5142 GB, free: 5.648 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.748e-05/0.9663, allocations: 48.05 kB / 0.5143 GB, free: 5.625 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.859e-05/0.9664, allocations: 3.938 kB / 0.5143 GB, free: 5.621 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.9665, allocations: 359.5 kB / 0.5146 GB, free: 5.289 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.9667, allocations: 60.7 kB / 0.5147 GB, free: 5.281 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004404/0.9671, allocations: 345.1 kB / 0.515 GB, free: 4.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004731/0.9676, allocations: 126.4 kB / 0.5151 GB, free: 4.871 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.9677, allocations: 2.531 kB / 0.5151 GB, free: 4.871 MB / 330.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001026/0.9687, allocations: 354.6 kB / 0.5155 GB, free: 4.734 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.9688, allocations: 4.969 kB / 0.5155 GB, free: 4.734 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.9688, allocations: 9.406 kB / 0.5155 GB, free: 4.734 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.833e-05/0.9689, allocations: 13.84 kB / 0.5155 GB, free: 4.734 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005793/0.9694, allocations: 84 kB / 0.5156 GB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.85e-05/0.9695, allocations: 19.92 kB / 0.5156 GB, free: 4.711 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004579/0.97, allocations: 24.44 kB / 0.5156 GB, free: 4.699 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.595e-05/0.97, allocations: 25.56 kB / 0.5156 GB, free: 4.699 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.0002709/0.9703, allocations: 154.7 kB / 0.5158 GB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007972/0.9711, allocations: 264.2 kB / 0.516 GB, free: 4.465 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005054/0.9717, allocations: 124.8 kB / 0.5162 GB, free: 4.414 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/0.9717, allocations: 7.219 kB / 0.5162 GB, free: 4.414 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/0.9717, allocations: 7 kB / 0.5162 GB, free: 4.41 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.9718, allocations: 7.141 kB / 0.5162 GB, free: 4.406 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007336/0.9725, allocations: 288.7 kB / 0.5165 GB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/0.9725, allocations: 3.125 kB / 0.5165 GB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007713/0.9733, allocations: 73.58 kB / 0.5165 GB, free: 4.168 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.07e-05/0.9734, allocations: 4.719 kB / 0.5165 GB, free: 4.168 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.35e-05/0.9735, allocations: 8.438 kB / 0.5165 GB, free: 4.164 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.509e-05/0.9735, allocations: 8.328 kB / 0.5165 GB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-05/0.9735, allocations: 6.438 kB / 0.5166 GB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001255/0.9748, allocations: 0.5024 MB / 0.517 GB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00131/0.9761, allocations: 0.8896 MB / 0.5179 GB, free: 3.062 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000237/0.9764, allocations: 132.6 kB / 0.518 GB, free: 2.941 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001338/0.9766, allocations: 12.39 kB / 0.5181 GB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003009/0.9769, allocations: 4.188 kB / 0.5181 GB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.977, allocations: 13.77 kB / 0.5181 GB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.806e-05/0.9771, allocations: 15.56 kB / 0.5181 GB, free: 2.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0005989/0.9777, allocations: 262.8 kB / 0.5183 GB, free: 2.828 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00237/0.9801, allocations: 86.72 kB / 0.5184 GB, free: 2.812 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.001439/0.9816, allocations: 353.2 kB / 0.5188 GB, free: 2.547 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001437/0.9831, allocations: 282.9 kB / 0.519 GB, free: 2.496 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/0.9832, allocations: 1.594 kB / 0.519 GB, free: 2.496 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.9835, allocations: 44.08 kB / 0.5191 GB, free: 2.488 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001536/0.9851, allocations: 203.2 kB / 0.5193 GB, free: 2.441 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002143/0.9873, allocations: 0.5573 MB / 0.5198 GB, free: 2.152 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008544/0.9882, allocations: 0.8862 MB / 0.5207 GB, free: 1.371 MB / 330.7 MB Notification: Performance of SimCode: time 2.454e-06/0.9883, allocations: 0 / 0.5207 GB, free: 1.371 MB / 330.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe 2>&1)