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.006875/0.006875, 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.001172/0.001172, 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.345/1.345, 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.002283/0.002283, allocations: 289.3 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9325/0.9325, allocations: 169.2 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 99.84 kB / 0.681 GB, free: 7.438 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4946/0.4965, allocations: 86.99 MB / 0.7659 GB, free: 3.977 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BooleanReplicator): time 0.003166/0.4997, allocations: 1.766 MB / 0.7676 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00163/0.5014, allocations: 1.024 MB / 0.7686 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.5015, allocations: 0 / 0.7686 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0006349/0.5022, allocations: 163.5 kB / 0.7688 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0003083/0.5025, allocations: 115.6 kB / 0.7689 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005894/0.5031, allocations: 166 kB / 0.7691 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002365/0.5033, allocations: 171.6 kB / 0.7692 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.5035, allocations: 28.84 kB / 0.7693 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.5036, allocations: 71.69 kB / 0.7693 GB, free: 476 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.5037, allocations: 75.69 kB / 0.7694 GB, free: 400 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.259e-05/0.5038, allocations: 12 kB / 0.7694 GB, free: 388 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001573/0.5039, allocations: 59.97 kB / 0.7695 GB, free: 328 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.161e-05/0.504, allocations: 43.89 kB / 0.7695 GB, free: 284 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 8.804e-05/0.5041, allocations: 63.55 kB / 0.7696 GB, free: 220 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.00031/0.5044, allocations: 196.7 kB / 0.7698 GB, free: 28 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.5044, allocations: 0 / 0.7698 GB, free: 28 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.433e-06/0.5044, allocations: 0 / 0.7698 GB, free: 28 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.5044, allocations: 0 / 0.7698 GB, free: 28 kB / 0.5294 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.0007332/0.5052, allocations: 0.5 MB / 0.7703 GB, free: 15.47 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.5052, allocations: 15.97 kB / 0.7703 GB, free: 15.46 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.357e-05/0.5053, allocations: 34.75 kB / 0.7703 GB, free: 15.41 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.124e-05/0.5053, allocations: 16.84 kB / 0.7703 GB, free: 15.4 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003056/0.5056, allocations: 249 kB / 0.7706 GB, free: 15.11 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.5057, allocations: 4.375 kB / 0.7706 GB, free: 15.11 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.5057, allocations: 11.94 kB / 0.7706 GB, free: 15.1 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.5059, allocations: 87.31 kB / 0.7707 GB, free: 15 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.5059, allocations: 0 / 0.7707 GB, free: 15 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.5059, allocations: 4 kB / 0.7707 GB, free: 15 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/0.5059, allocations: 7.938 kB / 0.7707 GB, free: 14.99 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.335e-05/0.506, allocations: 35.98 kB / 0.7707 GB, free: 14.95 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004882/0.5065, allocations: 348.7 kB / 0.771 GB, free: 14.56 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001863/0.5067, allocations: 74.61 kB / 0.7711 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.943e-05/0.5068, allocations: 36.84 kB / 0.7711 GB, free: 14.44 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.5068, allocations: 4 kB / 0.7711 GB, free: 14.44 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001498/0.507, allocations: 75.39 kB / 0.7712 GB, free: 14.35 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.507, allocations: 0 / 0.7712 GB, free: 14.35 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0003337/0.5073, allocations: 153.4 kB / 0.7714 GB, free: 14.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.5074, allocations: 81.09 kB / 0.7714 GB, free: 14.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002495/0.5077, allocations: 267.6 kB / 0.7717 GB, free: 13.83 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.5077, allocations: 29.7 kB / 0.7717 GB, free: 13.79 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.182e-05/0.5078, allocations: 112.1 kB / 0.7718 GB, free: 13.68 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.975e-05/0.5078, allocations: 23.8 kB / 0.7718 GB, free: 13.66 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.643e-05/0.5078, allocations: 33.64 kB / 0.7719 GB, free: 13.62 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000104/0.5079, allocations: 334.8 kB / 0.7722 GB, free: 13.28 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.283e-05/0.508, allocations: 20 kB / 0.7722 GB, free: 13.26 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.091e-05/0.5081, allocations: 63.69 kB / 0.7723 GB, free: 13.19 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001234/0.5082, allocations: 69.73 kB / 0.7723 GB, free: 13.11 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.5082, allocations: 3.938 kB / 0.7724 GB, free: 13.11 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002001/0.5085, allocations: 125.5 kB / 0.7725 GB, free: 12.98 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.5085, allocations: 4 kB / 0.7725 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.5085, allocations: 0 / 0.7725 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.5085, allocations: 4 kB / 0.7725 GB, free: 12.97 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.251e-05/0.5086, allocations: 16.05 kB / 0.7725 GB, free: 12.96 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.5086, allocations: 0 / 0.7725 GB, free: 12.96 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.287e-05/0.5087, allocations: 12.05 kB / 0.7725 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-06/0.5087, allocations: 7.938 kB / 0.7725 GB, free: 12.94 MB / 0.545 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.0001157/0.5088, allocations: 137.8 kB / 0.7726 GB, free: 12.79 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.1e-05/0.5088, allocations: 19.86 kB / 0.7727 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.884e-05/0.5089, allocations: 29.39 kB / 0.7727 GB, free: 12.74 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.5089, allocations: 0 / 0.7727 GB, free: 12.74 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.5089, allocations: 4 kB / 0.7727 GB, free: 12.74 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.5089, allocations: 7.938 kB / 0.7727 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001866/0.5091, allocations: 213.6 kB / 0.7729 GB, free: 12.47 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.5091, allocations: 0 / 0.7729 GB, free: 12.47 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.61e-05/0.5092, allocations: 11.92 kB / 0.7729 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.5092, allocations: 0 / 0.7729 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.5092, allocations: 4 kB / 0.7729 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.5092, allocations: 0 / 0.7729 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.5092, allocations: 4.156 kB / 0.7729 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002321/0.5094, allocations: 144.9 kB / 0.7731 GB, free: 12.29 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.105e-05/0.5095, allocations: 96.94 kB / 0.7732 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.979e-05/0.5095, allocations: 7.938 kB / 0.7732 GB, free: 12.17 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.906e-05/0.5096, allocations: 4 kB / 0.7732 GB, free: 12.17 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.5096, allocations: 15.91 kB / 0.7732 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.5097, allocations: 4 kB / 0.7732 GB, free: 12.15 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001731/0.5098, allocations: 188.6 kB / 0.7734 GB, free: 11.96 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5098, allocations: 0 / 0.7734 GB, free: 11.96 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002441/0.5101, allocations: 39.92 kB / 0.7734 GB, free: 11.93 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: 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.001461/0.5116, allocations: 1.003 MB / 0.7744 GB, free: 11.05 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002134/0.5118, allocations: 63.97 kB / 0.7744 GB, free: 10.99 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.5118, allocations: 4.062 kB / 0.7744 GB, free: 10.99 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.594e-05/0.5119, allocations: 43.92 kB / 0.7745 GB, free: 10.95 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003043/0.5122, allocations: 40.94 kB / 0.7745 GB, free: 10.91 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.5143, allocations: 1.962 MB / 0.7764 GB, free: 8.867 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002605/0.5146, allocations: 0.724 MB / 0.7772 GB, free: 8.117 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.324e-05/0.5146, allocations: 21.72 kB / 0.7772 GB, free: 8.094 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.576e-05/0.5147, allocations: 51.36 kB / 0.7772 GB, free: 8.047 MB / 0.545 GB Notification: Performance of SimCode: time 3.11e-07/0.5147, allocations: 0 / 0.7772 GB, free: 8.047 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.5354, allocations: 4.532 MB / 0.7816 GB, free: 3.668 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.491/8.027, allocations: 7.938 kB / 0.7817 GB, free: 3.664 MB / 0.545 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)