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.001791/0.001791, allocations: 173.7 kB / 16.76 MB, free: 4.906 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.662/1.662, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0008169/0.0008167, allocations: 86.53 kB / 271.3 MB, free: 8.238 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.06347/0.06347, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004432/0.0004434, allocations: 16 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08331/0.08377, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.002367/0.08617, allocations: 1.833 MB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001728/0.08793, allocations: 1.132 MB / 445.9 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001993/0.08816, allocations: 7.938 kB / 445.9 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003856/0.08856, allocations: 75.66 kB / 446 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002476/0.08882, allocations: 83.64 kB / 446.1 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009088/0.08974, allocations: 279.4 kB / 446.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003234/0.09008, allocations: 283.6 kB / 446.6 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.0903, allocations: 123.4 kB / 446.8 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001704/0.09048, allocations: 115.4 kB / 446.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001894/0.09068, allocations: 115.4 kB / 447 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.354e-05/0.09072, allocations: 4 kB / 447 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.09087, allocations: 51.97 kB / 447 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.267e-05/0.09096, allocations: 83.67 kB / 447.1 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.09108, allocations: 144.9 kB / 447.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003044/0.09139, allocations: 283.6 kB / 447.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.09141, allocations: 3.938 kB / 447.5 MB, free: 11.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.09141, allocations: 4 kB / 447.5 MB, free: 11.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.09143, allocations: 0 / 447.5 MB, free: 11.5 MB / 298.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.0008165/0.09225, allocations: 0.6098 MB / 448.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.0923, allocations: 8.031 kB / 448.2 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.79e-05/0.09239, allocations: 52.38 kB / 448.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004084/0.09281, allocations: 348.4 kB / 448.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.09284, allocations: 20.94 kB / 448.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.399e-05/0.09288, allocations: 28.12 kB / 448.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008365/0.09372, allocations: 0.6979 MB / 449.3 MB, free: 9.574 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.09375, allocations: 3.938 kB / 449.3 MB, free: 9.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.969e-05/0.09379, allocations: 12 kB / 449.3 MB, free: 9.559 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.362e-05/0.09382, allocations: 8 kB / 449.3 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002516/0.09408, allocations: 155.7 kB / 449.5 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008569/0.09494, allocations: 1.137 MB / 450.6 MB, free: 8.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006528/0.09561, allocations: 0.6841 MB / 451.3 MB, free: 7.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002602/0.09588, allocations: 237.4 kB / 451.5 MB, free: 7.055 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.577e-05/0.09594, allocations: 23.86 kB / 451.5 MB, free: 7.031 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001679/0.09611, allocations: 113.9 kB / 451.7 MB, free: 6.898 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 3.837e-06/0.09612, allocations: 0 / 451.7 MB, free: 6.898 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.0007383/0.09687, allocations: 468.6 kB / 452.1 MB, free: 6.434 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.09699, allocations: 396.8 kB / 452.5 MB, free: 5.961 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003765/0.09738, allocations: 449.4 kB / 452.9 MB, free: 5.516 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.09741, allocations: 37.7 kB / 453 MB, free: 5.473 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.537e-05/0.0975, allocations: 165 kB / 453.1 MB, free: 5.305 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.547e-05/0.09755, allocations: 35.69 kB / 453.2 MB, free: 5.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.287e-05/0.09756, allocations: 12 kB / 453.2 MB, free: 5.258 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.075e-05/0.09764, allocations: 350.8 kB / 453.5 MB, free: 4.906 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.09777, allocations: 72.83 kB / 453.6 MB, free: 4.836 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002064/0.09799, allocations: 358 kB / 454 MB, free: 4.348 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003487/0.09834, allocations: 438.9 kB / 454.4 MB, free: 3.793 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.289e-06/0.09836, allocations: 4 kB / 454.4 MB, free: 3.789 MB / 298.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0005665/0.09893, allocations: 425.1 kB / 454.8 MB, free: 3.367 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.09896, allocations: 12 kB / 454.8 MB, free: 3.355 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.09898, allocations: 11.94 kB / 454.8 MB, free: 3.344 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.221e-05/0.09901, allocations: 12 kB / 454.8 MB, free: 3.332 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002273/0.09924, allocations: 83.84 kB / 454.9 MB, free: 3.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.559e-05/0.09926, allocations: 23.91 kB / 454.9 MB, free: 3.227 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001842/0.09945, allocations: 39.69 kB / 455 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.485e-05/0.09949, allocations: 28 kB / 455 MB, free: 3.16 MB / 298.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,ClockedSignalToSquare.y2,$CLKPRE.ClockedSignalToSquare.y2,ClockedSignalToSquare.y,ClockedSignalToSquare.u,superSample1.y,superSample1.u,subSample1.y,backSample1.y,backSample1.u,shiftSample1.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,fractionalDelay.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,fractionalDelay.first) * Number of discrete states: 0 () * Number of clocked states: 4 (ClockedSignalToSquare.y2,upSample1.b_super,UnitDelay1.u,upSample1.b) * 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.0001865/0.09968, allocations: 237.7 kB / 455.2 MB, free: 2.922 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003232/0.1, allocations: 288.9 kB / 455.5 MB, free: 2.633 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.023e-05/0.1001, allocations: 55.27 kB / 455.6 MB, free: 2.574 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-05/0.1001, allocations: 8 kB / 455.6 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.1001, allocations: 4.188 kB / 455.6 MB, free: 2.562 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1001, allocations: 8 kB / 455.6 MB, free: 2.555 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/0.1004, allocations: 337.1 kB / 455.9 MB, free: 2.176 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.1004, allocations: 4 kB / 455.9 MB, free: 2.172 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001846/0.1006, allocations: 67.84 kB / 456 MB, free: 2.105 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.072e-06/0.1006, allocations: 4 kB / 456 MB, free: 2.102 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.1006, allocations: 15.98 kB / 456 MB, free: 2.086 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1007, allocations: 4 kB / 456 MB, free: 2.082 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.1007, allocations: 4 kB / 456 MB, free: 2.078 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000478/0.1011, allocations: 457.7 kB / 456.5 MB, free: 1.582 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.133e-05/0.1012, allocations: 132.5 kB / 456.6 MB, free: 1.434 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.985e-05/0.1013, allocations: 8 kB / 456.6 MB, free: 1.426 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.1014, allocations: 19.94 kB / 456.6 MB, free: 1.406 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.65e-05/0.1015, allocations: 7.984 kB / 456.6 MB, free: 1.398 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.601e-05/0.1015, allocations: 28.05 kB / 456.7 MB, free: 1.371 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002367/0.1017, allocations: 303.1 kB / 457 MB, free: 1.074 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1017, allocations: 3.938 kB / 457 MB, free: 1.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004076/0.1022, allocations: 72 kB / 457 MB, free: 1 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 44 ($whenCondition1,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,ClockedSignalToSquare.y,hold1.y,ClockedSignalToSquare.y2,superSample1.y,ClockedSignalToSquare.u,subSample1.y,superSample1.u,backSample1.y,shiftSample1.y,backSample1.u,upSample1.y,upSample1.b_super,upSample1.u_super,fractionalDelay.y,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]) * Number of discrete states: 2 (integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (ClockedSignalToSquare.y2,upSample1.b_super,upSample1.b,UnitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 41 * Array equations: 1 * 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.0008946/0.1031, allocations: 457.8 kB / 457.5 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004363/0.1035, allocations: 287.9 kB / 457.8 MB, free: 272 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.1035, allocations: 5.938 kB / 457.8 MB, free: 268 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.902e-05/0.1036, allocations: 35.92 kB / 457.8 MB, free: 232 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007915/0.1044, allocations: 246.1 kB / 458 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/0.1057, allocations: 0.8261 MB / 458.9 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004899/0.1062, allocations: 0.832 MB / 459.7 MB, free: 14.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.1063, allocations: 43.42 kB / 459.7 MB, free: 14.19 MB / 314.7 MB Notification: Performance of SimCode: time 5.11e-07/0.1063, allocations: 0 / 459.7 MB, free: 14.19 MB / 314.7 MB Notification: Performance of Templates: time 0.009378/0.1157, allocations: 5.179 MB / 464.9 MB, free: 9.004 MB / 314.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)