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.0009721/0.0009723, allocations: 174.3 kB / 16.76 MB, free: 5.051 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.217/1.217, allocations: 205 MB / 222.5 MB, free: 9.148 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.0006853/0.0006853, allocations: 96.05 kB / 270.5 MB, free: 8.672 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.06691/0.06691, allocations: 12.57 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003191/0.0003191, allocations: 12 kB / 391.7 MB, free: 66.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0631/0.06343, allocations: 49.97 MB / 441.7 MB, free: 16.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.0019/0.06536, allocations: 1.91 MB / 443.6 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.06674, allocations: 1.209 MB / 444.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.06687, allocations: 7.938 kB / 444.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003179/0.0672, allocations: 83.64 kB / 444.9 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001545/0.06736, allocations: 91.64 kB / 445 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006203/0.06799, allocations: 283.5 kB / 445.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002182/0.06822, allocations: 299.6 kB / 445.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001696/0.0684, allocations: 119.4 kB / 445.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.06851, allocations: 111.4 kB / 445.8 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.06864, allocations: 135.2 kB / 445.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.635e-05/0.06867, allocations: 8 kB / 445.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.06879, allocations: 51.97 kB / 446 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.397e-05/0.06887, allocations: 75.75 kB / 446 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.576e-05/0.06896, allocations: 135 kB / 446.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002186/0.06919, allocations: 283.6 kB / 446.4 MB, free: 11.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.0692, allocations: 4 kB / 446.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.06921, allocations: 0 / 446.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.06922, allocations: 4 kB / 446.5 MB, free: 11.59 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.0005852/0.06981, allocations: 0.6098 MB / 447.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.915e-05/0.06984, allocations: 12.03 kB / 447.1 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.857e-05/0.06992, allocations: 48.38 kB / 447.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.07024, allocations: 356.3 kB / 447.5 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.07027, allocations: 16.94 kB / 447.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.0703, allocations: 36.12 kB / 447.5 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007314/0.07104, allocations: 0.6824 MB / 448.2 MB, free: 9.672 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.07106, allocations: 7.938 kB / 448.2 MB, free: 9.664 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.07109, allocations: 12 kB / 448.2 MB, free: 9.652 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.982e-05/0.07111, allocations: 8 kB / 448.2 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002186/0.07134, allocations: 151.7 kB / 448.4 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006496/0.072, allocations: 1.144 MB / 449.5 MB, free: 8.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005532/0.07256, allocations: 0.6939 MB / 450.2 MB, free: 7.402 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002338/0.07281, allocations: 242.2 kB / 450.5 MB, free: 7.133 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.07285, allocations: 23.98 kB / 450.5 MB, free: 7.109 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001451/0.073, allocations: 113.9 kB / 450.6 MB, free: 6.977 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 1.994e-06/0.07301, allocations: 3.938 kB / 450.6 MB, free: 6.973 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006827/0.0737, allocations: 472.6 kB / 451.1 MB, free: 6.504 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.616e-05/0.0738, allocations: 396.8 kB / 451.4 MB, free: 6.031 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003167/0.07412, allocations: 445.5 kB / 451.9 MB, free: 5.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.07415, allocations: 37.7 kB / 451.9 MB, free: 5.547 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.886e-05/0.07423, allocations: 161 kB / 452.1 MB, free: 5.383 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.358e-05/0.07427, allocations: 43.67 kB / 452.1 MB, free: 5.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.629e-05/0.07433, allocations: 57.69 kB / 452.2 MB, free: 5.277 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.801e-05/0.07439, allocations: 354.8 kB / 452.5 MB, free: 4.922 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.07451, allocations: 76.77 kB / 452.6 MB, free: 4.848 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/0.07472, allocations: 358 kB / 452.9 MB, free: 4.359 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.07504, allocations: 434.7 kB / 453.4 MB, free: 3.809 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.07505, allocations: 3.938 kB / 453.4 MB, free: 3.805 MB / 298.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0004863/0.07554, allocations: 429.1 kB / 453.8 MB, free: 3.379 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.07557, allocations: 8 kB / 453.8 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.07558, allocations: 12 kB / 453.8 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.07561, allocations: 12.28 kB / 453.8 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.07582, allocations: 87.78 kB / 453.9 MB, free: 3.262 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.07585, allocations: 23.91 kB / 453.9 MB, free: 3.238 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001683/0.07602, allocations: 43.62 kB / 454 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.07605, allocations: 24 kB / 454 MB, free: 3.172 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 ($PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition1,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,ClockedSignalToSquare.y,$CLKPRE.ClockedSignalToSquare.y2,ClockedSignalToSquare.y2,ClockedSignalToSquare.u,superSample1.y,superSample1.u,subSample1.y,backSample1.y,backSample1.u,shiftSample1.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,fractionalDelay.y,fractionalDelay.u_buffer[1],fractionalDelay.u,UnitDelay1.y,$CLKPRE.UnitDelay1.u,UnitDelay1.u,$CLKPRE.upSample1.b,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.y,hold1.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001558/0.07621, allocations: 229.8 kB / 454.2 MB, free: 2.941 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003164/0.07654, allocations: 296.7 kB / 454.5 MB, free: 2.645 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.127e-05/0.07662, allocations: 51.28 kB / 454.6 MB, free: 2.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.514e-05/0.07664, allocations: 12.17 kB / 454.6 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.07665, allocations: 8 kB / 454.6 MB, free: 2.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.07666, allocations: 4 kB / 454.6 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002132/0.07688, allocations: 329.1 kB / 454.9 MB, free: 2.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.07689, allocations: 4 kB / 454.9 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.07708, allocations: 68.22 kB / 455 MB, free: 2.125 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.0771, allocations: 4 kB / 455 MB, free: 2.121 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.07712, allocations: 15.98 kB / 455 MB, free: 2.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.07713, allocations: 4 kB / 455 MB, free: 2.102 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.07714, allocations: 7.938 kB / 455 MB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000453/0.07759, allocations: 461.8 kB / 455.5 MB, free: 1.594 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.535e-05/0.07766, allocations: 120.5 kB / 455.6 MB, free: 1.457 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.71e-05/0.07771, allocations: 19.98 kB / 455.6 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.07782, allocations: 8 kB / 455.6 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.557e-05/0.07788, allocations: 19.92 kB / 455.6 MB, free: 1.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.0779, allocations: 16 kB / 455.6 MB, free: 1.395 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002123/0.07812, allocations: 307.1 kB / 455.9 MB, free: 1.094 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.07813, allocations: 7.938 kB / 455.9 MB, free: 1.086 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003605/0.07849, allocations: 79.89 kB / 456 MB, free: 1.008 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007671/0.07927, allocations: 448.3 kB / 456.5 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000386/0.07966, allocations: 289.3 kB / 456.7 MB, free: 292 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.07968, allocations: 4 kB / 456.8 MB, free: 288 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.687e-05/0.07976, allocations: 43.84 kB / 456.8 MB, free: 244 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007129/0.08048, allocations: 241.9 kB / 457 MB, free: 4 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.08158, allocations: 0.8759 MB / 457.9 MB, free: 15.07 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.08196, allocations: 0.8281 MB / 458.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.769e-05/0.08204, allocations: 39.44 kB / 458.8 MB, free: 14.17 MB / 314.7 MB Notification: Performance of SimCode: time 3.3e-07/0.08205, allocations: 0 / 458.8 MB, free: 14.17 MB / 314.7 MB Notification: Performance of Templates: time 0.006858/0.08891, allocations: 5.183 MB / 464 MB, free: 8.984 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)