Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.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/BuildSysPro 3.6.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.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(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator",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.006708/0.006708, allocations: 99.98 kB / 15.73 MB, free: 6.043 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.001457/0.001458, allocations: 202.1 kB / 16.68 MB, free: 5.965 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.594/1.594, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/package.mo): time 1.124/1.124, allocations: 143.3 MB / 433.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001858, allocations: 63.91 kB / 0.5953 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4368/0.4387, allocations: 82.03 MB / 0.6754 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator): time 0.002969/0.4417, allocations: 1.768 MB / 0.6771 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.00193/0.4436, allocations: 1.105 MB / 0.6782 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.055e-05/0.4437, allocations: 5.125 kB / 0.6782 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.000312/0.4441, allocations: 54.36 kB / 0.6783 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0002736/0.4444, allocations: 82.55 kB / 0.6784 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006224/0.445, allocations: 217 kB / 0.6786 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002219/0.4452, allocations: 145.2 kB / 0.6787 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.4454, allocations: 35.97 kB / 0.6787 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.4455, allocations: 69.34 kB / 0.6788 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.4456, allocations: 67.19 kB / 0.6789 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.302e-05/0.4456, allocations: 6.969 kB / 0.6789 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001671/0.4458, allocations: 63.91 kB / 0.6789 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 8.083e-05/0.4459, allocations: 38.17 kB / 0.679 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 8.337e-05/0.446, allocations: 64.55 kB / 0.679 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003278/0.4463, allocations: 207.5 kB / 0.6792 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.4463, allocations: 1 kB / 0.6792 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.303e-06/0.4463, allocations: 0 / 0.6792 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.025e-05/0.4464, allocations: 4 kB / 0.6792 GB, free: 14.08 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007162/0.4471, allocations: 495.7 kB / 0.6797 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.4471, allocations: 10.25 kB / 0.6797 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.863e-05/0.4472, allocations: 31.72 kB / 0.6798 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.913e-05/0.4472, allocations: 17.09 kB / 0.6798 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003589/0.4476, allocations: 260.4 kB / 0.68 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.668e-05/0.4476, allocations: 2.75 kB / 0.68 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.026e-05/0.4476, allocations: 10.28 kB / 0.68 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002194/0.4479, allocations: 92.73 kB / 0.6801 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.4479, allocations: 0 / 0.6801 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.4479, allocations: 9.484 kB / 0.6801 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.4479, allocations: 1.438 kB / 0.6801 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001088/0.448, allocations: 33.48 kB / 0.6802 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000569/0.4486, allocations: 356.5 kB / 0.6805 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002493/0.4489, allocations: 97.91 kB / 0.6806 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.899e-05/0.449, allocations: 30.62 kB / 0.6806 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.449, allocations: 0.9375 kB / 0.6806 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001909/0.4492, allocations: 79.88 kB / 0.6807 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=8): time 1.613e-06/0.4492, allocations: 1.156 kB / 0.6807 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8): time 0.0003854/0.4496, allocations: 139.4 kB / 0.6808 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.12e-05/0.4497, allocations: 104.1 kB / 0.6809 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002915/0.45, allocations: 273.3 kB / 0.6812 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.45, allocations: 30.64 kB / 0.6812 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 8.967e-05/0.4501, allocations: 115.9 kB / 0.6813 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.631e-05/0.4502, allocations: 24.23 kB / 0.6814 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.077e-05/0.4502, allocations: 26.2 kB / 0.6814 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001645/0.4504, allocations: 332.3 kB / 0.6817 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.604e-05/0.4505, allocations: 25.2 kB / 0.6817 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001167/0.4506, allocations: 74.02 kB / 0.6818 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.4507, allocations: 69.3 kB / 0.6819 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4508, allocations: 0 / 0.6819 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002343/0.451, allocations: 119.9 kB / 0.682 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.451, allocations: 5.844 kB / 0.682 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.451, allocations: 3.984 kB / 0.682 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.4511, allocations: 1.219 kB / 0.682 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.319e-05/0.4512, allocations: 15.06 kB / 0.682 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.4512, allocations: 1.219 kB / 0.682 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.65e-05/0.4512, allocations: 10.14 kB / 0.682 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.4513, allocations: 3.438 kB / 0.682 GB, free: 11.54 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.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.0001696/0.4514, allocations: 149.2 kB / 0.6822 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.368e-05/0.4515, allocations: 14.88 kB / 0.6822 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.501e-05/0.4515, allocations: 16.22 kB / 0.6822 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.4515, allocations: 6.297 kB / 0.6822 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4515, allocations: 0 / 0.6822 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.4516, allocations: 4.938 kB / 0.6822 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002901/0.4518, allocations: 227 kB / 0.6824 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.4519, allocations: 0 / 0.6824 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.111e-05/0.4519, allocations: 8.812 kB / 0.6824 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.4519, allocations: 0 / 0.6824 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.4519, allocations: 1.125 kB / 0.6824 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/0.4519, allocations: 8.984 kB / 0.6824 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.452, allocations: 1.484 kB / 0.6824 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002839/0.4522, allocations: 147.4 kB / 0.6826 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.54e-05/0.4523, allocations: 98.75 kB / 0.6827 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.4524, allocations: 1.062 kB / 0.6827 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.278e-05/0.4524, allocations: 2.25 kB / 0.6827 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.411e-05/0.4525, allocations: 16.45 kB / 0.6827 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.4525, allocations: 6.219 kB / 0.6827 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001973/0.4527, allocations: 200.4 kB / 0.6829 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4527, allocations: 0 / 0.6829 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002552/0.453, allocations: 32.78 kB / 0.6829 GB, free: 10.75 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,intTab.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.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.002018/0.455, allocations: 1.002 MB / 0.6839 GB, free: 9.992 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002475/0.4553, allocations: 67 kB / 0.684 GB, free: 9.965 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4553, allocations: 1.188 kB / 0.684 GB, free: 9.965 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001/0.4554, allocations: 36.06 kB / 0.684 GB, free: 9.949 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003184/0.4557, allocations: 45.34 kB / 0.684 GB, free: 9.926 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.4583, allocations: 1.953 MB / 0.6859 GB, free: 8.398 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.4587, allocations: 0.7184 MB / 0.6866 GB, free: 7.684 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.277e-05/0.4588, allocations: 24.5 kB / 0.6867 GB, free: 7.672 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.307e-05/0.4589, allocations: 49.05 kB / 0.6867 GB, free: 7.633 MB / 0.5137 GB Notification: Performance of SimCode: time 6.41e-07/0.4589, allocations: 3.938 kB / 0.6867 GB, free: 7.629 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02763/0.4865, allocations: 4.721 MB / 0.6913 GB, free: 5.172 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.073/8.56, allocations: 14.31 kB / 0.6913 GB, free: 5.164 MB / 0.5137 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)