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.00446/0.00446, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001244/0.001244, allocations: 201.2 kB / 16.68 MB, free: 5.969 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00251/0.00251, allocations: 282.5 kB / 290.8 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.065/1.065, allocations: 178.6 MB / 0.5074 GB, free: 4.5 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0027/0.0027, allocations: 92.7 kB / 0.6942 GB, free: 3.648 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.398/0.4007, allocations: 89.14 MB / 0.7813 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002431/0.4032, allocations: 1.426 MB / 0.7827 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0006902/0.4039, allocations: 434.5 kB / 0.7831 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.472e-05/0.4039, allocations: 0 / 0.7831 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.207e-05/0.404, allocations: 1.219 kB / 0.7831 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.216e-05/0.4041, allocations: 13.27 kB / 0.7831 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001326/0.4042, allocations: 23.86 kB / 0.7831 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000119/0.4043, allocations: 59.17 kB / 0.7832 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.669e-05/0.4044, allocations: 4.594 kB / 0.7832 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.572e-05/0.4045, allocations: 23.23 kB / 0.7832 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.222e-05/0.4045, allocations: 17.97 kB / 0.7832 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.4046, allocations: 4.031 kB / 0.7832 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 1.232e-05/0.4046, allocations: 5.656 kB / 0.7832 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.272e-05/0.4046, allocations: 6.016 kB / 0.7833 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.353e-05/0.4047, allocations: 27.52 kB / 0.7833 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001051/0.4048, allocations: 47.02 kB / 0.7833 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.4048, allocations: 0 / 0.7833 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.163e-06/0.4048, allocations: 0 / 0.7833 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.4048, allocations: 2.016 kB / 0.7833 GB, free: 12.43 MB / 0.5606 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.0006233/0.4054, allocations: 397.5 kB / 0.7837 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.4055, allocations: 8.875 kB / 0.7837 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.229e-05/0.4055, allocations: 32.98 kB / 0.7837 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.567e-05/0.4055, allocations: 9.625 kB / 0.7838 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.4057, allocations: 172.7 kB / 0.7839 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.4057, allocations: 5.688 kB / 0.7839 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.328e-05/0.4057, allocations: 7.719 kB / 0.7839 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001109/0.4058, allocations: 50.91 kB / 0.784 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.4058, allocations: 0.6094 kB / 0.784 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.4059, allocations: 5.438 kB / 0.784 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.4059, allocations: 1.188 kB / 0.784 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.605e-05/0.4059, allocations: 24.31 kB / 0.784 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003937/0.4063, allocations: 273.9 kB / 0.7843 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 8.591e-05/0.4064, allocations: 39.16 kB / 0.7843 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.011e-05/0.4065, allocations: 22.92 kB / 0.7843 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.4065, allocations: 5.391 kB / 0.7843 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001786/0.4067, allocations: 104.4 kB / 0.7844 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.4067, allocations: 4 kB / 0.7844 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9): time 0.0002673/0.407, allocations: 138 kB / 0.7846 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.715e-05/0.407, allocations: 84.16 kB / 0.7846 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.815e-05/0.4071, allocations: 115.1 kB / 0.7848 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.4072, allocations: 32.14 kB / 0.7848 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.038e-05/0.4072, allocations: 86.14 kB / 0.7849 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.628e-05/0.4073, allocations: 15.91 kB / 0.7849 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.531e-05/0.4073, allocations: 25.27 kB / 0.7849 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001389/0.4074, allocations: 326.8 kB / 0.7852 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.398e-05/0.4075, allocations: 14.83 kB / 0.7852 GB, free: 10.51 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.506e-05/0.4075, allocations: 36.66 kB / 0.7853 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/0.4077, allocations: 112.4 kB / 0.7854 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4077, allocations: 0 / 0.7854 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001644/0.4078, allocations: 135.1 kB / 0.7855 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.4079, allocations: 33.3 kB / 0.7855 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.4079, allocations: 1.156 kB / 0.7855 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.4079, allocations: 1.406 kB / 0.7855 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.609e-05/0.408, allocations: 3.969 kB / 0.7855 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.408, allocations: 1.406 kB / 0.7855 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.285e-05/0.408, allocations: 6.531 kB / 0.7856 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.408, allocations: 3 kB / 0.7856 GB, free: 10.25 MB / 0.5606 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 0.000128/0.4082, allocations: 165.6 kB / 0.7857 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.992e-05/0.4082, allocations: 15.86 kB / 0.7857 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.327e-05/0.4082, allocations: 7.094 kB / 0.7857 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.4082, allocations: 0 / 0.7857 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.4082, allocations: 1.625 kB / 0.7857 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.4083, allocations: 0.6562 kB / 0.7857 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004262/0.4087, allocations: 399.7 kB / 0.7861 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4087, allocations: 0 / 0.7861 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.117e-06/0.4087, allocations: 1.578 kB / 0.7861 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.4087, allocations: 2.094 kB / 0.7861 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.4087, allocations: 9.375 kB / 0.7861 GB, free: 9.691 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.4087, allocations: 1.703 kB / 0.7861 GB, free: 9.691 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4087, allocations: 3.938 kB / 0.7861 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002337/0.409, allocations: 233.5 kB / 0.7864 GB, free: 9.496 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.522e-05/0.4091, allocations: 83.09 kB / 0.7864 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.4091, allocations: 2.734 kB / 0.7864 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.4092, allocations: 16.11 kB / 0.7865 GB, free: 9.391 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/0.4092, allocations: 15.58 kB / 0.7865 GB, free: 9.383 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.4093, allocations: 2.922 kB / 0.7865 GB, free: 9.383 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.484e-05/0.4093, allocations: 90.89 kB / 0.7866 GB, free: 9.301 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4093, allocations: 1.062 kB / 0.7866 GB, free: 9.301 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000234/0.4096, allocations: 14.27 kB / 0.7866 GB, free: 9.301 MB / 0.5606 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.0005299/0.4101, allocations: 0.7651 MB / 0.7873 GB, free: 8.582 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001775/0.4103, allocations: 114.8 kB / 0.7874 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.4103, allocations: 0 / 0.7874 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.825e-05/0.4104, allocations: 88.75 kB / 0.7875 GB, free: 8.426 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.4107, allocations: 17.14 kB / 0.7875 GB, free: 8.418 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.4121, allocations: 1.417 MB / 0.7889 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/0.4124, allocations: 0.686 MB / 0.7896 GB, free: 6.41 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.553e-05/0.4124, allocations: 3.625 kB / 0.7896 GB, free: 6.41 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.833e-05/0.4125, allocations: 16.67 kB / 0.7896 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.4125, allocations: 0 / 0.7896 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02142/0.4339, allocations: 1.905 MB / 0.7915 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.497/7.931, allocations: 10.45 kB / 0.7915 GB, free: 5.969 MB / 0.5606 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)