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/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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.001523/0.001523, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001908/0.001908, allocations: 197.3 kB / 16.53 MB, free: 6.672 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.375/1.375, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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/package.mo): time 0.9662/0.9662, allocations: 143 MB / 433.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 67.84 kB / 0.5143 GB, free: 11.57 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1764, allocations: 82.04 MB / 0.5944 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator): time 0.00379/0.1803, allocations: 1.754 MB / 0.5961 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001783/0.1821, allocations: 1.104 MB / 0.5972 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.857e-05/0.1822, allocations: 0 / 0.5972 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003266/0.1825, allocations: 63.73 kB / 0.5972 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002441/0.1828, allocations: 79.67 kB / 0.5973 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006912/0.1835, allocations: 220.3 kB / 0.5975 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002811/0.1838, allocations: 147.7 kB / 0.5977 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.1839, allocations: 29.05 kB / 0.5977 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.1841, allocations: 63.7 kB / 0.5978 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.1842, allocations: 63.75 kB / 0.5978 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.084e-05/0.1843, allocations: 8 kB / 0.5978 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.1844, allocations: 63.97 kB / 0.5979 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.1845, allocations: 39.83 kB / 0.5979 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.336e-05/0.1846, allocations: 59.61 kB / 0.598 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003675/0.185, allocations: 199.7 kB / 0.5982 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.185, allocations: 0 / 0.5982 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of FrontEnd: time 6.161e-06/0.1851, allocations: 7.984 kB / 0.5982 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.829e-06/0.1851, allocations: 0 / 0.5982 GB, free: 5.586 MB / 0.4981 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.0008862/0.186, allocations: 488.3 kB / 0.5986 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.186, allocations: 8.031 kB / 0.5987 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.349e-05/0.1861, allocations: 34.75 kB / 0.5987 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.387e-05/0.1861, allocations: 24.69 kB / 0.5987 GB, free: 4.98 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000287/0.1864, allocations: 248.9 kB / 0.5989 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.612e-05/0.1864, allocations: 4.375 kB / 0.5989 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.817e-05/0.1865, allocations: 11.94 kB / 0.599 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002118/0.1867, allocations: 96.17 kB / 0.5991 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.1867, allocations: 0 / 0.5991 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.1867, allocations: 0 / 0.5991 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.701e-05/0.1867, allocations: 0 / 0.5991 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001043/0.1868, allocations: 39.97 kB / 0.5991 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004858/0.1873, allocations: 364.5 kB / 0.5994 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/0.1876, allocations: 86.66 kB / 0.5995 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.898e-05/0.1876, allocations: 28.84 kB / 0.5995 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.286e-05/0.1877, allocations: 7.984 kB / 0.5996 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002119/0.1879, allocations: 83.47 kB / 0.5996 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.533e-06/0.1879, allocations: 3.938 kB / 0.5996 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.0003458/0.1882, allocations: 137.4 kB / 0.5998 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.1883, allocations: 106.8 kB / 0.5999 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/0.1886, allocations: 263.6 kB / 0.6001 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.1886, allocations: 29.7 kB / 0.6002 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.592e-05/0.1887, allocations: 120 kB / 0.6003 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.593e-05/0.1887, allocations: 19.8 kB / 0.6003 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.574e-05/0.1888, allocations: 29.7 kB / 0.6003 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.1889, allocations: 330.8 kB / 0.6006 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.854e-05/0.189, allocations: 23.98 kB / 0.6007 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001019/0.1891, allocations: 68.22 kB / 0.6007 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.1892, allocations: 73.98 kB / 0.6008 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1892, allocations: 4 kB / 0.6008 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002165/0.1895, allocations: 117.4 kB / 0.6009 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.1895, allocations: 4 kB / 0.6009 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.1895, allocations: 4 kB / 0.6009 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.1895, allocations: 0 / 0.6009 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.1896, allocations: 15.98 kB / 0.6009 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.1896, allocations: 0 / 0.6009 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.591e-05/0.1897, allocations: 15.81 kB / 0.6009 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.1897, allocations: 0 / 0.6009 GB, free: 2.473 MB / 0.4981 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.0001407/0.1899, allocations: 151.2 kB / 0.6011 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.955e-05/0.1899, allocations: 15.81 kB / 0.6011 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.133e-05/0.19, allocations: 21.39 kB / 0.6011 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.19, allocations: 0 / 0.6011 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.19, allocations: 0 / 0.6011 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.19, allocations: 3.938 kB / 0.6011 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002005/0.1902, allocations: 221.5 kB / 0.6013 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.1902, allocations: 11.98 kB / 0.6013 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.87e-05/0.1903, allocations: 4 kB / 0.6014 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1903, allocations: 4 kB / 0.6014 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.1903, allocations: 0 / 0.6014 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1903, allocations: 0 / 0.6014 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.1903, allocations: 4 kB / 0.6014 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002466/0.1906, allocations: 140.8 kB / 0.6015 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.057e-05/0.1906, allocations: 96.92 kB / 0.6016 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.155e-05/0.1907, allocations: 7.922 kB / 0.6016 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.369e-05/0.1907, allocations: 4 kB / 0.6016 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.257e-05/0.1908, allocations: 19.92 kB / 0.6016 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.1908, allocations: 0 / 0.6016 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001926/0.191, allocations: 196.4 kB / 0.6018 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.191, allocations: 192 / 0.6018 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002503/0.1913, allocations: 35.98 kB / 0.6018 GB, free: 1.453 MB / 0.4981 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.00137/0.1926, allocations: 1.002 MB / 0.6028 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002195/0.1929, allocations: 79.89 kB / 0.6029 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1929, allocations: 0 / 0.6029 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.86e-05/0.193, allocations: 35.92 kB / 0.6029 GB, free: 484 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.1933, allocations: 44.45 kB / 0.603 GB, free: 440 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2486/0.4418, allocations: 1.927 MB / 0.6049 GB, free: 42.85 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001536/0.442, allocations: 0.723 MB / 0.6056 GB, free: 42.15 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001074/0.4422, allocations: 28.38 kB / 0.6056 GB, free: 42.15 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.018e-05/0.4422, allocations: 49.86 kB / 0.6056 GB, free: 42.14 MB / 0.4981 GB Notification: Performance of SimCode: time 7.91e-07/0.4423, allocations: 0 / 0.6056 GB, free: 42.14 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02057/0.4628, allocations: 4.617 MB / 0.6101 GB, free: 41.64 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.626/8.089, allocations: 8.453 kB / 0.6101 GB, free: 41.64 MB / 0.4981 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)