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/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/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.001043/0.001043, allocations: 181.6 kB / 17.46 MB, free: 4.363 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.263/1.263, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.0007384/0.0007384, allocations: 85.44 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.07446/0.07446, allocations: 12.2 MB / 332.4 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004081/0.0004083, allocations: 20 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09775/0.09818, allocations: 50.28 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3363/0.4345, allocations: 83.66 MB / 0.5143 GB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.4348, allocations: 58.58 kB / 0.5144 GB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02489/0.4597, allocations: 10.25 MB / 0.5244 GB, free: 5.566 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.4597, allocations: 0 / 0.5244 GB, free: 5.566 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.123e-05/0.4598, allocations: 8 kB / 0.5244 GB, free: 5.559 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.001124/0.4609, allocations: 0.6536 MB / 0.525 GB, free: 4.875 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.461, allocations: 8.031 kB / 0.525 GB, free: 4.867 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/0.4612, allocations: 48 kB / 0.5251 GB, free: 4.824 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006375/0.4618, allocations: 385.2 kB / 0.5255 GB, free: 4.438 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.527e-05/0.4619, allocations: 22.44 kB / 0.5255 GB, free: 4.426 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.157e-05/0.4619, allocations: 23.25 kB / 0.5255 GB, free: 4.41 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009251/0.4628, allocations: 0.6835 MB / 0.5262 GB, free: 3.777 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.4629, allocations: 192 / 0.5262 GB, free: 3.777 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.074e-05/0.4629, allocations: 15.06 kB / 0.5262 GB, free: 3.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.4629, allocations: 11.98 kB / 0.5262 GB, free: 3.758 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002949/0.4632, allocations: 155 kB / 0.5263 GB, free: 3.645 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009524/0.4642, allocations: 1.161 MB / 0.5275 GB, free: 2.484 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006087/0.4648, allocations: 0.6591 MB / 0.5281 GB, free: 1.754 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002748/0.4651, allocations: 239.9 kB / 0.5283 GB, free: 1.543 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.727e-05/0.4652, allocations: 11.98 kB / 0.5284 GB, free: 1.531 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001903/0.4654, allocations: 116.1 kB / 0.5285 GB, free: 1.414 MB / 330.7 MB Notification: Performance of pre-optimization done (n=46): time 3.777e-06/0.4654, allocations: 0 / 0.5285 GB, free: 1.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=46): time 0.0007947/0.4662, allocations: 476.5 kB / 0.5289 GB, free: 1.043 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000127/0.4663, allocations: 375 kB / 0.5293 GB, free: 0.6133 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004246/0.4667, allocations: 441.8 kB / 0.5297 GB, free: 268 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.877e-05/0.4668, allocations: 35.14 kB / 0.5297 GB, free: 232 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.4669, allocations: 157.2 kB / 0.5299 GB, free: 128 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.665e-05/0.467, allocations: 52.47 kB / 0.5299 GB, free: 88 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.422e-05/0.467, allocations: 7.625 kB / 0.5299 GB, free: 88 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.4672, allocations: 354.8 kB / 0.5303 GB, free: 15.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.4674, allocations: 72.64 kB / 0.5303 GB, free: 15.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003815/0.4677, allocations: 364.7 kB / 0.5307 GB, free: 15.24 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000554/0.4683, allocations: 445 kB / 0.5311 GB, free: 14.74 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.4683, allocations: 0 / 0.5311 GB, free: 14.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007223/0.4691, allocations: 425.1 kB / 0.5315 GB, free: 14.39 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.4691, allocations: 15.94 kB / 0.5315 GB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.4691, allocations: 11.94 kB / 0.5316 GB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.598e-05/0.4691, allocations: 12 kB / 0.5316 GB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.4694, allocations: 86.52 kB / 0.5316 GB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.799e-05/0.4695, allocations: 16.5 kB / 0.5317 GB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002155/0.4697, allocations: 44.17 kB / 0.5317 GB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.8e-05/0.4697, allocations: 26.31 kB / 0.5317 GB, free: 14.2 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.0002863/0.47, allocations: 226.9 kB / 0.5319 GB, free: 14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004268/0.4704, allocations: 293 kB / 0.5322 GB, free: 13.76 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003235/0.4708, allocations: 157.1 kB / 0.5324 GB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.4708, allocations: 8 kB / 0.5324 GB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.4708, allocations: 0 / 0.5324 GB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.4708, allocations: 7.984 kB / 0.5324 GB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004273/0.4713, allocations: 330.5 kB / 0.5327 GB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.4713, allocations: 4 kB / 0.5327 GB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002421/0.4715, allocations: 71.53 kB / 0.5328 GB, free: 13.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.477e-06/0.4716, allocations: 8 kB / 0.5328 GB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.874e-05/0.4716, allocations: 19.05 kB / 0.5328 GB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.4716, allocations: 4 kB / 0.5328 GB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.4716, allocations: 8 kB / 0.5328 GB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006567/0.4723, allocations: 452.5 kB / 0.5332 GB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.4724, allocations: 131.8 kB / 0.5334 GB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.848e-05/0.4725, allocations: 19.42 kB / 0.5334 GB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.4726, allocations: 18.62 kB / 0.5334 GB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.044e-05/0.4727, allocations: 19.17 kB / 0.5334 GB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.847e-05/0.4727, allocations: 15.31 kB / 0.5334 GB, free: 12.61 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003491/0.4731, allocations: 306.2 kB / 0.5337 GB, free: 12.37 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4731, allocations: 0 / 0.5337 GB, free: 12.37 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004914/0.4736, allocations: 90.69 kB / 0.5338 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.001011/0.4746, allocations: 476.2 kB / 0.5343 GB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005798/0.4752, allocations: 309.5 kB / 0.5346 GB, free: 11.61 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4752, allocations: 0 / 0.5346 GB, free: 11.61 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.4753, allocations: 42.17 kB / 0.5346 GB, free: 11.58 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008931/0.4762, allocations: 244.5 kB / 0.5348 GB, free: 11.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001189/0.4774, allocations: 0.8399 MB / 0.5357 GB, free: 10.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004172/0.4778, allocations: 0.8304 MB / 0.5365 GB, free: 9.727 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.318e-05/0.4779, allocations: 42.8 kB / 0.5365 GB, free: 9.688 MB / 346.7 MB Notification: Performance of SimCode: time 5.21e-07/0.478, allocations: 0 / 0.5365 GB, free: 9.688 MB / 346.7 MB Notification: Performance of Templates: time 0.008018/0.486, allocations: 5.286 MB / 0.5417 GB, free: 4.445 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)