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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001541/0.001545, allocations: 181.3 kB / 15.8 MB, free: 6.336 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.018/2.018, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001208/0.001208, allocations: 98.84 kB / 270.3 MB, free: 13.37 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.1214/0.1214, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008694/0.0008696, allocations: 20.94 kB / 392.1 MB, free: 54.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09046/0.09138, allocations: 50.36 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1528/0.2442, allocations: 83.67 MB / 0.5138 GB, free: 7.051 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.2445, allocations: 63.97 kB / 0.5139 GB, free: 6.988 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3111/0.5557, allocations: 10.24 MB / 0.5239 GB, free: 83.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.5557, allocations: 3.938 kB / 0.5239 GB, free: 83.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.572e-05/0.5558, allocations: 13.16 kB / 0.5239 GB, free: 83.11 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.001312/0.5571, allocations: 0.6516 MB / 0.5245 GB, free: 82.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.5572, allocations: 14.34 kB / 0.5245 GB, free: 82.58 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.5573, allocations: 64.33 kB / 0.5246 GB, free: 82.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.5574, allocations: 45.81 kB / 0.5246 GB, free: 82.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008763/0.5583, allocations: 372.5 kB / 0.525 GB, free: 82.28 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.142e-05/0.5584, allocations: 23.81 kB / 0.525 GB, free: 82.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.288e-05/0.5585, allocations: 26 kB / 0.525 GB, free: 82.28 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.56, allocations: 0.667 MB / 0.5257 GB, free: 82.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.406e-05/0.5601, allocations: 2.469 kB / 0.5257 GB, free: 82.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.534e-05/0.5601, allocations: 11.38 kB / 0.5257 GB, free: 82.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.5601, allocations: 6.094 kB / 0.5257 GB, free: 82.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004978/0.5606, allocations: 155.4 kB / 0.5259 GB, free: 82.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001577/0.5622, allocations: 1.163 MB / 0.527 GB, free: 81.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.5634, allocations: 0.6635 MB / 0.5276 GB, free: 80.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.551e-05/0.5635, allocations: 17.31 kB / 0.5277 GB, free: 80.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002759/0.5638, allocations: 118.4 kB / 0.5278 GB, free: 80.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 3.707e-06/0.5638, allocations: 0 / 0.5278 GB, free: 80.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=46): time 0.001589/0.5654, allocations: 473 kB / 0.5282 GB, free: 80.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001614/0.5656, allocations: 369.2 kB / 0.5286 GB, free: 79.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007835/0.5664, allocations: 412.9 kB / 0.529 GB, free: 79.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.436e-05/0.5665, allocations: 35.17 kB / 0.529 GB, free: 79.83 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.5667, allocations: 158 kB / 0.5292 GB, free: 79.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.645e-05/0.5668, allocations: 55.59 kB / 0.5292 GB, free: 79.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.238e-05/0.5668, allocations: 5 kB / 0.5292 GB, free: 79.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.5669, allocations: 354.6 kB / 0.5296 GB, free: 79.42 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002372/0.5672, allocations: 67.31 kB / 0.5296 GB, free: 79.42 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004137/0.5676, allocations: 370.7 kB / 0.53 GB, free: 79.05 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003625/0.568, allocations: 130.9 kB / 0.5301 GB, free: 79.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.597e-06/0.568, allocations: 7.281 kB / 0.5301 GB, free: 79.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001062/0.5691, allocations: 416.3 kB / 0.5305 GB, free: 78.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.095e-05/0.5691, allocations: 13.86 kB / 0.5305 GB, free: 78.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/0.5692, allocations: 11.12 kB / 0.5305 GB, free: 78.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.669e-05/0.5692, allocations: 17.08 kB / 0.5305 GB, free: 78.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005003/0.5697, allocations: 91.88 kB / 0.5306 GB, free: 78.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.878e-05/0.5698, allocations: 19.5 kB / 0.5306 GB, free: 78.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000371/0.5702, allocations: 34.31 kB / 0.5307 GB, free: 78.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.747e-05/0.5702, allocations: 25.59 kB / 0.5307 GB, free: 78.89 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.0004285/0.5707, allocations: 230.5 kB / 0.5309 GB, free: 78.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006964/0.5714, allocations: 291.3 kB / 0.5312 GB, free: 78.69 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004716/0.5719, allocations: 155.5 kB / 0.5314 GB, free: 78.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.5719, allocations: 7.312 kB / 0.5314 GB, free: 78.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.5719, allocations: 3.75 kB / 0.5314 GB, free: 78.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.5719, allocations: 10.08 kB / 0.5314 GB, free: 78.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000445/0.5724, allocations: 335.7 kB / 0.5317 GB, free: 78.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.5724, allocations: 1.906 kB / 0.5317 GB, free: 78.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004687/0.5729, allocations: 73.28 kB / 0.5318 GB, free: 78.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.234e-05/0.5729, allocations: 8.906 kB / 0.5318 GB, free: 78.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.422e-05/0.5729, allocations: 13.75 kB / 0.5318 GB, free: 78.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.071e-05/0.573, allocations: 11.64 kB / 0.5318 GB, free: 78.42 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.573, allocations: 3.281 kB / 0.5318 GB, free: 78.42 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.574, allocations: 0.5481 MB / 0.5323 GB, free: 78.1 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001568/0.5742, allocations: 138.8 kB / 0.5325 GB, free: 77.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.762e-05/0.5743, allocations: 13.28 kB / 0.5325 GB, free: 77.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003461/0.5747, allocations: 13.03 kB / 0.5325 GB, free: 77.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.5748, allocations: 14.77 kB / 0.5325 GB, free: 77.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001724/0.5751, allocations: 17.55 kB / 0.5325 GB, free: 77.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001325/0.5764, allocations: 307.9 kB / 0.5328 GB, free: 77.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.5765, allocations: 1.031 kB / 0.5328 GB, free: 77.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009007/0.5774, allocations: 90.12 kB / 0.5329 GB, free: 77.88 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.002942/0.5803, allocations: 2.234 MB / 0.5351 GB, free: 76.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001028/0.5814, allocations: 309.3 kB / 0.5354 GB, free: 76.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.5814, allocations: 1.062 kB / 0.5354 GB, free: 76.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002054/0.5816, allocations: 49.53 kB / 0.5354 GB, free: 76.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001285/0.5829, allocations: 223.1 kB / 0.5356 GB, free: 76.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006276/0.5893, allocations: 8.334 MB / 0.5438 GB, free: 68.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.5896, allocations: 0.8391 MB / 0.5446 GB, free: 67.95 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002777/0.5899, allocations: 52.67 kB / 0.5446 GB, free: 67.95 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002684/0.5902, allocations: 138 kB / 0.5448 GB, free: 67.86 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/0.5902, allocations: 0 / 0.5448 GB, free: 67.86 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03332/0.6236, allocations: 8.309 MB / 0.5529 GB, free: 63.23 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/0.6238, allocations: 258.3 kB / 0.5531 GB, free: 62.93 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.716/3.34, allocations: 0 / 0.5531 GB, free: 62.93 MB / 362.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)