Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.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.TestBooleanSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002801/0.0028, allocations: 188.8 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.133/4.133, allocations: 205.4 MB / 222.6 MB, free: 13.83 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.00213/0.002129, allocations: 94.84 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2733/0.2733, allocations: 12.6 MB / 331.8 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009237/0.0009244, allocations: 15.25 kB / 392 MB, free: 54.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2555, allocations: 50.37 MB / 442.3 MB, free: 11.59 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds): time 0.003761/0.2593, allocations: 1.491 MB / 443.8 MB, free: 10.08 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006309/0.2657, allocations: 0.6634 MB / 444.5 MB, free: 9.41 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002845/0.2661, allocations: 7.938 kB / 444.5 MB, free: 9.402 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003401/0.2664, allocations: 27.78 kB / 444.5 MB, free: 9.375 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.2666, allocations: 23.91 kB / 444.6 MB, free: 9.352 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.2677, allocations: 111.7 kB / 444.7 MB, free: 9.242 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008023/0.2686, allocations: 128.2 kB / 444.8 MB, free: 9.113 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007133/0.2694, allocations: 89.52 kB / 444.9 MB, free: 9.031 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002859/0.2697, allocations: 63.7 kB / 444.9 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000223/0.27, allocations: 71.56 kB / 445 MB, free: 8.898 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.341e-05/0.2701, allocations: 4 kB / 445 MB, free: 8.895 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.236e-05/0.2701, allocations: 4 kB / 445 MB, free: 8.891 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002287/0.2704, allocations: 39.84 kB / 445.1 MB, free: 8.852 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002004/0.2706, allocations: 61.52 kB / 445.1 MB, free: 8.785 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007078/0.2714, allocations: 143.7 kB / 445.3 MB, free: 8.645 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2714, allocations: 0 / 445.3 MB, free: 8.645 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.747e-06/0.2714, allocations: 4 kB / 445.3 MB, free: 8.641 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.668e-05/0.2715, allocations: 0 / 445.3 MB, free: 8.641 MB / 282.7 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.001471/0.273, allocations: 480.4 kB / 445.7 MB, free: 8.125 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.47e-05/0.2731, allocations: 12.03 kB / 445.7 MB, free: 8.113 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004286/0.2774, allocations: 27.72 kB / 445.8 MB, free: 8.086 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006362/0.2782, allocations: 279.8 kB / 446 MB, free: 7.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.1e-05/0.2782, allocations: 12.56 kB / 446.1 MB, free: 7.758 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.349e-05/0.2783, allocations: 24 kB / 446.1 MB, free: 7.734 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001899/0.2802, allocations: 0.6469 MB / 446.7 MB, free: 7.02 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.455e-05/0.2803, allocations: 0 / 446.7 MB, free: 7.02 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.128e-05/0.2804, allocations: 12 kB / 446.7 MB, free: 7.008 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.771e-05/0.2805, allocations: 8 kB / 446.7 MB, free: 7 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005375/0.2811, allocations: 136 kB / 446.9 MB, free: 6.867 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005783/0.2869, allocations: 1.028 MB / 447.9 MB, free: 5.738 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/0.2883, allocations: 0.7167 MB / 448.6 MB, free: 4.848 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.721e-05/0.2884, allocations: 16.27 kB / 448.6 MB, free: 4.832 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002952/0.2888, allocations: 98.09 kB / 448.7 MB, free: 4.715 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 7.864e-06/0.2888, allocations: 0 / 448.7 MB, free: 4.715 MB / 282.7 MB Notification: Performance of matching and sorting (n=43): time 0.0018/0.2906, allocations: 479.8 kB / 449.2 MB, free: 4.223 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002226/0.2909, allocations: 353 kB / 449.5 MB, free: 3.805 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004602/0.2914, allocations: 226.9 kB / 449.8 MB, free: 3.57 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.08e-05/0.2915, allocations: 33.64 kB / 449.8 MB, free: 3.531 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.2917, allocations: 179.5 kB / 450 MB, free: 3.352 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.134e-05/0.2918, allocations: 43.7 kB / 450 MB, free: 3.309 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.621e-05/0.2918, allocations: 12 kB / 450 MB, free: 3.297 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.292, allocations: 322.8 kB / 450.3 MB, free: 2.973 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002273/0.2922, allocations: 56.83 kB / 450.4 MB, free: 2.918 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004321/0.2927, allocations: 319.4 kB / 450.7 MB, free: 2.48 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000389/0.2931, allocations: 107.8 kB / 450.8 MB, free: 2.375 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.329e-05/0.2931, allocations: 4 kB / 450.8 MB, free: 2.371 MB / 282.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.005556/0.2987, allocations: 362.1 kB / 451.2 MB, free: 2.012 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.319e-05/0.2988, allocations: 8 kB / 451.2 MB, free: 2.004 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.346e-05/0.2989, allocations: 12 kB / 451.2 MB, free: 1.992 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.101e-05/0.2989, allocations: 12 kB / 451.2 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.2991, allocations: 31.86 kB / 451.2 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.152e-05/0.2992, allocations: 19.92 kB / 451.3 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005645/0.2998, allocations: 35.69 kB / 451.3 MB, free: 1.895 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.537e-05/0.2999, allocations: 27.94 kB / 451.3 MB, free: 1.867 MB / 282.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: 49 ($whenCondition1,booleanConstant.y,$PRE.booleanConstant.pulseStart,booleanConstant.pulseStart,superSample1.y,superSample1.u,subSample1.y,UnitDelay1.y,UnitDelay1.u,$CLKPRE.UnitDelay1.u,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,fractionalDelay.y,backSample1.y,backSample1.u,ClockedSignalToSquare.u,shiftSample1.y,fractionalDelay.u_buffer[1],fractionalDelay.u,upSample1.b,$CLKPRE.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.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 (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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004636/0.3003, allocations: 203 kB / 451.5 MB, free: 1.66 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001001/0.3014, allocations: 272.9 kB / 451.8 MB, free: 1.387 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001566/0.3016, allocations: 37.86 kB / 451.8 MB, free: 1.352 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.035e-05/0.3017, allocations: 8 kB / 451.8 MB, free: 1.344 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.496e-05/0.3017, allocations: 4 kB / 451.8 MB, free: 1.34 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.948e-05/0.3017, allocations: 8.141 kB / 451.8 MB, free: 1.332 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007056/0.3024, allocations: 257.4 kB / 452.1 MB, free: 1.031 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.616e-05/0.3025, allocations: 11.92 kB / 452.1 MB, free: 1.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.3026, allocations: 11.94 kB / 452.1 MB, free: 1.008 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-05/0.3027, allocations: 4 kB / 452.1 MB, free: 1.004 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.974e-05/0.3027, allocations: 15.94 kB / 452.1 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-05/0.3028, allocations: 4 kB / 452.1 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/0.3028, allocations: 4 kB / 452.1 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.3042, allocations: 0.5022 MB / 452.6 MB, free: 372 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002165/0.3045, allocations: 116.7 kB / 452.8 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.3047, allocations: 12.31 kB / 452.8 MB, free: 224 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004616/0.3094, allocations: 15.98 kB / 452.8 MB, free: 208 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.3096, allocations: 12 kB / 452.8 MB, free: 196 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.3097, allocations: 27.88 kB / 452.8 MB, free: 168 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003025/0.31, allocations: 159.3 kB / 453 MB, free: 8 kB / 282.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.31, allocations: 0 / 453 MB, free: 8 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.001122/0.3112, allocations: 44.05 kB / 453 MB, free: 15.96 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: 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 (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.0003597/0.3116, allocations: 135.2 kB / 453.2 MB, free: 15.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00124/0.3129, allocations: 248.8 kB / 453.4 MB, free: 15.58 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/0.313, allocations: 0 / 453.4 MB, free: 15.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.3131, allocations: 19.98 kB / 453.4 MB, free: 15.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00176/0.3149, allocations: 197.1 kB / 453.6 MB, free: 15.37 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002498/0.3175, allocations: 0.6112 MB / 454.2 MB, free: 14.7 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000771/0.3183, allocations: 0.7803 MB / 455 MB, free: 13.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002018/0.3186, allocations: 31.42 kB / 455 MB, free: 13.86 MB / 298.7 MB Notification: Performance of SimCode: time 1.302e-06/0.3186, allocations: 4 kB / 455 MB, free: 13.86 MB / 298.7 MB Notification: Performance of Templates: time 0.02367/0.3423, allocations: 3.14 MB / 458.2 MB, free: 10.72 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.pipe 2>&1)