Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.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-master/package.mo", uses=false) Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-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(BuildSysPro.IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average",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.00819/0.00819, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.002142/0.002142, allocations: 196.9 kB / 16.67 MB, free: 5.973 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.487/1.487, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/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-master/package.mo): time 1.08/1.08, allocations: 143.3 MB / 433.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 63.89 kB / 0.5953 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3872/0.3891, allocations: 82.03 MB / 0.6754 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Average): time 0.002312/0.3915, allocations: 1.527 MB / 0.6769 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0003453/0.3918, allocations: 127.1 kB / 0.677 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.777e-05/0.3919, allocations: 1.125 kB / 0.677 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.392, allocations: 5.062 kB / 0.677 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 2.633e-05/0.3921, allocations: 5.219 kB / 0.677 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002284/0.3923, allocations: 31.7 kB / 0.6771 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.3924, allocations: 54.12 kB / 0.6771 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.3926, allocations: 32.8 kB / 0.6772 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 5.703e-05/0.3926, allocations: 25.36 kB / 0.6772 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 6.933e-05/0.3927, allocations: 29.25 kB / 0.6772 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.3927, allocations: 4.344 kB / 0.6772 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.068e-05/0.3928, allocations: 11.94 kB / 0.6772 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 4.489e-05/0.3928, allocations: 16.55 kB / 0.6772 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 4.74e-05/0.3929, allocations: 24.45 kB / 0.6773 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001327/0.393, allocations: 61.83 kB / 0.6773 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.393, allocations: 1.156 kB / 0.6773 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.312e-06/0.393, allocations: 4 kB / 0.6773 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.598e-06/0.3931, allocations: 0 / 0.6773 GB, free: 15.5 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005552/0.3936, allocations: 380.1 kB / 0.6777 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.3937, allocations: 9.5 kB / 0.6777 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.793e-05/0.3937, allocations: 37.47 kB / 0.6777 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.599e-05/0.3938, allocations: 3.719 kB / 0.6777 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.3939, allocations: 194.8 kB / 0.6779 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.394, allocations: 5.688 kB / 0.6779 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.394, allocations: 3.969 kB / 0.6779 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003127/0.3943, allocations: 88.92 kB / 0.678 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.3943, allocations: 3.938 kB / 0.678 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.228e-06/0.3943, allocations: 0 / 0.678 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.3943, allocations: 1.219 kB / 0.678 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003304/0.3947, allocations: 89.78 kB / 0.6781 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005369/0.3952, allocations: 319.4 kB / 0.6784 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002176/0.3954, allocations: 63.16 kB / 0.6785 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.3956, allocations: 43.8 kB / 0.6785 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.659e-05/0.3957, allocations: 6.047 kB / 0.6785 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.3957, allocations: 35.66 kB / 0.6785 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 1.243e-06/0.3957, allocations: 0 / 0.6785 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0005842/0.3963, allocations: 138.1 kB / 0.6787 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.089e-05/0.3963, allocations: 52.56 kB / 0.6787 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.958e-05/0.3964, allocations: 115.5 kB / 0.6788 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.3965, allocations: 25.7 kB / 0.6789 GB, free: 14 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.785e-05/0.3965, allocations: 103.3 kB / 0.679 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.497e-05/0.3966, allocations: 13.06 kB / 0.679 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.724e-05/0.3966, allocations: 13.5 kB / 0.679 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.3968, allocations: 328 kB / 0.6793 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.3969, allocations: 30.09 kB / 0.6793 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.3971, allocations: 35.08 kB / 0.6794 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002974/0.3974, allocations: 73.94 kB / 0.6794 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3974, allocations: 0 / 0.6794 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003578/0.3978, allocations: 109.1 kB / 0.6795 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.3978, allocations: 4.844 kB / 0.6795 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.3978, allocations: 1.828 kB / 0.6795 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.3978, allocations: 0 / 0.6795 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.3979, allocations: 21.92 kB / 0.6796 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.398, allocations: 1.062 kB / 0.6796 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.232e-05/0.398, allocations: 14.61 kB / 0.6796 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.3981, allocations: 1.219 kB / 0.6796 GB, free: 13.39 MB / 0.5137 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 (3): * Single equations (assignments): 3 * 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 9.89e-05/0.3982, allocations: 122.1 kB / 0.6797 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.901e-05/0.3982, allocations: 6.172 kB / 0.6797 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004054/0.3986, allocations: 115.5 kB / 0.6798 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.3986, allocations: 1.062 kB / 0.6798 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3986, allocations: 0 / 0.6798 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3986, allocations: 5.016 kB / 0.6798 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001925/0.3988, allocations: 173.8 kB / 0.68 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3989, allocations: 5.141 kB / 0.68 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.905e-05/0.399, allocations: 22.39 kB / 0.68 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.399, allocations: 0 / 0.68 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.399, allocations: 9.375 kB / 0.68 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.399, allocations: 3.984 kB / 0.68 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.399, allocations: 0 / 0.68 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003936/0.3994, allocations: 195.7 kB / 0.6802 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.736e-05/0.3995, allocations: 90.06 kB / 0.6803 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.3995, allocations: 5.031 kB / 0.6803 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.3996, allocations: 11.11 kB / 0.6803 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.028e-05/0.3997, allocations: 6.422 kB / 0.6803 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.3997, allocations: 1.094 kB / 0.6803 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 5.85e-05/0.3997, allocations: 91.33 kB / 0.6804 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3997, allocations: 0 / 0.6804 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000238/0.4, allocations: 13.44 kB / 0.6804 GB, free: 12.57 MB / 0.5137 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 (3): * Single equations (assignments): 3 * 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.0007318/0.4007, allocations: 0.7409 MB / 0.6811 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003585/0.4011, allocations: 80.28 kB / 0.6812 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.4011, allocations: 0 / 0.6812 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000164/0.4013, allocations: 38.5 kB / 0.6813 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000302/0.4016, allocations: 12.83 kB / 0.6813 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.4035, allocations: 1.439 MB / 0.6827 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.4038, allocations: 0.6891 MB / 0.6833 GB, free: 9.785 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.745e-05/0.4039, allocations: 8.109 kB / 0.6834 GB, free: 9.781 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.705e-05/0.4039, allocations: 21.66 kB / 0.6834 GB, free: 9.762 MB / 0.5137 GB Notification: Performance of SimCode: time 3.41e-07/0.404, allocations: 0 / 0.6834 GB, free: 9.762 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02239/0.4263, allocations: 1.817 MB / 0.6851 GB, free: 8.777 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.931/8.358, allocations: 12.14 kB / 0.6852 GB, free: 8.77 MB / 0.5137 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe 2>&1)