Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.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.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_BooleanReplicator",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.007563/0.007563, allocations: 96.7 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.001829/0.001829, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.466/1.466, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002368/0.002368, allocations: 286.1 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.064/1.064, allocations: 178.6 MB / 0.5074 GB, free: 4.473 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002631/0.002631, allocations: 95.84 kB / 0.6943 GB, free: 3.609 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4668/0.4694, allocations: 89.15 MB / 0.7813 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BooleanReplicator): time 0.00313/0.4726, allocations: 1.787 MB / 0.7831 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001659/0.4743, allocations: 1.021 MB / 0.7841 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.893e-05/0.4744, allocations: 5.188 kB / 0.7841 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005836/0.475, allocations: 159 kB / 0.7842 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002861/0.4753, allocations: 120 kB / 0.7844 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004505/0.4758, allocations: 164.3 kB / 0.7845 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000219/0.476, allocations: 169.3 kB / 0.7847 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.4761, allocations: 22.45 kB / 0.7847 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.4762, allocations: 72.77 kB / 0.7848 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.4763, allocations: 69.3 kB / 0.7848 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.414e-05/0.4764, allocations: 11.84 kB / 0.7848 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001425/0.4765, allocations: 59.91 kB / 0.7849 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.965e-05/0.4766, allocations: 44.12 kB / 0.7849 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.368e-05/0.4767, allocations: 60.41 kB / 0.785 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002924/0.477, allocations: 195.3 kB / 0.7852 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.477, allocations: 0 / 0.7852 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.162e-06/0.477, allocations: 3.938 kB / 0.7852 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.744e-06/0.477, allocations: 1.281 kB / 0.7852 GB, free: 11.41 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007167/0.4777, allocations: 0.496 MB / 0.7857 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.4778, allocations: 14.36 kB / 0.7857 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.791e-05/0.4778, allocations: 39.03 kB / 0.7857 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.694e-05/0.4779, allocations: 20.67 kB / 0.7858 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/0.4782, allocations: 241.5 kB / 0.786 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.4782, allocations: 6.922 kB / 0.786 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.391e-05/0.4782, allocations: 15.08 kB / 0.786 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001976/0.4784, allocations: 91.58 kB / 0.7861 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.4785, allocations: 4 kB / 0.7861 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.4785, allocations: 5 kB / 0.7861 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.4785, allocations: 3.828 kB / 0.7861 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.497e-05/0.4786, allocations: 31.23 kB / 0.7861 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000511/0.4791, allocations: 353.2 kB / 0.7865 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001943/0.4793, allocations: 78.92 kB / 0.7865 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.014e-05/0.4794, allocations: 36.36 kB / 0.7866 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/0.4794, allocations: 2.266 kB / 0.7866 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001614/0.4796, allocations: 83.38 kB / 0.7867 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.4796, allocations: 0 / 0.7867 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of matching and sorting (n=10): time 0.0003553/0.48, allocations: 145.7 kB / 0.7868 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.547e-05/0.48, allocations: 82.28 kB / 0.7869 GB, free: 9.922 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002813/0.4803, allocations: 269.9 kB / 0.7871 GB, free: 9.766 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.4804, allocations: 27.17 kB / 0.7872 GB, free: 9.734 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.61e-05/0.4804, allocations: 116.7 kB / 0.7873 GB, free: 9.629 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.145e-05/0.4805, allocations: 25.34 kB / 0.7873 GB, free: 9.609 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.177e-05/0.4805, allocations: 25.73 kB / 0.7873 GB, free: 9.59 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.4807, allocations: 330 kB / 0.7876 GB, free: 9.27 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.933e-05/0.4808, allocations: 26.08 kB / 0.7877 GB, free: 9.262 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.527e-05/0.4809, allocations: 63.55 kB / 0.7877 GB, free: 9.215 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.481, allocations: 77.31 kB / 0.7878 GB, free: 9.172 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.481, allocations: 0 / 0.7878 GB, free: 9.172 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002102/0.4812, allocations: 119.7 kB / 0.7879 GB, free: 9.105 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.4813, allocations: 5.406 kB / 0.7879 GB, free: 9.105 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.4813, allocations: 0.7969 kB / 0.7879 GB, free: 9.105 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.4813, allocations: 4.875 kB / 0.7879 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.03e-05/0.4814, allocations: 10.97 kB / 0.7879 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.4814, allocations: 5.625 kB / 0.7879 GB, free: 9.098 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.973e-05/0.4814, allocations: 13.67 kB / 0.7879 GB, free: 9.09 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.4815, allocations: 1.281 kB / 0.788 GB, free: 9.09 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.booTab.combiTimeTable.nextTimeEvent,$whenCondition1,booRep.y[4],booRep.y[3],booRep.y[2],booRep.y[1],booTab.combiTimeTable.nextTimeEventScaled,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEvent,booTab.y) * 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: 1 * Algorithm blocks: 0 * 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.0001275/0.4816, allocations: 144.8 kB / 0.7881 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.124e-05/0.4816, allocations: 20.45 kB / 0.7881 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.082e-05/0.4817, allocations: 17.44 kB / 0.7881 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.4817, allocations: 7.516 kB / 0.7881 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4817, allocations: 0.7031 kB / 0.7881 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.4817, allocations: 5.25 kB / 0.7881 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002129/0.4819, allocations: 222.4 kB / 0.7883 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4819, allocations: 2.047 kB / 0.7884 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.462e-05/0.482, allocations: 7.906 kB / 0.7884 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.482, allocations: 0 / 0.7884 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.482, allocations: 1.859 kB / 0.7884 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.482, allocations: 1.188 kB / 0.7884 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.482, allocations: 0 / 0.7884 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002359/0.4822, allocations: 153.4 kB / 0.7885 GB, free: 8.609 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.086e-05/0.4823, allocations: 95.86 kB / 0.7886 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.4823, allocations: 0.7031 kB / 0.7886 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.937e-05/0.4824, allocations: 8.25 kB / 0.7886 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.077e-05/0.4824, allocations: 14.3 kB / 0.7886 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.4825, allocations: 2.312 kB / 0.7886 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001888/0.4827, allocations: 190.9 kB / 0.7888 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4827, allocations: 4 kB / 0.7888 GB, free: 8.383 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002395/0.4829, allocations: 32.34 kB / 0.7888 GB, free: 8.375 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: 8 ($whenCondition1,booTab.y,booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * 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.001925/0.4848, allocations: 0.9977 MB / 0.7898 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002222/0.4851, allocations: 81.84 kB / 0.7899 GB, free: 7.613 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4851, allocations: 0 / 0.7899 GB, free: 7.613 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.399e-05/0.4852, allocations: 33.92 kB / 0.7899 GB, free: 7.605 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.4855, allocations: 39.19 kB / 0.79 GB, free: 7.594 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002476/0.488, allocations: 1.962 MB / 0.7919 GB, free: 6.191 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.4883, allocations: 0.7255 MB / 0.7926 GB, free: 5.488 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.219e-05/0.4884, allocations: 26.45 kB / 0.7926 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.582e-05/0.4885, allocations: 49.31 kB / 0.7927 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of SimCode: time 3.81e-07/0.4885, allocations: 1.156 kB / 0.7927 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02553/0.5141, allocations: 4.524 MB / 0.7971 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.993/8.507, allocations: 7.469 kB / 0.7971 GB, free: 4.051 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 BuildingSystems_BuildingSystems_Utilities_Math_Examples_BooleanReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)