Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor.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.HAM.HeatAndMoistureTransport.Functions.Examples.wSor,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_wSor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_wSor",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.007596/0.007597, allocations: 97.73 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.0019/0.0019, allocations: 198.2 kB / 16.68 MB, free: 5.969 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002554/0.002554, allocations: 275 kB / 290.8 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.095/1.095, allocations: 178.6 MB / 0.5074 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002708/0.002708, allocations: 98.14 kB / 0.6943 GB, free: 3.629 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4943/0.497, allocations: 89.14 MB / 0.7813 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor): time 0.003084/0.5001, allocations: 1.715 MB / 0.783 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008468/0.501, allocations: 0.5011 MB / 0.7835 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.613e-05/0.501, allocations: 1.438 kB / 0.7835 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004342/0.5015, allocations: 140.5 kB / 0.7836 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 9.388e-05/0.5016, allocations: 57.56 kB / 0.7837 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002936/0.5019, allocations: 65.89 kB / 0.7837 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001556/0.5021, allocations: 100.5 kB / 0.7838 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.643e-05/0.5021, allocations: 5.141 kB / 0.7838 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.613e-05/0.5022, allocations: 44.94 kB / 0.7839 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.572e-05/0.5023, allocations: 43.58 kB / 0.7839 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.531e-05/0.5023, allocations: 3.062 kB / 0.7839 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002195/0.5025, allocations: 88.47 kB / 0.784 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.857e-05/0.5027, allocations: 58.84 kB / 0.7841 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.777e-05/0.5027, allocations: 70.94 kB / 0.7841 GB, free: 12 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003342/0.5031, allocations: 195.3 kB / 0.7843 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.5031, allocations: 0 / 0.7843 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.463e-06/0.5031, allocations: 0 / 0.7843 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.126e-05/0.5031, allocations: 0 / 0.7843 GB, free: 11.93 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0006827/0.5038, allocations: 492.7 kB / 0.7848 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.5039, allocations: 9.219 kB / 0.7848 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.095e-05/0.5039, allocations: 40.59 kB / 0.7848 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.711e-05/0.5039, allocations: 17.98 kB / 0.7849 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001957/0.5041, allocations: 218.2 kB / 0.7851 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.5042, allocations: 5.797 kB / 0.7851 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-06/0.5042, allocations: 1.812 kB / 0.7851 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002023/0.5044, allocations: 63.05 kB / 0.7851 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.5044, allocations: 4 kB / 0.7851 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-06/0.5044, allocations: 1.844 kB / 0.7851 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.5044, allocations: 0 / 0.7851 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002246/0.5047, allocations: 66.55 kB / 0.7852 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005324/0.5052, allocations: 334.4 kB / 0.7855 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001538/0.5054, allocations: 62.98 kB / 0.7856 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.5055, allocations: 34.11 kB / 0.7856 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.388e-05/0.5056, allocations: 12.95 kB / 0.7856 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.5056, allocations: 36.28 kB / 0.7857 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 3.276e-06/0.5056, allocations: 0 / 0.7857 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0004178/0.506, allocations: 138.6 kB / 0.7858 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.5061, allocations: 53.78 kB / 0.7858 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002766/0.5064, allocations: 256.4 kB / 0.7861 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.5064, allocations: 29.7 kB / 0.7861 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.5065, allocations: 137.2 kB / 0.7863 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.811e-05/0.5065, allocations: 6.328 kB / 0.7863 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.593e-05/0.5066, allocations: 15.41 kB / 0.7863 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001601/0.5068, allocations: 331 kB / 0.7866 GB, free: 9.977 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.5069, allocations: 29.5 kB / 0.7866 GB, free: 9.973 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.678e-05/0.507, allocations: 33.77 kB / 0.7866 GB, free: 9.965 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001896/0.5072, allocations: 69.47 kB / 0.7867 GB, free: 9.941 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5072, allocations: 0 / 0.7867 GB, free: 9.941 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000247/0.5074, allocations: 103.8 kB / 0.7868 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.5074, allocations: 6.562 kB / 0.7868 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.5075, allocations: 0 / 0.7868 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.5075, allocations: 4.094 kB / 0.7868 GB, free: 9.891 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.748e-05/0.5076, allocations: 9.766 kB / 0.7868 GB, free: 9.891 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.5076, allocations: 0.7031 kB / 0.7868 GB, free: 9.891 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.705e-05/0.5077, allocations: 5.641 kB / 0.7868 GB, free: 9.891 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.5077, allocations: 1.281 kB / 0.7868 GB, free: 9.891 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 (2): * Single equations (assignments): 2 * 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 0.000128/0.5078, allocations: 142.4 kB / 0.787 GB, free: 9.762 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.998e-05/0.5078, allocations: 20.41 kB / 0.787 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003031/0.5082, allocations: 118.7 kB / 0.7871 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.5082, allocations: 0 / 0.7871 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.5082, allocations: 2.062 kB / 0.7871 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.5082, allocations: 0 / 0.7871 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002844/0.5085, allocations: 223 kB / 0.7873 GB, free: 9.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.5085, allocations: 1.25 kB / 0.7873 GB, free: 9.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.574e-05/0.5086, allocations: 9.125 kB / 0.7873 GB, free: 9.48 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.5086, allocations: 0 / 0.7873 GB, free: 9.48 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.106e-06/0.5086, allocations: 1.188 kB / 0.7873 GB, free: 9.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.5086, allocations: 4.828 kB / 0.7873 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.5086, allocations: 1.25 kB / 0.7873 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000335/0.5089, allocations: 211.2 kB / 0.7875 GB, free: 9.316 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.438e-05/0.509, allocations: 93.38 kB / 0.7876 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.5091, allocations: 1 kB / 0.7876 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.5092, allocations: 14.33 kB / 0.7876 GB, free: 9.203 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.129e-05/0.5092, allocations: 2.359 kB / 0.7876 GB, free: 9.203 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.5092, allocations: 1.156 kB / 0.7876 GB, free: 9.203 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002076/0.5094, allocations: 190.8 kB / 0.7878 GB, free: 9.098 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.5e-07/0.5094, allocations: 0 / 0.7878 GB, free: 9.098 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003119/0.5098, allocations: 38.86 kB / 0.7879 GB, free: 9.09 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 (2): * Single equations (assignments): 2 * 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.0007714/0.5105, allocations: 0.7697 MB / 0.7886 GB, free: 8.398 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002659/0.5108, allocations: 64.39 kB / 0.7887 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.5108, allocations: 0 / 0.7887 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.5109, allocations: 32 kB / 0.7887 GB, free: 8.383 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004538/0.5114, allocations: 42.39 kB / 0.7888 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000819/0.5122, allocations: 408.2 kB / 0.7891 GB, free: 8.109 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004324/0.5127, allocations: 0.738 MB / 0.7899 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.561e-05/0.5127, allocations: 12.53 kB / 0.7899 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.433e-05/0.5128, allocations: 50.56 kB / 0.7899 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of SimCode: time 2.104e-06/0.5128, allocations: 0 / 0.7899 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02616/0.539, allocations: 3.981 MB / 0.7938 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.181/8.72, allocations: 19.02 kB / 0.7938 GB, free: 6.504 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_wSor.fmu > BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor.pipe 2>&1)