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/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/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: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestBooleanSamplerAndHolds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestBooleanSamplerAndHolds",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008186/0.0008187, allocations: 173.3 kB / 16.76 MB, free: 4.93 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.203/1.203, allocations: 205.4 MB / 222.9 MB, free: 9.008 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.0007195/0.0007195, allocations: 89.19 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06403/0.06403, allocations: 12.19 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003968/0.0003968, allocations: 16 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06612/0.06654, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds): time 0.00153/0.0681, allocations: 1.488 MB / 444 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009246/0.06905, allocations: 0.64 MB / 444.6 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.06921, allocations: 7.938 kB / 444.6 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002073/0.06942, allocations: 31.78 kB / 444.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.928e-05/0.06948, allocations: 15.86 kB / 444.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003814/0.06987, allocations: 111.8 kB / 444.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000174/0.07006, allocations: 187.9 kB / 445 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.07025, allocations: 99.02 kB / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.376e-05/0.07034, allocations: 59.67 kB / 445.1 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.629e-05/0.07044, allocations: 67.56 kB / 445.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.676e-05/0.07048, allocations: 8 kB / 445.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.029e-05/0.0705, allocations: 8 kB / 445.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.782e-05/0.07055, allocations: 47.77 kB / 445.3 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.072e-05/0.07063, allocations: 109.1 kB / 445.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.07076, allocations: 143.9 kB / 445.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.07077, allocations: 0 / 445.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.07077, allocations: 0 / 445.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.07079, allocations: 0 / 445.5 MB, free: 13.51 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0005381/0.07133, allocations: 483.8 kB / 446 MB, free: 12.99 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.07138, allocations: 15.97 kB / 446 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.15e-05/0.07143, allocations: 62.72 kB / 446.1 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.55e-05/0.07148, allocations: 36.55 kB / 446.1 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.07172, allocations: 269 kB / 446.4 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.07174, allocations: 20.92 kB / 446.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.07178, allocations: 24.38 kB / 446.4 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007542/0.07253, allocations: 0.6431 MB / 447 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.07256, allocations: 3.938 kB / 447 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.204e-05/0.07259, allocations: 12 kB / 447.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.309e-05/0.07262, allocations: 8 kB / 447.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001773/0.0728, allocations: 127.7 kB / 447.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005742/0.07338, allocations: 1.028 MB / 448.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004518/0.07385, allocations: 0.7279 MB / 448.9 MB, free: 9.633 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002068/0.07407, allocations: 233.3 kB / 449.2 MB, free: 9.371 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.07411, allocations: 12.06 kB / 449.2 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.072e-05/0.0742, allocations: 93.91 kB / 449.3 MB, free: 9.246 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 2.324e-06/0.07421, allocations: 0 / 449.3 MB, free: 9.246 MB / 298.7 MB Notification: Performance of matching and sorting (n=43): time 0.0005335/0.07475, allocations: 405.3 kB / 449.7 MB, free: 8.844 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.923e-05/0.07486, allocations: 348.8 kB / 450 MB, free: 8.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001507/0.07502, allocations: 230.8 kB / 450.2 MB, free: 8.195 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.07504, allocations: 29.7 kB / 450.3 MB, free: 8.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.033e-05/0.0751, allocations: 117.1 kB / 450.4 MB, free: 8.039 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.686e-05/0.07513, allocations: 43.67 kB / 450.4 MB, free: 7.996 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.023e-05/0.07515, allocations: 12 kB / 450.4 MB, free: 7.984 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.21e-05/0.0752, allocations: 338.8 kB / 450.8 MB, free: 7.645 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.659e-05/0.07529, allocations: 56.78 kB / 450.8 MB, free: 7.586 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.07544, allocations: 315.5 kB / 451.1 MB, free: 7.152 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002462/0.07569, allocations: 394.7 kB / 451.5 MB, free: 6.641 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.07571, allocations: 4 kB / 451.5 MB, free: 6.637 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003895/0.0761, allocations: 377.3 kB / 451.9 MB, free: 6.262 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.07612, allocations: 8 kB / 451.9 MB, free: 6.254 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.07614, allocations: 8 kB / 451.9 MB, free: 6.246 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.07616, allocations: 12 kB / 451.9 MB, free: 6.234 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.251e-05/0.07624, allocations: 35.8 kB / 451.9 MB, free: 6.199 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.07625, allocations: 19.92 kB / 452 MB, free: 6.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.07645, allocations: 39.69 kB / 452 MB, free: 6.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.07647, allocations: 24 kB / 452 MB, free: 6.117 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: 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.0001255/0.07661, allocations: 203.1 kB / 452.2 MB, free: 5.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002956/0.07691, allocations: 273 kB / 452.5 MB, free: 5.637 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.966e-05/0.07697, allocations: 37.86 kB / 452.5 MB, free: 5.602 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.077, allocations: 8 kB / 452.5 MB, free: 5.594 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.07701, allocations: 4.156 kB / 452.5 MB, free: 5.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.07702, allocations: 7.984 kB / 452.5 MB, free: 5.582 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001699/0.07719, allocations: 257.2 kB / 452.8 MB, free: 5.281 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.07721, allocations: 4 kB / 452.8 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.236e-05/0.07725, allocations: 24 kB / 452.8 MB, free: 5.254 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.07726, allocations: 7.938 kB / 452.8 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.07728, allocations: 15.97 kB / 452.9 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.07729, allocations: 4.312 kB / 452.9 MB, free: 5.227 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.0773, allocations: 4 kB / 452.9 MB, free: 5.223 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003404/0.07764, allocations: 397.3 kB / 453.2 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.298e-05/0.0777, allocations: 120.6 kB / 453.4 MB, free: 4.645 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.029e-05/0.07773, allocations: 8 kB / 453.4 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.07784, allocations: 12 kB / 453.4 MB, free: 4.625 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.257e-05/0.07788, allocations: 15.98 kB / 453.4 MB, free: 4.609 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.907e-05/0.0779, allocations: 8 kB / 453.4 MB, free: 4.602 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.699e-05/0.07799, allocations: 155.3 kB / 453.6 MB, free: 4.449 MB / 298.7 MB Notification: Performance of sort global known variables: time 2e-07/0.078, allocations: 7.938 kB / 453.6 MB, free: 4.441 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003149/0.07832, allocations: 48 kB / 453.6 MB, free: 4.395 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.0006591/0.07899, allocations: 1.079 MB / 454.7 MB, free: 3.258 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002806/0.07928, allocations: 245.8 kB / 454.9 MB, free: 3.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.07929, allocations: 4.188 kB / 454.9 MB, free: 3.016 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.632e-05/0.07933, allocations: 16 kB / 455 MB, free: 3 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005951/0.07993, allocations: 223.9 kB / 455.2 MB, free: 2.781 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.08153, allocations: 1.66 MB / 456.8 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001482/0.08169, allocations: 0.7805 MB / 457.6 MB, free: 112 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.161e-05/0.08179, allocations: 83.41 kB / 457.7 MB, free: 28 kB / 298.7 MB Notification: Performance of SimCode: time 3.9e-07/0.0818, allocations: 0 / 457.7 MB, free: 28 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.598/2.68, allocations: 3.763 MB / 461.5 MB, free: 12.25 MB / 314.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestBooleanSamplerAndHolds_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestBooleanSamplerAndHolds.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.pipe 2>&1)