Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_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.004206/0.004206, allocations: 97.75 kB / 15.73 MB, free: 5.949 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.0009957/0.0009957, allocations: 193.8 kB / 16.67 MB, free: 5.871 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.17/1.17, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001972/0.001972, allocations: 293.6 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8485/0.8485, allocations: 169.3 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 99.83 kB / 0.6809 GB, free: 7.508 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.3543, allocations: 86.98 MB / 0.7659 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002154/0.3565, allocations: 1.406 MB / 0.7672 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.000594/0.3571, allocations: 444.7 kB / 0.7677 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.423e-05/0.3571, allocations: 3.938 kB / 0.7677 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.489e-05/0.3572, allocations: 3.938 kB / 0.7677 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.734e-05/0.3572, allocations: 7.938 kB / 0.7677 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001271/0.3574, allocations: 15.92 kB / 0.7677 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.68e-05/0.3575, allocations: 55.84 kB / 0.7678 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 7.429e-05/0.3576, allocations: 15.98 kB / 0.7678 GB, free: 1.91 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.369e-05/0.3576, allocations: 27.86 kB / 0.7678 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.367e-05/0.3577, allocations: 15.92 kB / 0.7678 GB, free: 1.867 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.692e-05/0.3577, allocations: 4 kB / 0.7678 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 9.839e-06/0.3577, allocations: 4 kB / 0.7678 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.503e-05/0.3578, allocations: 11.92 kB / 0.7678 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.799e-05/0.3578, allocations: 15.94 kB / 0.7678 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 9.56e-05/0.3579, allocations: 51.55 kB / 0.7679 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.3579, allocations: 0 / 0.7679 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3579, allocations: 0 / 0.7679 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.3579, allocations: 4 kB / 0.7679 GB, free: 1.781 MB / 0.5294 GB 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.0005011/0.3584, allocations: 398.3 kB / 0.7683 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.3585, allocations: 12.02 kB / 0.7683 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.261e-05/0.3585, allocations: 34.75 kB / 0.7683 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.662e-05/0.3585, allocations: 4.938 kB / 0.7683 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001011/0.3586, allocations: 176.2 kB / 0.7685 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.403e-06/0.3587, allocations: 384 / 0.7685 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.885e-05/0.3587, allocations: 8.375 kB / 0.7685 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.877e-05/0.3588, allocations: 57.8 kB / 0.7686 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.3588, allocations: 0 / 0.7686 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.096e-06/0.3588, allocations: 0 / 0.7686 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.3588, allocations: 0 / 0.7686 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.628e-05/0.3589, allocations: 19.98 kB / 0.7686 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003256/0.3592, allocations: 276.8 kB / 0.7688 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 7.708e-05/0.3593, allocations: 46.56 kB / 0.7689 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.748e-05/0.3593, allocations: 16.98 kB / 0.7689 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.439e-05/0.3594, allocations: 0 / 0.7689 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001387/0.3595, allocations: 105 kB / 0.769 GB, free: 480 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=9): time 1.293e-06/0.3595, allocations: 0 / 0.769 GB, free: 480 kB / 0.5294 GB Notification: Performance of matching and sorting (n=9): time 0.000233/0.3597, allocations: 139.3 kB / 0.7691 GB, free: 328 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.3598, allocations: 77.11 kB / 0.7692 GB, free: 232 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.615e-05/0.3599, allocations: 121.8 kB / 0.7693 GB, free: 100 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.3599, allocations: 25.7 kB / 0.7693 GB, free: 68 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.496e-05/0.3599, allocations: 88.08 kB / 0.7694 GB, free: 15.98 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.705e-05/0.36, allocations: 15.97 kB / 0.7694 GB, free: 15.96 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.916e-05/0.36, allocations: 33.7 kB / 0.7695 GB, free: 15.92 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.443e-05/0.3601, allocations: 318.8 kB / 0.7698 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.997e-05/0.3601, allocations: 15.98 kB / 0.7698 GB, free: 15.59 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.106e-05/0.3602, allocations: 38.84 kB / 0.7698 GB, free: 15.54 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.3603, allocations: 118.4 kB / 0.7699 GB, free: 15.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3603, allocations: 7.875 kB / 0.77 GB, free: 15.39 MB / 0.545 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000135/0.3604, allocations: 127.2 kB / 0.7701 GB, free: 15.26 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.3605, allocations: 33.7 kB / 0.7701 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.3605, allocations: 0 / 0.7701 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.3605, allocations: 4.062 kB / 0.7701 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.29e-05/0.3605, allocations: 4 kB / 0.7701 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.3606, allocations: 4 kB / 0.7701 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.347e-05/0.3606, allocations: 15.92 kB / 0.7701 GB, free: 15.19 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.301e-05/0.3606, allocations: 4 kB / 0.7701 GB, free: 15.19 MB / 0.545 GB 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 8.967e-05/0.3607, allocations: 147.5 kB / 0.7703 GB, free: 15.03 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.48e-05/0.3608, allocations: 7.938 kB / 0.7703 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.278e-05/0.3608, allocations: 12.38 kB / 0.7703 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.3608, allocations: 3.938 kB / 0.7703 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.3608, allocations: 4 kB / 0.7703 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3608, allocations: 3.984 kB / 0.7703 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003415/0.3612, allocations: 400.1 kB / 0.7707 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3612, allocations: 0 / 0.7707 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.184e-06/0.3612, allocations: 0 / 0.7707 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.3612, allocations: 4 kB / 0.7707 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.3612, allocations: 3.984 kB / 0.7707 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3612, allocations: 0 / 0.7707 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3612, allocations: 3.938 kB / 0.7707 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.3614, allocations: 237.1 kB / 0.7709 GB, free: 14.28 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.943e-05/0.3614, allocations: 85.06 kB / 0.771 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/0.3615, allocations: 0 / 0.771 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.3616, allocations: 11.98 kB / 0.771 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.471e-05/0.3616, allocations: 3.938 kB / 0.771 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.3616, allocations: 11.98 kB / 0.771 GB, free: 14.15 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.606e-05/0.3617, allocations: 83.28 kB / 0.7711 GB, free: 14.07 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3617, allocations: 4 kB / 0.7711 GB, free: 14.06 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002178/0.3619, allocations: 19.94 kB / 0.7711 GB, free: 14.04 MB / 0.545 GB 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.000408/0.3623, allocations: 0.7649 MB / 0.7719 GB, free: 13.25 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001415/0.3625, allocations: 111.3 kB / 0.772 GB, free: 13.12 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.3625, allocations: 4.062 kB / 0.772 GB, free: 13.12 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.827e-05/0.3626, allocations: 91.39 kB / 0.7721 GB, free: 13.02 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.3628, allocations: 22.77 kB / 0.7721 GB, free: 13 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.3639, allocations: 1.418 MB / 0.7735 GB, free: 11.48 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002034/0.3641, allocations: 0.6807 MB / 0.7742 GB, free: 10.77 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.275e-05/0.3641, allocations: 8 kB / 0.7742 GB, free: 10.77 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.722e-05/0.3642, allocations: 23.42 kB / 0.7742 GB, free: 10.74 MB / 0.545 GB Notification: Performance of SimCode: time 2.51e-07/0.3642, allocations: 0 / 0.7742 GB, free: 10.74 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01475/0.379, allocations: 1.9 MB / 0.776 GB, free: 8.953 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.588/6.967, allocations: 4.672 kB / 0.776 GB, free: 8.953 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay.fmu > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)