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.001061/0.001061, allocations: 177.6 kB / 8.045 MB, free: 1.027 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.399/1.399, allocations: 205.3 MB / 213.8 MB, free: 1.68 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001054/0.001053, allocations: 83.89 kB / 261.8 MB, free: 1.625 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.06602/0.06602, allocations: 12.6 MB / 322.3 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.175e-05/2.188e-05, allocations: 4 kB / 378.9 MB, free: 6.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.23, allocations: 50.38 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1053/0.3353, allocations: 82.92 MB / 0.5002 GB, free: 15.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/0.3355, allocations: 63.98 kB / 0.5003 GB, free: 15.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02762/0.3632, allocations: 10.14 MB / 0.5102 GB, free: 5.102 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3632, allocations: 0 / 0.5102 GB, free: 5.102 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.091e-05/0.3633, allocations: 8 kB / 0.5102 GB, free: 5.094 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.0008893/0.3642, allocations: 0.6062 MB / 0.5108 GB, free: 4.438 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.3642, allocations: 8.031 kB / 0.5108 GB, free: 4.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.626e-05/0.3643, allocations: 43.44 kB / 0.5108 GB, free: 4.387 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005991/0.3649, allocations: 372.5 kB / 0.5112 GB, free: 3.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.365, allocations: 20 kB / 0.5112 GB, free: 3.961 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.248e-05/0.365, allocations: 16 kB / 0.5112 GB, free: 3.945 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003131/0.3653, allocations: 141.1 kB / 0.5113 GB, free: 3.809 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008827/0.3662, allocations: 0.6136 MB / 0.5119 GB, free: 3.125 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.3663, allocations: 15.86 kB / 0.512 GB, free: 3.109 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.547e-05/0.3663, allocations: 4 kB / 0.512 GB, free: 3.105 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.3663, allocations: 4 kB / 0.512 GB, free: 3.102 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009611/0.3673, allocations: 1.098 MB / 0.513 GB, free: 1.918 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006111/0.3679, allocations: 0.6223 MB / 0.5137 GB, free: 1.148 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002525/0.3682, allocations: 221.1 kB / 0.5139 GB, free: 0.9023 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.831e-05/0.3682, allocations: 16.34 kB / 0.5139 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001656/0.3684, allocations: 113.9 kB / 0.514 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 1.903e-06/0.3684, allocations: 0 / 0.514 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005361/0.3689, allocations: 326.8 kB / 0.5143 GB, free: 440 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001809/0.3691, allocations: 350.1 kB / 0.5146 GB, free: 8 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2405/0.6096, allocations: 348.4 kB / 0.515 GB, free: 88.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.6098, allocations: 30.23 kB / 0.515 GB, free: 88.64 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.61, allocations: 165.3 kB / 0.5151 GB, free: 88.56 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.397e-05/0.61, allocations: 52.48 kB / 0.5152 GB, free: 88.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.228e-05/0.61, allocations: 0 / 0.5152 GB, free: 88.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.131e-05/0.6101, allocations: 356.4 kB / 0.5155 GB, free: 88.24 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.6103, allocations: 56.89 kB / 0.5156 GB, free: 88.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.6105, allocations: 349.1 kB / 0.5159 GB, free: 87.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001762/0.6107, allocations: 120.6 kB / 0.516 GB, free: 87.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-06/0.6107, allocations: 3.031 kB / 0.516 GB, free: 87.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006093/0.6113, allocations: 354.1 kB / 0.5164 GB, free: 87.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.6113, allocations: 11.11 kB / 0.5164 GB, free: 87.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.3e-05/0.6114, allocations: 10.09 kB / 0.5164 GB, free: 87.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.97e-05/0.6114, allocations: 13.09 kB / 0.5164 GB, free: 87.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003465/0.6118, allocations: 88.77 kB / 0.5165 GB, free: 87.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.222e-05/0.6118, allocations: 15.64 kB / 0.5165 GB, free: 87.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.612, allocations: 28.66 kB / 0.5165 GB, free: 87.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.271e-05/0.612, allocations: 25.25 kB / 0.5166 GB, free: 87.83 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 () * 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.0001451/0.6122, allocations: 155.7 kB / 0.5167 GB, free: 87.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003817/0.6126, allocations: 258 kB / 0.517 GB, free: 87.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002527/0.6128, allocations: 140.2 kB / 0.5171 GB, free: 87.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-06/0.6128, allocations: 6.469 kB / 0.5171 GB, free: 87.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.6129, allocations: 7.156 kB / 0.5171 GB, free: 87.6 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.709e-06/0.6129, allocations: 5.469 kB / 0.5171 GB, free: 87.6 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003222/0.6132, allocations: 284.9 kB / 0.5174 GB, free: 87.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.6132, allocations: 5.859 kB / 0.5174 GB, free: 87.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000278/0.6135, allocations: 69.5 kB / 0.5175 GB, free: 87.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.6135, allocations: 4.469 kB / 0.5175 GB, free: 87.44 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/0.6136, allocations: 10.3 kB / 0.5175 GB, free: 87.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.945e-06/0.6136, allocations: 13.22 kB / 0.5175 GB, free: 87.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.6136, allocations: 2.188 kB / 0.5175 GB, free: 87.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006077/0.6142, allocations: 0.5103 MB / 0.518 GB, free: 87.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.6143, allocations: 133.3 kB / 0.5181 GB, free: 86.99 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.124e-05/0.6144, allocations: 10.47 kB / 0.5181 GB, free: 86.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.6145, allocations: 5.109 kB / 0.5181 GB, free: 86.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.166e-05/0.6146, allocations: 13.06 kB / 0.5181 GB, free: 86.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.127e-05/0.6146, allocations: 16.89 kB / 0.5182 GB, free: 86.99 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002876/0.6149, allocations: 263 kB / 0.5184 GB, free: 86.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6149, allocations: 0 / 0.5184 GB, free: 86.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004889/0.6154, allocations: 83.45 kB / 0.5185 GB, free: 86.91 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) * 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.0008788/0.6163, allocations: 394.1 kB / 0.5189 GB, free: 86.67 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004718/0.6168, allocations: 271 kB / 0.5191 GB, free: 86.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6168, allocations: 0 / 0.5191 GB, free: 86.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.685e-05/0.6169, allocations: 42.56 kB / 0.5192 GB, free: 86.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006846/0.6176, allocations: 210 kB / 0.5194 GB, free: 86.61 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009416/0.6185, allocations: 0.5476 MB / 0.5199 GB, free: 86.37 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.6189, allocations: 0.8403 MB / 0.5207 GB, free: 85.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.619, allocations: 51.53 kB / 0.5208 GB, free: 85.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.752e-05/0.6191, allocations: 38.8 kB / 0.5208 GB, free: 85.65 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.6191, allocations: 0 / 0.5208 GB, free: 85.65 MB / 362.7 MB Notification: Performance of Templates: time 0.008917/0.628, allocations: 4.287 MB / 0.525 GB, free: 85.3 MB / 362.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)