Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Buildings.Geometries.Viewfactors.Examples.PerpendicularSquareToRectangularSurface.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.PerpendicularSquareToRectangularSurface,fileNamePrefix="BuildingSystems_BuildingSystems_Buildings_Geometries_Viewfactors_Examples_PerpendicularSquareToRectangularSurface",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Buildings.Geometries.Viewfactors.Examples.PerpendicularSquareToRectangularSurface,fileNamePrefix="BuildingSystems_BuildingSystems_Buildings_Geometries_Viewfactors_Examples_PerpendicularSquareToRectangularSurface",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.004334/0.004334, allocations: 102.3 kB / 15.73 MB, free: 6.5 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.001136/0.001136, allocations: 199 kB / 16.68 MB, free: 6.375 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.199/1.199, 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.001951/0.001951, allocations: 279.1 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8613/0.8613, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 95.86 kB / 0.681 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1327, allocations: 86.97 MB / 0.7659 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Buildings.Geometries.Viewfactors.Examples.PerpendicularSquareToRectangularSurface): time 0.002065/0.1348, allocations: 1.352 MB / 0.7672 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001738/0.1366, allocations: 1.322 MB / 0.7685 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.393e-05/0.1367, allocations: 0 / 0.7685 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 8.589e-05/0.1368, allocations: 7.922 kB / 0.7685 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001173/0.1379, allocations: 0.5908 MB / 0.7691 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 8.747e-06/0.138, allocations: 0 / 0.7691 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001231/0.1381, allocations: 107.7 kB / 0.7692 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.115e-05/0.1381, allocations: 8.172 kB / 0.7692 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.462e-05/0.1382, allocations: 51.77 kB / 0.7693 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001051/0.1383, allocations: 63.73 kB / 0.7693 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.95e-05/0.1384, allocations: 4 kB / 0.7693 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007583/0.1391, allocations: 0.7136 MB / 0.77 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.314e-05/0.1392, allocations: 56.39 kB / 0.7701 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 5.477e-05/0.1393, allocations: 51.55 kB / 0.7701 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0007051/0.14, allocations: 0.686 MB / 0.7708 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.14, allocations: 7.938 kB / 0.7708 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.162e-06/0.14, allocations: 0 / 0.7708 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.14, allocations: 0 / 0.7708 GB, free: 3.914 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0005193/0.1405, allocations: 0.5018 MB / 0.7713 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.1406, allocations: 16.02 kB / 0.7713 GB, free: 3.348 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.245e-05/0.1406, allocations: 46.73 kB / 0.7714 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.565e-05/0.1407, allocations: 16.84 kB / 0.7714 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.1409, allocations: 204.1 kB / 0.7716 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.031e-06/0.1409, allocations: 4.375 kB / 0.7716 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.1409, allocations: 12.36 kB / 0.7716 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002589/0.1412, allocations: 203.2 kB / 0.7718 GB, free: 2.816 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.1412, allocations: 0 / 0.7718 GB, free: 2.816 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.1412, allocations: 11.98 kB / 0.7718 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.72e-05/0.1413, allocations: 47.89 kB / 0.7718 GB, free: 2.758 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001892/0.1415, allocations: 140.8 kB / 0.772 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000699/0.1422, allocations: 0.5006 MB / 0.7725 GB, free: 2.07 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.1424, allocations: 86.59 kB / 0.7725 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.649e-05/0.1425, allocations: 52.83 kB / 0.7726 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.1425, allocations: 0 / 0.7726 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.752e-05/0.1425, allocations: 34.5 kB / 0.7726 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=9): time 9.62e-07/0.1425, allocations: 0 / 0.7726 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9): time 0.0003153/0.1428, allocations: 189.4 kB / 0.7728 GB, free: 1.688 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/0.1429, allocations: 59.34 kB / 0.7729 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001879/0.1431, allocations: 243 kB / 0.7731 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.1431, allocations: 29.7 kB / 0.7731 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.946e-05/0.1432, allocations: 124.5 kB / 0.7732 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.44e-05/0.1432, allocations: 35.72 kB / 0.7733 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-05/0.1432, allocations: 29.66 kB / 0.7733 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.032e-05/0.1433, allocations: 334.8 kB / 0.7736 GB, free: 0.8047 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.673e-05/0.1434, allocations: 43.95 kB / 0.7737 GB, free: 0.7617 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.925e-05/0.1435, allocations: 71.41 kB / 0.7737 GB, free: 0.6797 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001516/0.1437, allocations: 131.3 kB / 0.7739 GB, free: 0.5391 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1437, allocations: 4 kB / 0.7739 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002135/0.1439, allocations: 165.4 kB / 0.774 GB, free: 376 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.1439, allocations: 8 kB / 0.774 GB, free: 368 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.1439, allocations: 0 / 0.774 GB, free: 368 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.1439, allocations: 3.984 kB / 0.774 GB, free: 364 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.56e-05/0.144, allocations: 12 kB / 0.774 GB, free: 352 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.144, allocations: 3.938 kB / 0.774 GB, free: 348 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.671e-05/0.1441, allocations: 19.83 kB / 0.7741 GB, free: 328 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.1441, allocations: 7.984 kB / 0.7741 GB, free: 320 kB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (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 8.971e-05/0.1442, allocations: 137.8 kB / 0.7742 GB, free: 172 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.663e-05/0.1443, allocations: 19.91 kB / 0.7742 GB, free: 152 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2728/0.4171, allocations: 163.9 kB / 0.7744 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-05/0.4172, allocations: 6.672 kB / 0.7744 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.4172, allocations: 3.75 kB / 0.7744 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4172, allocations: 1.641 kB / 0.7744 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003005/0.4175, allocations: 227.3 kB / 0.7746 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.4175, allocations: 0 / 0.7746 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.4176, allocations: 16.52 kB / 0.7746 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.4176, allocations: 2.219 kB / 0.7746 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.4176, allocations: 8.469 kB / 0.7746 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.4176, allocations: 3.906 kB / 0.7746 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.4177, allocations: 2.25 kB / 0.7746 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002794/0.4179, allocations: 254.1 kB / 0.7749 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.667e-05/0.418, allocations: 103 kB / 0.775 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.673e-05/0.418, allocations: 5.203 kB / 0.775 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.061e-05/0.4181, allocations: 1.469 kB / 0.775 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.818e-05/0.4182, allocations: 10.97 kB / 0.775 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.4182, allocations: 7.312 kB / 0.775 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001432/0.4183, allocations: 178.2 kB / 0.7752 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.5e-07/0.4183, allocations: 0 / 0.7752 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005818/0.4189, allocations: 211.9 kB / 0.7754 GB, free: 14.29 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 (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 Backend phase and start with SimCode phase: time 0.0007703/0.4197, allocations: 0.9325 MB / 0.7763 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002398/0.4199, allocations: 136 kB / 0.7764 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.42, allocations: 0.5 kB / 0.7764 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001/0.4201, allocations: 77.83 kB / 0.7765 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002321/0.4203, allocations: 14.31 kB / 0.7765 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001992/0.4223, allocations: 2.317 MB / 0.7788 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000141/0.4225, allocations: 0.7387 MB / 0.7795 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001533/0.4226, allocations: 38.36 kB / 0.7795 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.757e-05/0.4227, allocations: 55.34 kB / 0.7796 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of SimCode: time 3.81e-07/0.4227, allocations: 0 / 0.7796 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02065/0.4434, allocations: 5.812 MB / 0.7852 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.734/7.178, allocations: 5.062 kB / 0.7853 GB, free: 11.2 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Buildings.Geometries.Viewfactors.Examples.PerpendicularSquareToRectangularSurface.pipe ; mkfifo BuildingSystems_BuildingSystems.Buildings.Geometries.Viewfactors.Examples.PerpendicularSquareToRectangularSurface.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Buildings.Geometries.Viewfactors.Examples.PerpendicularSquareToRectangularSurface.pipe >> ../files/BuildingSystems_BuildingSystems.Buildings.Geometries.Viewfactors.Examples.PerpendicularSquareToRectangularSurface.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Buildings.Geometries.Viewfactors.Examples.PerpendicularSquareToRectangularSurface_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_PerpendicularSquareToRectangularSurface.fmu > BuildingSystems_BuildingSystems.Buildings.Geometries.Viewfactors.Examples.PerpendicularSquareToRectangularSurface.pipe 2>&1)