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.004018/0.004018, allocations: 100.9 kB / 15.73 MB, free: 6.039 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.0009947/0.0009946, allocations: 199 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.208/1.208, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001977/0.001977, allocations: 286.3 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8545/0.8545, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 96.23 kB / 0.681 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1334, allocations: 86.98 MB / 0.7659 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Buildings.Geometries.Viewfactors.Examples.TetraederSurfaces): time 0.002107/0.1356, allocations: 1.325 MB / 0.7672 GB, free: 7.605 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001412/0.137, allocations: 1.077 MB / 0.7682 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.772e-05/0.1371, allocations: 0 / 0.7682 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 8.197e-05/0.1372, allocations: 19.92 kB / 0.7683 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0009649/0.1381, allocations: 489.4 kB / 0.7687 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 1.59e-05/0.1382, allocations: 7.984 kB / 0.7687 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001329/0.1383, allocations: 99.66 kB / 0.7688 GB, free: 5.922 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.156e-05/0.1384, allocations: 8.172 kB / 0.7688 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.51e-05/0.1384, allocations: 47.83 kB / 0.7689 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.76e-05/0.1385, allocations: 51.81 kB / 0.7689 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.987e-05/0.1385, allocations: 4 kB / 0.7689 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006283/0.1392, allocations: 0.5538 MB / 0.7695 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.032e-05/0.1393, allocations: 79.75 kB / 0.7696 GB, free: 5.18 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.816e-05/0.1393, allocations: 79.28 kB / 0.7696 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005512/0.1399, allocations: 0.5766 MB / 0.7702 GB, free: 4.523 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1399, allocations: 3.938 kB / 0.7702 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.132e-06/0.1399, allocations: 0 / 0.7702 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.85e-06/0.1399, allocations: 0 / 0.7702 GB, free: 4.52 MB / 0.5606 GB 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.0005571/0.1405, allocations: 0.5695 MB / 0.7708 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.1405, allocations: 12.03 kB / 0.7708 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.206e-05/0.1406, allocations: 58.7 kB / 0.7708 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.096e-05/0.1406, allocations: 24.75 kB / 0.7708 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.1408, allocations: 236 kB / 0.7711 GB, free: 3.523 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.1408, allocations: 8.359 kB / 0.7711 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.1409, allocations: 3.938 kB / 0.7711 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.1412, allocations: 312.8 kB / 0.7714 GB, free: 3.199 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.1412, allocations: 0 / 0.7714 GB, free: 3.199 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.1412, allocations: 3.984 kB / 0.7714 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.835e-05/0.1413, allocations: 87.92 kB / 0.7715 GB, free: 3.109 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002307/0.1415, allocations: 240.4 kB / 0.7717 GB, free: 2.875 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.1428, allocations: 0.63 MB / 0.7723 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000182/0.1429, allocations: 171.3 kB / 0.7725 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/0.1431, allocations: 169.1 kB / 0.7726 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.334e-06/0.1431, allocations: 3.938 kB / 0.7726 GB, free: 1.84 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.1431, allocations: 34.56 kB / 0.7727 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.484e-06/0.1431, allocations: 4 kB / 0.7727 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.000593/0.1437, allocations: 0.5323 MB / 0.7732 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/0.1438, allocations: 85.05 kB / 0.7733 GB, free: 1.152 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.144, allocations: 290.6 kB / 0.7736 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.1441, allocations: 25.7 kB / 0.7736 GB, free: 0.832 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.221e-05/0.1441, allocations: 136.7 kB / 0.7737 GB, free: 0.6953 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 6.996e-05/0.1442, allocations: 111 kB / 0.7738 GB, free: 0.5859 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.453e-05/0.1443, allocations: 41.69 kB / 0.7739 GB, free: 0.5391 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.1444, allocations: 346.8 kB / 0.7742 GB, free: 196 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.1445, allocations: 135.9 kB / 0.7743 GB, free: 60 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2491/0.3937, allocations: 130.4 kB / 0.7744 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004236/0.3941, allocations: 382.7 kB / 0.7748 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3941, allocations: 0.5938 kB / 0.7748 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004694/0.3946, allocations: 381.5 kB / 0.7752 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/0.3946, allocations: 33.38 kB / 0.7752 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3947, allocations: 0.7969 kB / 0.7752 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.3947, allocations: 1.031 kB / 0.7752 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.361e-05/0.3947, allocations: 1.484 kB / 0.7752 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.3947, allocations: 4.781 kB / 0.7752 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.381e-05/0.3948, allocations: 23.31 kB / 0.7752 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.442e-05/0.3948, allocations: 10.2 kB / 0.7752 GB, free: 14.62 MB / 0.5606 GB 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.0001168/0.395, allocations: 188.1 kB / 0.7754 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.038e-05/0.395, allocations: 27.95 kB / 0.7754 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.931e-05/0.395, allocations: 22.36 kB / 0.7755 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.089e-05/0.3951, allocations: 39.28 kB / 0.7755 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3951, allocations: 0 / 0.7755 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3951, allocations: 5.875 kB / 0.7755 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005791/0.3957, allocations: 297 kB / 0.7758 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3957, allocations: 0 / 0.7758 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.162e-05/0.3957, allocations: 2.5 kB / 0.7758 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.3957, allocations: 0.9062 kB / 0.7758 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.3958, allocations: 8 kB / 0.7758 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.3958, allocations: 0.75 kB / 0.7758 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.3958, allocations: 1.812 kB / 0.7758 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004102/0.3962, allocations: 497 kB / 0.7763 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.3e-05/0.3963, allocations: 111.9 kB / 0.7764 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.3963, allocations: 2.328 kB / 0.7764 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.247e-05/0.3964, allocations: 3.641 kB / 0.7764 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.005e-05/0.3964, allocations: 8.656 kB / 0.7764 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.3964, allocations: 13.41 kB / 0.7764 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001707/0.3966, allocations: 216.2 kB / 0.7766 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3966, allocations: 0 / 0.7766 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004781/0.3971, allocations: 180.8 kB / 0.7768 GB, free: 13.89 MB / 0.5606 GB 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.0008359/0.3979, allocations: 1.131 MB / 0.7779 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000435/0.3984, allocations: 381 kB / 0.7783 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3984, allocations: 2.156 kB / 0.7783 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001992/0.3986, allocations: 241 kB / 0.7785 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002449/0.3988, allocations: 13 kB / 0.7785 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003077/0.4019, allocations: 3.635 MB / 0.7821 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001589/0.4021, allocations: 0.7755 MB / 0.7828 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.229e-05/0.4022, allocations: 45.72 kB / 0.7829 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.686e-05/0.4023, allocations: 71.08 kB / 0.7829 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of SimCode: time 3.01e-07/0.4023, allocations: 1.25 kB / 0.7829 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02033/0.4226, allocations: 6.539 MB / 0.7893 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.858/7.281, allocations: 14 kB / 0.7893 GB, free: 10.19 MB / 0.5606 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)