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.002031/0.002032, allocations: 181 kB / 8.049 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 2.196/2.196, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.0011/0.0011, allocations: 97.44 kB / 261.8 MB, free: 13.45 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.1304/0.1304, allocations: 12.59 MB / 322.3 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.437e-05/2.451e-05, allocations: 4 kB / 378.9 MB, free: 75.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09292/0.09297, allocations: 50.38 MB / 429.3 MB, free: 24.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.44/0.533, allocations: 82.91 MB / 0.5002 GB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.5333, allocations: 64.02 kB / 0.5003 GB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04199/0.5753, allocations: 10.14 MB / 0.5102 GB, free: 9.004 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5754, allocations: 4 kB / 0.5102 GB, free: 9 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.192e-05/0.5754, allocations: 11.66 kB / 0.5102 GB, free: 8.996 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.0009886/0.5764, allocations: 0.5995 MB / 0.5108 GB, free: 8.457 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.5765, allocations: 11.41 kB / 0.5108 GB, free: 8.457 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.5766, allocations: 45.59 kB / 0.5108 GB, free: 8.434 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007873/0.5774, allocations: 367.5 kB / 0.5112 GB, free: 8.156 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.248e-05/0.5775, allocations: 14.8 kB / 0.5112 GB, free: 8.152 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.333e-05/0.5775, allocations: 19.09 kB / 0.5112 GB, free: 8.152 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000406/0.578, allocations: 146 kB / 0.5114 GB, free: 8.133 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.5791, allocations: 0.6163 MB / 0.512 GB, free: 7.789 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.5791, allocations: 3.938 kB / 0.512 GB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.497e-05/0.5791, allocations: 3.875 kB / 0.512 GB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.5792, allocations: 11.5 kB / 0.512 GB, free: 7.781 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.5804, allocations: 1.09 MB / 0.513 GB, free: 6.797 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008229/0.5812, allocations: 0.6272 MB / 0.5136 GB, free: 6.23 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003487/0.5816, allocations: 214.1 kB / 0.5139 GB, free: 6.129 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.77e-05/0.5817, allocations: 19.56 kB / 0.5139 GB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001879/0.5819, allocations: 114.7 kB / 0.514 GB, free: 6.027 MB / 330.7 MB Notification: Performance of pre-optimization done (n=46): time 3.637e-06/0.5819, allocations: 0 / 0.514 GB, free: 6.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=46): time 0.0008246/0.5827, allocations: 326.8 kB / 0.5143 GB, free: 5.918 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.5829, allocations: 357.4 kB / 0.5146 GB, free: 5.504 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005452/0.5834, allocations: 352.8 kB / 0.515 GB, free: 5.359 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.836e-05/0.5835, allocations: 29.61 kB / 0.515 GB, free: 5.328 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.5836, allocations: 173.7 kB / 0.5152 GB, free: 5.223 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.5837, allocations: 49.72 kB / 0.5152 GB, free: 5.195 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.534e-05/0.5837, allocations: 0 / 0.5152 GB, free: 5.195 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.215e-05/0.5838, allocations: 351.4 kB / 0.5155 GB, free: 4.871 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.584, allocations: 57.33 kB / 0.5156 GB, free: 4.863 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000299/0.5843, allocations: 345 kB / 0.5159 GB, free: 4.492 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002472/0.5846, allocations: 117 kB / 0.516 GB, free: 4.457 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.5846, allocations: 3.844 kB / 0.516 GB, free: 4.457 MB / 330.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007735/0.5854, allocations: 358.6 kB / 0.5164 GB, free: 4.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.5854, allocations: 11.77 kB / 0.5164 GB, free: 4.316 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.5854, allocations: 7.625 kB / 0.5164 GB, free: 4.316 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.217e-05/0.5855, allocations: 15.5 kB / 0.5164 GB, free: 4.316 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004792/0.586, allocations: 84.59 kB / 0.5165 GB, free: 4.301 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.848e-05/0.586, allocations: 19.61 kB / 0.5165 GB, free: 4.293 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003367/0.5863, allocations: 27.22 kB / 0.5165 GB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-05/0.5864, allocations: 27.03 kB / 0.5166 GB, free: 4.277 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.0002127/0.5866, allocations: 157.5 kB / 0.5167 GB, free: 4.141 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000544/0.5872, allocations: 252.9 kB / 0.517 GB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003734/0.5876, allocations: 141.8 kB / 0.5171 GB, free: 3.988 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.5876, allocations: 11.81 kB / 0.5171 GB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.5876, allocations: 7.781 kB / 0.5171 GB, free: 3.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.5876, allocations: 288 / 0.5171 GB, free: 3.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003698/0.588, allocations: 293.1 kB / 0.5174 GB, free: 3.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.588, allocations: 3.844 kB / 0.5174 GB, free: 3.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000461/0.5885, allocations: 72.06 kB / 0.5175 GB, free: 3.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.144e-05/0.5885, allocations: 7.859 kB / 0.5175 GB, free: 3.738 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.5886, allocations: 7.828 kB / 0.5175 GB, free: 3.734 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/0.5886, allocations: 3.844 kB / 0.5175 GB, free: 3.734 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.184e-06/0.5886, allocations: 11.86 kB / 0.5175 GB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007664/0.5894, allocations: 0.5033 MB / 0.518 GB, free: 3.371 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00013/0.5895, allocations: 135.2 kB / 0.5181 GB, free: 3.246 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.489e-05/0.5896, allocations: 11.22 kB / 0.5181 GB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.5898, allocations: 11.89 kB / 0.5181 GB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.122e-05/0.5899, allocations: 11.67 kB / 0.5182 GB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.706e-05/0.5899, allocations: 15.03 kB / 0.5182 GB, free: 3.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003669/0.5903, allocations: 266.4 kB / 0.5184 GB, free: 3.129 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5903, allocations: 0 / 0.5184 GB, free: 3.129 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006868/0.591, allocations: 76.48 kB / 0.5185 GB, free: 3.113 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.001035/0.5921, allocations: 392.8 kB / 0.5189 GB, free: 2.816 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006994/0.5928, allocations: 272.8 kB / 0.5191 GB, free: 2.762 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.5928, allocations: 0 / 0.5191 GB, free: 2.762 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.5929, allocations: 48.89 kB / 0.5192 GB, free: 2.754 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009932/0.594, allocations: 206 kB / 0.5194 GB, free: 2.703 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/0.5953, allocations: 0.5447 MB / 0.5199 GB, free: 2.414 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.5956, allocations: 0.8394 MB / 0.5207 GB, free: 1.652 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002427/0.5959, allocations: 54.2 kB / 0.5208 GB, free: 1.633 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.596, allocations: 38.33 kB / 0.5208 GB, free: 1.621 MB / 330.7 MB Notification: Performance of SimCode: time 2.053e-06/0.596, allocations: 0 / 0.5208 GB, free: 1.621 MB / 330.7 MB Notification: Performance of Templates: time 0.01312/0.6092, allocations: 4.289 MB / 0.525 GB, free: 15.52 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)