Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.00133, allocations: 103.2 kB / 16.45 MB, free: 6.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 189.5 kB / 17.39 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.808/1.808, allocations: 205.1 MB / 223.3 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1147/0.1147, allocations: 12.59 MB / 283.2 MB, free: 15.39 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 90.94 kB / 394.2 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1062, allocations: 49.39 MB / 443.6 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds): time 0.00362/0.1099, allocations: 1.824 MB / 445.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.1113, allocations: 0.6941 MB / 446.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001863/0.1115, allocations: 7.938 kB / 446.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003299/0.1118, allocations: 43.59 kB / 446.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.106e-05/0.1119, allocations: 27.73 kB / 446.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000569/0.1125, allocations: 139.6 kB / 446.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002645/0.1128, allocations: 203.8 kB / 446.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003039/0.1131, allocations: 122.7 kB / 446.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001368/0.1132, allocations: 91.62 kB / 446.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.1134, allocations: 91.5 kB / 446.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.364e-05/0.1134, allocations: 16 kB / 446.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.761e-05/0.1135, allocations: 16 kB / 446.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.226e-05/0.1135, allocations: 63.75 kB / 446.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.1137, allocations: 103.3 kB / 447 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002837/0.114, allocations: 215.1 kB / 447.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.114, allocations: 0 / 447.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.114, allocations: 4 kB / 447.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.114, allocations: 0 / 447.2 MB, free: 12.84 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0007447/0.1147, allocations: 0.5191 MB / 447.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.1148, allocations: 12.02 kB / 447.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.256e-05/0.1149, allocations: 32.56 kB / 447.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004271/0.1153, allocations: 277 kB / 448 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.1153, allocations: 20.94 kB / 448 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.016e-05/0.1154, allocations: 24.38 kB / 448.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.1165, allocations: 0.636 MB / 448.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.1166, allocations: 3.938 kB / 448.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.283e-05/0.1166, allocations: 8 kB / 448.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.779e-05/0.1166, allocations: 8 kB / 448.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002271/0.1169, allocations: 131.7 kB / 448.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.118, allocations: 1.039 MB / 449.9 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008536/0.1188, allocations: 0.7163 MB / 450.6 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002924/0.1191, allocations: 233.2 kB / 450.8 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.808e-05/0.1192, allocations: 11.92 kB / 450.8 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000182/0.1194, allocations: 97.89 kB / 450.9 MB, free: 8.598 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.425e-06/0.1194, allocations: 0 / 450.9 MB, free: 8.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=43): time 0.0007287/0.1201, allocations: 407.7 kB / 451.3 MB, free: 8.195 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001906/0.1203, allocations: 352.3 kB / 451.7 MB, free: 7.777 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.1205, allocations: 230.8 kB / 451.9 MB, free: 7.543 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.362e-05/0.1206, allocations: 33.7 kB / 451.9 MB, free: 7.504 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.495e-05/0.1207, allocations: 117.2 kB / 452.1 MB, free: 7.387 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.97e-05/0.1207, allocations: 39.64 kB / 452.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.734e-05/0.1208, allocations: 90.05 kB / 452.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.121, allocations: 338.8 kB / 452.5 MB, free: 6.914 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.161e-05/0.1211, allocations: 56.84 kB / 452.6 MB, free: 6.859 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002814/0.1214, allocations: 311.5 kB / 452.9 MB, free: 6.426 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004339/0.1218, allocations: 402.6 kB / 453.3 MB, free: 5.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.1218, allocations: 0 / 453.3 MB, free: 5.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005758/0.1224, allocations: 381.2 kB / 453.6 MB, free: 5.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.1224, allocations: 8 kB / 453.7 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.1225, allocations: 8 kB / 453.7 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/0.1225, allocations: 12 kB / 453.7 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.081e-05/0.1226, allocations: 27.86 kB / 453.7 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.269e-05/0.1226, allocations: 23.86 kB / 453.7 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002293/0.1228, allocations: 36.22 kB / 453.8 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/0.1229, allocations: 28.25 kB / 453.8 MB, free: 5.387 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 49 ($whenCondition1,booleanConstant.pulseStart,$PRE.booleanConstant.pulseStart,booleanConstant.y,superSample1.y,superSample1.u,subSample1.y,UnitDelay1.y,$CLKPRE.UnitDelay1.u,UnitDelay1.u,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,fractionalDelay.y,backSample1.y,backSample1.u,ClockedSignalToSquare.u,shiftSample1.y,fractionalDelay.u_buffer[1],fractionalDelay.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample3.y,booleanConstant1[3].y,booleanConstant1[2].y,booleanConstant1[1].y,shiftSample1.u,subSample1.u,assignClock2.y[3],assignClock2.y[2],assignClock2.y[1],assignClock2.u[3],assignClock2.u[2],assignClock2.u[1],sample1.y[3],sample1.y[2],sample1.y[1],sample2.y,hold1.y,hold1.u,assignClock1.y,assignClock1.u,ClockedSignalToSquare.y,$CLKPRE.ClockedSignalToSquare.y2,ClockedSignalToSquare.y2,fractionalDelay.first) * Number of discrete states: 0 () * Number of clocked states: 4 (UnitDelay1.u,upSample1.b_super,upSample1.b,ClockedSignalToSquare.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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.000205/0.1231, allocations: 198 kB / 454 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003942/0.1235, allocations: 285.4 kB / 454.3 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.046e-05/0.1236, allocations: 38.02 kB / 454.3 MB, free: 4.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.059e-05/0.1236, allocations: 12 kB / 454.3 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.1236, allocations: 4 kB / 454.3 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.1236, allocations: 0 / 454.3 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003119/0.124, allocations: 261.3 kB / 454.6 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.972e-06/0.124, allocations: 4 kB / 454.6 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.018e-05/0.124, allocations: 19.92 kB / 454.6 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.124, allocations: 11.88 kB / 454.6 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.1241, allocations: 8 kB / 454.6 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.1241, allocations: 4 kB / 454.6 MB, free: 4.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.1241, allocations: 11.92 kB / 454.6 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004781/0.1246, allocations: 397.3 kB / 455 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.77e-05/0.1247, allocations: 116.6 kB / 455.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.694e-05/0.1247, allocations: 11.98 kB / 455.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.1248, allocations: 16 kB / 455.2 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.45e-05/0.1249, allocations: 7.984 kB / 455.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.552e-05/0.1249, allocations: 12 kB / 455.2 MB, free: 3.859 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001445/0.1251, allocations: 160.9 kB / 455.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1251, allocations: 0 / 455.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000353/0.1254, allocations: 44 kB / 455.4 MB, free: 3.66 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 43 ($whenCondition1,booleanConstant.y,booleanConstant.pulseStart,ClockedSignalToSquare.y,hold1.y,superSample1.y,subSample1.y,superSample1.u,upSample1.y,upSample1.b_super,upSample1.u_super,UnitDelay1.u,UnitDelay1.y,fractionalDelay.y,backSample1.y,shiftSample1.y,ClockedSignalToSquare.u,backSample1.u,assignClock1.u,assignClock1.y,hold1.u,sample2.y,sample1.y[1],sample1.y[2],sample1.y[3],assignClock2.u[1],assignClock2.u[2],assignClock2.u[3],assignClock2.y[1],assignClock2.y[2],assignClock2.y[3],subSample1.u,shiftSample1.u,booleanConstant1[1].y,booleanConstant1[2].y,booleanConstant1[3].y,sample3.y,upSample1.u,upSample1.dummy,upSample1.b,fractionalDelay.u,fractionalDelay.u_buffer[1],ClockedSignalToSquare.y2) * 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 simulation (41): * Single equations (assignments): 39 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001781/0.1256, allocations: 139 kB / 455.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004471/0.1261, allocations: 261.8 kB / 455.8 MB, free: 3.258 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1261, allocations: 0 / 455.8 MB, free: 3.258 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.301e-05/0.1261, allocations: 16 kB / 455.8 MB, free: 3.242 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007711/0.1269, allocations: 221 kB / 456 MB, free: 3.027 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009029/0.1278, allocations: 0.5282 MB / 456.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000403/0.1282, allocations: 0.7761 MB / 457.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.242e-05/0.1283, allocations: 26.97 kB / 457.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.05e-05/0.1284, allocations: 27.44 kB / 457.4 MB, free: 1.59 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1284, allocations: 3.938 kB / 457.4 MB, free: 1.586 MB / 334.1 MB Notification: Performance of Templates: time 0.008682/0.1371, allocations: 3.036 MB / 460.4 MB, free: 14.55 MB / 350.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.sim & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.pipe 2>&1)