Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(IBPSA.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 103.3 kB / 16.27 MB, free: 6.41 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.0009541/0.000954, allocations: 184.4 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.247/1.247, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7056/0.7056, allocations: 122.9 MB / 413.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 55.91 kB / 0.4912 GB, free: 7.363 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2871, allocations: 77.93 MB / 0.5673 GB, free: 32.8 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Discrete.Examples.BooleanDelay): time 0.002096/0.2893, allocations: 1.405 MB / 0.5686 GB, free: 31.84 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005133/0.2898, allocations: 435.5 kB / 0.5691 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.269e-05/0.2898, allocations: 1.625 kB / 0.5691 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.303e-05/0.2899, allocations: 0 / 0.5691 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.272e-05/0.2899, allocations: 10.17 kB / 0.5691 GB, free: 31.53 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001211/0.2901, allocations: 21.08 kB / 0.5691 GB, free: 31.52 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 9.187e-05/0.2902, allocations: 51.62 kB / 0.5691 GB, free: 31.5 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.501e-05/0.2903, allocations: 9.984 kB / 0.5692 GB, free: 31.49 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.632e-05/0.2903, allocations: 17.78 kB / 0.5692 GB, free: 31.48 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.445e-05/0.2904, allocations: 23.22 kB / 0.5692 GB, free: 31.47 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.2904, allocations: 4.219 kB / 0.5692 GB, free: 31.47 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.086e-05/0.2904, allocations: 4.625 kB / 0.5692 GB, free: 31.47 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.04e-05/0.2904, allocations: 9.219 kB / 0.5692 GB, free: 31.47 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.676e-05/0.2905, allocations: 24.64 kB / 0.5692 GB, free: 31.45 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 8.483e-05/0.2906, allocations: 44.31 kB / 0.5693 GB, free: 31.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.2906, allocations: 5.406 kB / 0.5693 GB, free: 31.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2906, allocations: 0.5625 kB / 0.5693 GB, free: 31.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.948e-06/0.2906, allocations: 0 / 0.5693 GB, free: 31.43 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004469/0.291, allocations: 394.6 kB / 0.5697 GB, free: 31.03 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.2911, allocations: 9.719 kB / 0.5697 GB, free: 31.03 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.36e-05/0.2911, allocations: 34.98 kB / 0.5697 GB, free: 30.99 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.652e-05/0.2911, allocations: 4.984 kB / 0.5697 GB, free: 30.99 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.2912, allocations: 168.6 kB / 0.5699 GB, free: 30.79 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.2913, allocations: 11.38 kB / 0.5699 GB, free: 30.79 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.689e-06/0.2913, allocations: 2.625 kB / 0.5699 GB, free: 30.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.169e-05/0.2914, allocations: 55.91 kB / 0.5699 GB, free: 30.74 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.531e-06/0.2914, allocations: 0 / 0.5699 GB, free: 30.74 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.2914, allocations: 7.047 kB / 0.5699 GB, free: 30.74 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.2914, allocations: 1.25 kB / 0.5699 GB, free: 30.74 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.936e-05/0.2915, allocations: 20.28 kB / 0.57 GB, free: 30.73 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000283/0.2918, allocations: 274.6 kB / 0.5702 GB, free: 30.45 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.823e-05/0.2918, allocations: 41.2 kB / 0.5703 GB, free: 30.41 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.166e-05/0.2919, allocations: 28.34 kB / 0.5703 GB, free: 30.39 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.281e-05/0.2919, allocations: 1 kB / 0.5703 GB, free: 30.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001317/0.292, allocations: 106.8 kB / 0.5704 GB, free: 30.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/0.292, allocations: 0 / 0.5704 GB, free: 30.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002213/0.2923, allocations: 140.7 kB / 0.5705 GB, free: 30.21 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/0.2923, allocations: 85.89 kB / 0.5706 GB, free: 30.11 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.164e-05/0.2924, allocations: 107.6 kB / 0.5707 GB, free: 30.01 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.006e-05/0.2924, allocations: 31.02 kB / 0.5707 GB, free: 29.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.216e-05/0.2924, allocations: 82.45 kB / 0.5708 GB, free: 29.89 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.708e-05/0.2924, allocations: 26.53 kB / 0.5708 GB, free: 29.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.401e-05/0.2925, allocations: 23.48 kB / 0.5709 GB, free: 29.86 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.516e-05/0.2925, allocations: 324.9 kB / 0.5712 GB, free: 29.54 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.087e-05/0.2925, allocations: 18.45 kB / 0.5712 GB, free: 29.53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.624e-05/0.2926, allocations: 38.56 kB / 0.5712 GB, free: 29.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.142e-05/0.2927, allocations: 113.1 kB / 0.5713 GB, free: 29.39 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.2927, allocations: 0 / 0.5713 GB, free: 29.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001259/0.2928, allocations: 123.3 kB / 0.5715 GB, free: 29.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.2928, allocations: 34.58 kB / 0.5715 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.2928, allocations: 0 / 0.5715 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.2928, allocations: 2.562 kB / 0.5715 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.52e-05/0.2929, allocations: 3.953 kB / 0.5715 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.2929, allocations: 2.312 kB / 0.5715 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.229e-05/0.293, allocations: 11.86 kB / 0.5715 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.293, allocations: 4.422 kB / 0.5715 GB, free: 29.27 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 (del.firstTrigger,$PRE.del.firstTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,del.ySample,del.sampleTrigger,del.y,$whenCondition3,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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 6.228e-05/0.293, allocations: 162.5 kB / 0.5717 GB, free: 29.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.427e-05/0.2931, allocations: 4.531 kB / 0.5717 GB, free: 29.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.077e-05/0.2931, allocations: 6.188 kB / 0.5717 GB, free: 29.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2931, allocations: 2.625 kB / 0.5717 GB, free: 29.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.2931, allocations: 1.125 kB / 0.5717 GB, free: 29.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2931, allocations: 0.75 kB / 0.5717 GB, free: 29.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002841/0.2934, allocations: 409 kB / 0.5721 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2934, allocations: 0 / 0.5721 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.436e-06/0.2934, allocations: 2.734 kB / 0.5721 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.2934, allocations: 1.25 kB / 0.5721 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.2934, allocations: 6.453 kB / 0.5721 GB, free: 28.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.2935, allocations: 5.984 kB / 0.5721 GB, free: 28.72 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.2935, allocations: 9.141 kB / 0.5721 GB, free: 28.71 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001526/0.2936, allocations: 225.7 kB / 0.5723 GB, free: 28.53 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.875e-05/0.2936, allocations: 83.7 kB / 0.5724 GB, free: 28.43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.2937, allocations: 4.578 kB / 0.5724 GB, free: 28.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.2938, allocations: 13.48 kB / 0.5724 GB, free: 28.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.431e-05/0.2938, allocations: 9.547 kB / 0.5724 GB, free: 28.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.2938, allocations: 4.281 kB / 0.5724 GB, free: 28.42 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.671e-05/0.2939, allocations: 87.09 kB / 0.5725 GB, free: 28.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2939, allocations: 0.5312 kB / 0.5725 GB, free: 28.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002238/0.2941, allocations: 15.94 kB / 0.5725 GB, free: 28.34 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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.0002898/0.2944, allocations: 0.7761 MB / 0.5733 GB, free: 27.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000141/0.2946, allocations: 120.3 kB / 0.5734 GB, free: 27.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2946, allocations: 1.969 kB / 0.5734 GB, free: 27.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 6.174e-05/0.2946, allocations: 91.39 kB / 0.5735 GB, free: 27.45 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.2949, allocations: 24.39 kB / 0.5735 GB, free: 27.44 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008591/0.2958, allocations: 1.402 MB / 0.5749 GB, free: 26.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.424e-05/0.2959, allocations: 0.6844 MB / 0.5755 GB, free: 25.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.622e-05/0.2959, allocations: 9.547 kB / 0.5755 GB, free: 25.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.297e-05/0.2959, allocations: 20.05 kB / 0.5756 GB, free: 25.43 MB / 446.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2959, allocations: 3.938 kB / 0.5756 GB, free: 25.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01643/0.3124, allocations: 1.847 MB / 0.5774 GB, free: 25.08 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.866/7.179, allocations: 16.34 kB / 0.5774 GB, free: 25.07 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Controls_Discrete_Examples_BooleanDelay.fmu > IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)