Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Buildings.Geometries.Viewfactors.Examples.TetraederSurfaces.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.Buildings.Geometries.Viewfactors.Examples.TetraederSurfaces,fileNamePrefix="BuildingSystems_BuildingSystems_Buildings_Geometries_Viewfactors_Examples_TetraederSurfaces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Buildings.Geometries.Viewfactors.Examples.TetraederSurfaces,fileNamePrefix="BuildingSystems_BuildingSystems_Buildings_Geometries_Viewfactors_Examples_TetraederSurfaces",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.001032/0.001032, 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.001038/0.001038, allocations: 195.6 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.287/1.287, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00204/0.00204, allocations: 275 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.936/0.936, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002815/0.002816, allocations: 99.25 kB / 0.5954 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1374, allocations: 86.98 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Buildings.Geometries.Viewfactors.Examples.TetraederSurfaces): time 0.002542/0.14, allocations: 1.312 MB / 0.6816 GB, free: 15.26 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.1417, allocations: 1.092 MB / 0.6826 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.524e-05/0.1418, allocations: 0 / 0.6826 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.4e-05/0.1419, allocations: 16.73 kB / 0.6827 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001106/0.143, allocations: 493.4 kB / 0.6831 GB, free: 13.67 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.462e-05/0.143, allocations: 0.625 kB / 0.6831 GB, free: 13.67 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001418/0.1432, allocations: 101.7 kB / 0.6832 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.404e-05/0.1433, allocations: 8.172 kB / 0.6832 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.787e-05/0.1433, allocations: 43.83 kB / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001153/0.1434, allocations: 59.8 kB / 0.6833 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.475e-05/0.1435, allocations: 4 kB / 0.6833 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007266/0.1442, allocations: 0.5577 MB / 0.6839 GB, free: 12.9 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.205e-05/0.1443, allocations: 67.83 kB / 0.6839 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.475e-05/0.1444, allocations: 79.28 kB / 0.684 GB, free: 12.76 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006757/0.1451, allocations: 0.5731 MB / 0.6846 GB, free: 12.18 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1451, allocations: 3.938 kB / 0.6846 GB, free: 12.18 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1451, allocations: 0 / 0.6846 GB, free: 12.18 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.1451, allocations: 0 / 0.6846 GB, free: 12.18 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0006045/0.1457, allocations: 0.5549 MB / 0.6851 GB, free: 11.57 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.1457, allocations: 8.031 kB / 0.6851 GB, free: 11.56 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.334e-05/0.1458, allocations: 50.73 kB / 0.6852 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.338e-05/0.1458, allocations: 28.56 kB / 0.6852 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.1461, allocations: 243.7 kB / 0.6854 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.226e-06/0.1461, allocations: 4.375 kB / 0.6854 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.1461, allocations: 11.92 kB / 0.6855 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003363/0.1465, allocations: 304.9 kB / 0.6857 GB, free: 10.88 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.1465, allocations: 0 / 0.6857 GB, free: 10.88 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.1465, allocations: 0 / 0.6857 GB, free: 10.88 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001054/0.1466, allocations: 91.86 kB / 0.6858 GB, free: 10.79 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002607/0.1469, allocations: 244.4 kB / 0.6861 GB, free: 10.55 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001258/0.1481, allocations: 0.6259 MB / 0.6867 GB, free: 9.875 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001939/0.1483, allocations: 178.7 kB / 0.6869 GB, free: 9.688 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001745/0.1485, allocations: 169.1 kB / 0.687 GB, free: 9.52 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.542e-06/0.1485, allocations: 0 / 0.687 GB, free: 9.52 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.1486, allocations: 38.56 kB / 0.687 GB, free: 9.473 MB / 494.1 MB Notification: Performance of pre-optimization done (n=34): time 1.543e-06/0.1486, allocations: 0 / 0.687 GB, free: 9.473 MB / 494.1 MB Notification: Performance of matching and sorting (n=34): time 0.000737/0.1493, allocations: 0.5322 MB / 0.6876 GB, free: 8.934 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/0.1494, allocations: 81.05 kB / 0.6876 GB, free: 8.836 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002964/0.1497, allocations: 290.6 kB / 0.6879 GB, free: 8.543 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.1497, allocations: 25.7 kB / 0.6879 GB, free: 8.512 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.881e-05/0.1498, allocations: 128.8 kB / 0.6881 GB, free: 8.383 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.754e-05/0.1499, allocations: 114.3 kB / 0.6882 GB, free: 8.27 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.189e-05/0.15, allocations: 45.64 kB / 0.6882 GB, free: 8.219 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1501, allocations: 342.8 kB / 0.6885 GB, free: 7.875 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.1503, allocations: 131.9 kB / 0.6887 GB, free: 7.746 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.1504, allocations: 132.5 kB / 0.6888 GB, free: 7.617 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003659/0.1508, allocations: 385.4 kB / 0.6892 GB, free: 7.223 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.1508, allocations: 0 / 0.6892 GB, free: 7.223 MB / 494.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004342/0.1512, allocations: 383.3 kB / 0.6895 GB, free: 6.836 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.723e-05/0.1513, allocations: 29.7 kB / 0.6896 GB, free: 6.801 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.1513, allocations: 3.984 kB / 0.6896 GB, free: 6.797 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.1513, allocations: 0 / 0.6896 GB, free: 6.797 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.711e-05/0.1514, allocations: 8 kB / 0.6896 GB, free: 6.789 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.1514, allocations: 3.938 kB / 0.6896 GB, free: 6.785 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.608e-05/0.1515, allocations: 23.69 kB / 0.6896 GB, free: 6.762 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.188e-05/0.1515, allocations: 15.98 kB / 0.6896 GB, free: 6.746 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 (4): * Single equations (assignments): 1 * Array equations: 2 * Algorithm blocks: 1 * 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.0001522/0.1517, allocations: 176.8 kB / 0.6898 GB, free: 6.559 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.802e-05/0.1517, allocations: 23.62 kB / 0.6898 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.093e-05/0.1518, allocations: 22.95 kB / 0.6898 GB, free: 6.508 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.79e-05/0.1518, allocations: 39.97 kB / 0.6899 GB, free: 6.469 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1518, allocations: 7.938 kB / 0.6899 GB, free: 6.461 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1519, allocations: 3.938 kB / 0.6899 GB, free: 6.457 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006316/0.1525, allocations: 297.3 kB / 0.6902 GB, free: 6.117 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.1525, allocations: 0 / 0.6902 GB, free: 6.117 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.431e-05/0.1525, allocations: 3.938 kB / 0.6902 GB, free: 6.113 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.1525, allocations: 0 / 0.6902 GB, free: 6.113 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.1525, allocations: 8 kB / 0.6902 GB, free: 6.105 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.887e-06/0.1526, allocations: 0 / 0.6902 GB, free: 6.105 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1526, allocations: 3.938 kB / 0.6902 GB, free: 6.102 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004712/0.153, allocations: 498.4 kB / 0.6907 GB, free: 5.594 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.481e-05/0.1531, allocations: 116.6 kB / 0.6908 GB, free: 5.461 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.1532, allocations: 0 / 0.6908 GB, free: 5.461 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.253e-05/0.1532, allocations: 0 / 0.6908 GB, free: 5.461 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.648e-05/0.1533, allocations: 7.938 kB / 0.6908 GB, free: 5.453 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.1533, allocations: 15.98 kB / 0.6908 GB, free: 5.438 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001947/0.1535, allocations: 213.9 kB / 0.691 GB, free: 5.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1535, allocations: 0 / 0.691 GB, free: 5.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005005/0.154, allocations: 168 kB / 0.6912 GB, free: 5.066 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 (4): * Single equations (assignments): 1 * Array equations: 2 * Algorithm blocks: 1 * 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.0009983/0.155, allocations: 1.126 MB / 0.6923 GB, free: 3.906 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004473/0.1555, allocations: 403.1 kB / 0.6926 GB, free: 3.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1555, allocations: 0 / 0.6926 GB, free: 3.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002186/0.1557, allocations: 239.2 kB / 0.6929 GB, free: 3.254 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.156, allocations: 25.17 kB / 0.6929 GB, free: 3.23 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003653/0.1596, allocations: 3.601 MB / 0.6964 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.16, allocations: 0.7754 MB / 0.6972 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.536e-05/0.1601, allocations: 49.02 kB / 0.6972 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.564e-05/0.1602, allocations: 75.41 kB / 0.6973 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.1602, allocations: 4 kB / 0.6973 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02141/0.1816, allocations: 6.466 MB / 0.7036 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.079/7.261, allocations: 8.234 kB / 0.7036 GB, free: 8.289 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Buildings.Geometries.Viewfactors.Examples.TetraederSurfaces.pipe ; mkfifo BuildingSystems_BuildingSystems.Buildings.Geometries.Viewfactors.Examples.TetraederSurfaces.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Buildings.Geometries.Viewfactors.Examples.TetraederSurfaces.pipe >> ../files/BuildingSystems_BuildingSystems.Buildings.Geometries.Viewfactors.Examples.TetraederSurfaces.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Buildings.Geometries.Viewfactors.Examples.TetraederSurfaces_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Buildings_Geometries_Viewfactors_Examples_TetraederSurfaces.fmu > BuildingSystems_BuildingSystems.Buildings.Geometries.Viewfactors.Examples.TetraederSurfaces.pipe 2>&1)