Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002312/0.002311, allocations: 186.5 kB / 16.44 MB, free: 5.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.93/1.93, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.001121/0.00112, allocations: 93.48 kB / 270.9 MB, free: 8.375 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.09719/0.09719, allocations: 12.6 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007643/0.0007645, allocations: 16 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08955/0.09036, allocations: 50.36 MB / 442.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4284/0.5188, allocations: 83.67 MB / 0.5137 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.5191, allocations: 64.94 kB / 0.5137 GB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04185/0.561, allocations: 10.25 MB / 0.5237 GB, free: 5.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.561, allocations: 0 / 0.5237 GB, free: 5.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.888e-05/0.5611, allocations: 8 kB / 0.5238 GB, free: 5.082 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.001082/0.5622, allocations: 0.6576 MB / 0.5244 GB, free: 4.395 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.5622, allocations: 12.03 kB / 0.5244 GB, free: 4.383 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.5624, allocations: 43.44 kB / 0.5244 GB, free: 4.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007122/0.5631, allocations: 375.2 kB / 0.5248 GB, free: 3.961 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.248e-05/0.5631, allocations: 23.69 kB / 0.5248 GB, free: 3.949 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.714e-05/0.5632, allocations: 27.25 kB / 0.5249 GB, free: 3.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.5645, allocations: 0.6806 MB / 0.5255 GB, free: 3.297 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.5645, allocations: 4 kB / 0.5255 GB, free: 3.293 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.72e-05/0.5646, allocations: 10.75 kB / 0.5255 GB, free: 3.289 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.5646, allocations: 4 kB / 0.5255 GB, free: 3.285 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004482/0.5651, allocations: 149.7 kB / 0.5257 GB, free: 3.176 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.5663, allocations: 1.166 MB / 0.5268 GB, free: 2.008 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009427/0.5672, allocations: 0.6597 MB / 0.5275 GB, free: 1.27 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.869e-05/0.5673, allocations: 15.48 kB / 0.5275 GB, free: 1.258 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002335/0.5675, allocations: 124 kB / 0.5276 GB, free: 1.133 MB / 330.7 MB Notification: Performance of pre-optimization done (n=46): time 3.887e-06/0.5676, allocations: 3.984 kB / 0.5276 GB, free: 1.129 MB / 330.7 MB Notification: Performance of matching and sorting (n=46): time 0.00137/0.5689, allocations: 469.5 kB / 0.528 GB, free: 0.7617 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/0.5691, allocations: 368 kB / 0.5284 GB, free: 344 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006203/0.5697, allocations: 402.5 kB / 0.5288 GB, free: 12 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.811e-05/0.5698, allocations: 36.27 kB / 0.5288 GB, free: 15.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.57, allocations: 208.9 kB / 0.529 GB, free: 15.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.894e-05/0.5701, allocations: 45.66 kB / 0.5291 GB, free: 15.79 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.35e-05/0.5701, allocations: 7.438 kB / 0.5291 GB, free: 15.78 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.5703, allocations: 329.1 kB / 0.5294 GB, free: 15.46 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/0.5705, allocations: 76.89 kB / 0.5295 GB, free: 15.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004816/0.571, allocations: 364.4 kB / 0.5298 GB, free: 14.95 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003468/0.5714, allocations: 138.5 kB / 0.5299 GB, free: 14.85 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.5714, allocations: 0 / 0.5299 GB, free: 14.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009739/0.5724, allocations: 399.3 kB / 0.5303 GB, free: 14.53 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.5724, allocations: 12.25 kB / 0.5303 GB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.073e-05/0.5724, allocations: 15.89 kB / 0.5303 GB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.293e-05/0.5725, allocations: 16 kB / 0.5304 GB, free: 14.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005293/0.573, allocations: 91.08 kB / 0.5304 GB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.664e-05/0.5731, allocations: 15.94 kB / 0.5305 GB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003519/0.5734, allocations: 38.36 kB / 0.5305 GB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.485e-05/0.5735, allocations: 22.38 kB / 0.5305 GB, free: 14.34 MB / 346.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.000431/0.5739, allocations: 233.3 kB / 0.5307 GB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006827/0.5746, allocations: 280.1 kB / 0.531 GB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004817/0.5751, allocations: 147.4 kB / 0.5311 GB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.58e-05/0.5752, allocations: 12.05 kB / 0.5312 GB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.5752, allocations: 4 kB / 0.5312 GB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.511e-05/0.5752, allocations: 11.97 kB / 0.5312 GB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005129/0.5757, allocations: 344 kB / 0.5315 GB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.5757, allocations: 0 / 0.5315 GB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004739/0.5762, allocations: 71.16 kB / 0.5316 GB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.141e-05/0.5763, allocations: 4 kB / 0.5316 GB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.97e-05/0.5763, allocations: 17.8 kB / 0.5316 GB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.025e-05/0.5763, allocations: 7.938 kB / 0.5316 GB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.5763, allocations: 3.953 kB / 0.5316 GB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.5774, allocations: 0.5406 MB / 0.5321 GB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001784/0.5776, allocations: 139.3 kB / 0.5323 GB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.619e-05/0.5777, allocations: 15.11 kB / 0.5323 GB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.5779, allocations: 18.69 kB / 0.5323 GB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.544e-05/0.578, allocations: 11.98 kB / 0.5323 GB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-05/0.5781, allocations: 23.61 kB / 0.5323 GB, free: 12.61 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000527/0.5786, allocations: 301.7 kB / 0.5326 GB, free: 12.37 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5786, allocations: 0 / 0.5326 GB, free: 12.37 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006963/0.5793, allocations: 89.98 kB / 0.5327 GB, free: 12.3 MB / 346.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.00134/0.5807, allocations: 475.3 kB / 0.5332 GB, free: 11.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009283/0.5816, allocations: 311.2 kB / 0.5335 GB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.5816, allocations: 0 / 0.5335 GB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001602/0.5818, allocations: 41.67 kB / 0.5335 GB, free: 11.56 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001097/0.5829, allocations: 240.8 kB / 0.5337 GB, free: 11.38 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/0.5848, allocations: 0.8303 MB / 0.5345 GB, free: 10.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005204/0.5854, allocations: 0.8379 MB / 0.5354 GB, free: 9.711 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.5855, allocations: 43.17 kB / 0.5354 GB, free: 9.672 MB / 346.7 MB Notification: Performance of SimCode: time 1.183e-06/0.5856, allocations: 0 / 0.5354 GB, free: 9.672 MB / 346.7 MB Notification: Performance of Templates: time 0.01294/0.5985, allocations: 5.264 MB / 0.5405 GB, free: 4.441 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)