Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19.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.IO.Files.Examples.WeeklySchedule7to19,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_WeeklySchedule7to19",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_WeeklySchedule7to19",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.001048/0.001048, allocations: 108 kB / 15.61 MB, free: 152 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.001042/0.001043, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.303/1.303, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001994/0.001994, allocations: 282.5 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9088/0.9088, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 98.64 kB / 0.5953 GB, free: 27.99 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1447, allocations: 86.98 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19): time 0.002735/0.1475, allocations: 1.356 MB / 0.6816 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001657/0.1477, allocations: 51.77 kB / 0.6817 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.619e-05/0.1477, allocations: 0 / 0.6817 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001495/0.1479, allocations: 11.91 kB / 0.6817 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001051/0.148, allocations: 11.94 kB / 0.6817 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.188e-06/0.148, allocations: 0 / 0.6817 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.549e-05/0.1481, allocations: 19.92 kB / 0.6817 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.993e-05/0.1482, allocations: 4.906 kB / 0.6817 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.682e-05/0.1482, allocations: 3.938 kB / 0.6817 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.771e-05/0.1482, allocations: 12.64 kB / 0.6817 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.589e-05/0.1483, allocations: 0.7188 kB / 0.6817 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.527e-05/0.1483, allocations: 11.98 kB / 0.6817 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.9e-05/0.1484, allocations: 12.5 kB / 0.6817 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.386e-05/0.1484, allocations: 7.938 kB / 0.6818 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.55e-05/0.1485, allocations: 28.5 kB / 0.6818 GB, free: 15.08 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1485, allocations: 1.938 kB / 0.6818 GB, free: 15.08 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1485, allocations: 0 / 0.6818 GB, free: 15.08 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.1485, allocations: 0 / 0.6818 GB, free: 15.08 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003296/0.1488, allocations: 339.4 kB / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.1489, allocations: 8.031 kB / 0.6821 GB, free: 14.69 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.161e-05/0.1489, allocations: 34.75 kB / 0.6821 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.311e-05/0.149, allocations: 4.938 kB / 0.6822 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.1491, allocations: 180.2 kB / 0.6823 GB, free: 14.43 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.905e-06/0.1491, allocations: 384 / 0.6823 GB, free: 14.43 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.054e-06/0.1492, allocations: 384 / 0.6823 GB, free: 14.43 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.503e-05/0.1492, allocations: 34.25 kB / 0.6824 GB, free: 14.39 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.1492, allocations: 3.938 kB / 0.6824 GB, free: 14.38 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.1493, allocations: 0 / 0.6824 GB, free: 14.38 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.372e-05/0.1493, allocations: 4 kB / 0.6824 GB, free: 14.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.064e-05/0.1493, allocations: 8 kB / 0.6824 GB, free: 14.37 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001452/0.1495, allocations: 153.7 kB / 0.6825 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.924e-05/0.1495, allocations: 26.52 kB / 0.6825 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.575e-05/0.1495, allocations: 4.859 kB / 0.6826 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.1496, allocations: 3.938 kB / 0.6826 GB, free: 14.12 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.1496, allocations: 34.5 kB / 0.6826 GB, free: 14.08 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.81e-07/0.1496, allocations: 4 kB / 0.6826 GB, free: 14.08 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001237/0.1497, allocations: 45.69 kB / 0.6826 GB, free: 14.03 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.373e-05/0.1498, allocations: 51.41 kB / 0.6827 GB, free: 13.96 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.1499, allocations: 121.8 kB / 0.6828 GB, free: 13.84 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.1499, allocations: 25.7 kB / 0.6828 GB, free: 13.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.177e-05/0.1499, allocations: 80.14 kB / 0.6829 GB, free: 13.72 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.932e-05/0.15, allocations: 3.906 kB / 0.6829 GB, free: 13.72 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.148e-05/0.15, allocations: 17.72 kB / 0.6829 GB, free: 13.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.1502, allocations: 319 kB / 0.6832 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.199e-05/0.1502, allocations: 4 kB / 0.6832 GB, free: 13.37 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.043e-06/0.1502, allocations: 0 / 0.6832 GB, free: 13.37 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.975e-05/0.1502, allocations: 12.86 kB / 0.6832 GB, free: 13.36 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1502, allocations: 0 / 0.6832 GB, free: 13.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.86e-05/0.1503, allocations: 37.69 kB / 0.6833 GB, free: 13.31 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.1503, allocations: 7.938 kB / 0.6833 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1503, allocations: 3.938 kB / 0.6833 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.1504, allocations: 4.094 kB / 0.6833 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.929e-05/0.1504, allocations: 4 kB / 0.6833 GB, free: 13.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.1504, allocations: 0 / 0.6833 GB, free: 13.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.293e-05/0.1504, allocations: 0 / 0.6833 GB, free: 13.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-06/0.1505, allocations: 0 / 0.6833 GB, free: 13.29 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * 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 6.837e-05/0.1505, allocations: 115.2 kB / 0.6834 GB, free: 13.17 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.295e-05/0.1505, allocations: 7.844 kB / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.424e-05/0.1506, allocations: 45.22 kB / 0.6835 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.1507, allocations: 32 / 0.6835 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1507, allocations: 4 kB / 0.6835 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.1507, allocations: 0 / 0.6835 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.949e-05/0.1508, allocations: 161.6 kB / 0.6836 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1508, allocations: 0 / 0.6836 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.384e-05/0.1508, allocations: 4 kB / 0.6836 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.1508, allocations: 3.938 kB / 0.6836 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.1508, allocations: 7.922 kB / 0.6836 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1508, allocations: 0 / 0.6836 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.1508, allocations: 0 / 0.6836 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.282e-05/0.1509, allocations: 57.14 kB / 0.6837 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.742e-05/0.151, allocations: 93.03 kB / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.338e-05/0.151, allocations: 3.938 kB / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.065e-05/0.151, allocations: 0 / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.096e-05/0.151, allocations: 4 kB / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-06/0.151, allocations: 0 / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.87e-05/0.1511, allocations: 99.2 kB / 0.6839 GB, free: 12.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1511, allocations: 0 / 0.6839 GB, free: 12.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002091/0.1513, allocations: 7.938 kB / 0.6839 GB, free: 12.59 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0003753/0.1517, allocations: 0.6213 MB / 0.6845 GB, free: 11.95 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 8.081e-05/0.1518, allocations: 8 kB / 0.6845 GB, free: 11.94 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1518, allocations: 0 / 0.6845 GB, free: 11.94 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.331e-05/0.1518, allocations: 4 kB / 0.6845 GB, free: 11.93 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.1519, allocations: 3.984 kB / 0.6845 GB, free: 11.93 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008196/0.1528, allocations: 1.11 MB / 0.6856 GB, free: 10.74 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001949/0.153, allocations: 0.6807 MB / 0.6863 GB, free: 10.03 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.068e-05/0.153, allocations: 7.984 kB / 0.6863 GB, free: 10.02 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.534e-05/0.1531, allocations: 7.438 kB / 0.6863 GB, free: 10.02 MB / 494.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1531, allocations: 4 kB / 0.6863 GB, free: 10.01 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01573/0.1688, allocations: 1.377 MB / 0.6876 GB, free: 8.758 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.89/7.059, allocations: 3.984 kB / 0.6876 GB, free: 8.754 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19_res.csv --start-time 0 --stop-time 1.2096e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 483.84 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_WeeklySchedule7to19.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19.pipe 2>&1)