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.0009982/0.0009982, allocations: 174.9 kB / 16.45 MB, free: 5.684 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.522/1.522, allocations: 205.4 MB / 222.6 MB, free: 9.102 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.0008799/0.0008799, allocations: 101 kB / 270.9 MB, free: 8.332 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.06785/0.06785, allocations: 12.59 MB / 331.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004151/0.0004151, allocations: 16 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0696/0.07003, allocations: 50.38 MB / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.00208/0.07216, allocations: 1.829 MB / 444.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.07369, allocations: 1.147 MB / 446 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001829/0.07389, allocations: 7.938 kB / 446 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003239/0.07423, allocations: 91.56 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002005/0.07444, allocations: 83.64 kB / 446.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000719/0.07517, allocations: 271.5 kB / 446.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002597/0.07544, allocations: 279.6 kB / 446.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001755/0.07562, allocations: 109.8 kB / 446.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001421/0.07577, allocations: 115.4 kB / 446.9 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.07592, allocations: 119.4 kB / 447.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.947e-05/0.07595, allocations: 8 kB / 447.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001262/0.07609, allocations: 55.91 kB / 447.1 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.522e-05/0.07616, allocations: 75.73 kB / 447.2 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.533e-05/0.07622, allocations: 73.52 kB / 447.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002383/0.07647, allocations: 279.7 kB / 447.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.07648, allocations: 3.938 kB / 447.5 MB, free: 11.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.07649, allocations: 0 / 447.5 MB, free: 11.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.0765, allocations: 0 / 447.5 MB, free: 11.24 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.0007485/0.07725, allocations: 0.6214 MB / 448.2 MB, free: 10.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.0773, allocations: 8.031 kB / 448.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.625e-05/0.07739, allocations: 51.42 kB / 448.2 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004139/0.07781, allocations: 343.3 kB / 448.6 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.07785, allocations: 20.56 kB / 448.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.282e-05/0.07789, allocations: 24 kB / 448.6 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008351/0.07874, allocations: 0.6822 MB / 449.3 MB, free: 9.336 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.07876, allocations: 0 / 449.3 MB, free: 9.336 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.388e-05/0.07879, allocations: 15.94 kB / 449.3 MB, free: 9.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.423e-05/0.07882, allocations: 11.98 kB / 449.3 MB, free: 9.309 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002374/0.07907, allocations: 143.7 kB / 449.4 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008031/0.07988, allocations: 1.156 MB / 450.6 MB, free: 7.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006113/0.0805, allocations: 0.6726 MB / 451.3 MB, free: 7.082 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002537/0.08077, allocations: 246.5 kB / 451.5 MB, free: 6.809 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.66e-05/0.08082, allocations: 12.06 kB / 451.5 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001645/0.08099, allocations: 121.8 kB / 451.6 MB, free: 6.656 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 3.306e-06/0.081, allocations: 4 kB / 451.7 MB, free: 6.652 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006971/0.0817, allocations: 468.6 kB / 452.1 MB, free: 6.188 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.08181, allocations: 396.8 kB / 452.5 MB, free: 5.715 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003368/0.08216, allocations: 449.4 kB / 452.9 MB, free: 5.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.08219, allocations: 33.7 kB / 453 MB, free: 5.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.137e-05/0.08228, allocations: 161 kB / 453.1 MB, free: 5.066 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.401e-05/0.08232, allocations: 43.69 kB / 453.2 MB, free: 5.023 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.11e-05/0.08233, allocations: 8 kB / 453.2 MB, free: 5.016 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.608e-05/0.08241, allocations: 354.8 kB / 453.5 MB, free: 4.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.08253, allocations: 72.83 kB / 453.6 MB, free: 4.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002091/0.08275, allocations: 362 kB / 453.9 MB, free: 4.098 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.08294, allocations: 136.1 kB / 454.1 MB, free: 3.965 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.08296, allocations: 4 kB / 454.1 MB, free: 3.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0005171/0.08348, allocations: 421.4 kB / 454.5 MB, free: 3.543 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.08351, allocations: 11.94 kB / 454.5 MB, free: 3.531 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.08352, allocations: 8 kB / 454.5 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.08355, allocations: 19.97 kB / 454.5 MB, free: 3.504 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002339/0.08379, allocations: 87.84 kB / 454.6 MB, free: 3.418 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.531e-05/0.08381, allocations: 19.92 kB / 454.6 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001907/0.08401, allocations: 39.69 kB / 454.7 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.336e-05/0.08404, allocations: 20 kB / 454.7 MB, free: 3.34 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.0001817/0.08423, allocations: 237.3 kB / 454.9 MB, free: 3.102 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003252/0.08456, allocations: 292.9 kB / 455.2 MB, free: 2.809 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.734e-05/0.08465, allocations: 55.27 kB / 455.3 MB, free: 2.746 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.57e-05/0.08467, allocations: 8 kB / 455.3 MB, free: 2.738 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.08468, allocations: 4 kB / 455.3 MB, free: 2.734 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.08469, allocations: 336 / 455.3 MB, free: 2.734 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002444/0.08494, allocations: 333.1 kB / 455.6 MB, free: 2.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.08496, allocations: 0 / 455.6 MB, free: 2.359 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.08516, allocations: 76.03 kB / 455.7 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.08518, allocations: 4 kB / 455.7 MB, free: 2.281 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.0852, allocations: 15.98 kB / 455.7 MB, free: 2.266 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.08521, allocations: 7.938 kB / 455.7 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.08522, allocations: 7.984 kB / 455.7 MB, free: 2.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004789/0.0857, allocations: 449.8 kB / 456.2 MB, free: 1.762 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.73e-05/0.08578, allocations: 124.6 kB / 456.3 MB, free: 1.621 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.895e-05/0.08584, allocations: 23.94 kB / 456.3 MB, free: 1.598 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.08596, allocations: 8 kB / 456.3 MB, free: 1.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.35e-05/0.08601, allocations: 16.05 kB / 456.3 MB, free: 1.574 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.423e-05/0.08604, allocations: 23.98 kB / 456.3 MB, free: 1.551 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002294/0.08628, allocations: 303.1 kB / 456.6 MB, free: 1.254 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08628, allocations: 0 / 456.6 MB, free: 1.254 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000383/0.08667, allocations: 79.89 kB / 456.7 MB, free: 1.176 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.0008255/0.0875, allocations: 455.2 kB / 457.2 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000438/0.08795, allocations: 289.3 kB / 457.5 MB, free: 456 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.08797, allocations: 0 / 457.5 MB, free: 456 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.988e-05/0.08805, allocations: 35.92 kB / 457.5 MB, free: 420 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006696/0.08873, allocations: 246.4 kB / 457.7 MB, free: 176 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.08985, allocations: 0.8264 MB / 458.6 MB, free: 15.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003731/0.09024, allocations: 0.832 MB / 459.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.624e-05/0.09034, allocations: 43.42 kB / 459.4 MB, free: 14.37 MB / 314.7 MB Notification: Performance of SimCode: time 2.3e-07/0.09035, allocations: 0 / 459.4 MB, free: 14.37 MB / 314.7 MB Notification: Performance of Templates: time 0.007628/0.09798, allocations: 5.202 MB / 464.6 MB, free: 9.164 MB / 314.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)