Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor.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.phiSor,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_phiSor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_phiSor",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.004574/0.004574, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001086/0.001086, allocations: 192.3 kB / 16.67 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.294/1.294, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002089/0.002089, allocations: 280 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9067/0.9067, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001767/0.001768, allocations: 100.2 kB / 0.6809 GB, free: 7.484 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.374/0.3758, allocations: 86.98 MB / 0.7659 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor): time 0.002754/0.3786, allocations: 1.702 MB / 0.7675 GB, free: 2.141 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0007373/0.3794, allocations: 0.5076 MB / 0.768 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.391e-05/0.3794, allocations: 4 kB / 0.768 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0003886/0.3798, allocations: 147.4 kB / 0.7682 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 8.098e-05/0.3799, allocations: 51.67 kB / 0.7682 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002571/0.3802, allocations: 71.78 kB / 0.7683 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001388/0.3804, allocations: 99.5 kB / 0.7684 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.437e-05/0.3804, allocations: 11.78 kB / 0.7684 GB, free: 1.258 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.097e-05/0.3805, allocations: 39.8 kB / 0.7684 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.137e-05/0.3806, allocations: 47.77 kB / 0.7685 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.184e-05/0.3806, allocations: 0 / 0.7685 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001725/0.3808, allocations: 83.89 kB / 0.7686 GB, free: 1.09 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.973e-05/0.3809, allocations: 67.8 kB / 0.7686 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.168e-05/0.3809, allocations: 63.5 kB / 0.7687 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002717/0.3812, allocations: 188.5 kB / 0.7689 GB, free: 0.7812 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.3812, allocations: 0 / 0.7689 GB, free: 0.7812 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3812, allocations: 0 / 0.7689 GB, free: 0.7812 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.3812, allocations: 0 / 0.7689 GB, free: 0.7812 MB / 0.5294 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.0005532/0.3818, allocations: 498 kB / 0.7694 GB, free: 252 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.3818, allocations: 11.97 kB / 0.7694 GB, free: 240 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.534e-05/0.3819, allocations: 38.75 kB / 0.7694 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.264e-05/0.3819, allocations: 16.84 kB / 0.7694 GB, free: 176 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.3821, allocations: 215.9 kB / 0.7696 GB, free: 15.92 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.3821, allocations: 4.375 kB / 0.7696 GB, free: 15.92 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.3821, allocations: 384 / 0.7696 GB, free: 15.92 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.3823, allocations: 69.91 kB / 0.7697 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-06/0.3823, allocations: 0 / 0.7697 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.774e-06/0.3823, allocations: 0 / 0.7697 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.3823, allocations: 4 kB / 0.7697 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.3825, allocations: 63.94 kB / 0.7698 GB, free: 15.78 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004405/0.383, allocations: 336.8 kB / 0.7701 GB, free: 15.4 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.3831, allocations: 58.55 kB / 0.7701 GB, free: 15.33 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.69e-05/0.3832, allocations: 48.83 kB / 0.7702 GB, free: 15.28 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.373e-05/0.3833, allocations: 4 kB / 0.7702 GB, free: 15.28 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.3833, allocations: 38.56 kB / 0.7702 GB, free: 15.23 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.3833, allocations: 0 / 0.7702 GB, free: 15.23 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.0003729/0.3837, allocations: 129.5 kB / 0.7703 GB, free: 15.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.75e-05/0.3837, allocations: 51.41 kB / 0.7704 GB, free: 15.04 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002182/0.3839, allocations: 262.8 kB / 0.7706 GB, free: 14.78 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/0.384, allocations: 25.7 kB / 0.7707 GB, free: 14.75 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.057e-05/0.384, allocations: 140.1 kB / 0.7708 GB, free: 14.61 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.384e-05/0.3841, allocations: 0 / 0.7708 GB, free: 14.61 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.135e-05/0.3841, allocations: 13.72 kB / 0.7708 GB, free: 14.59 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.3842, allocations: 334.8 kB / 0.7711 GB, free: 14.25 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.475e-05/0.3843, allocations: 31.86 kB / 0.7712 GB, free: 14.22 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.42e-05/0.3844, allocations: 35.97 kB / 0.7712 GB, free: 14.18 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.3846, allocations: 64.75 kB / 0.7713 GB, free: 14.12 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.3846, allocations: 0 / 0.7713 GB, free: 14.12 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002245/0.3848, allocations: 105.5 kB / 0.7714 GB, free: 14.01 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.3848, allocations: 7.984 kB / 0.7714 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.3849, allocations: 4.094 kB / 0.7714 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.3849, allocations: 4 kB / 0.7714 GB, free: 13.99 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.444e-05/0.385, allocations: 8 kB / 0.7714 GB, free: 13.98 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.385, allocations: 0 / 0.7714 GB, free: 13.98 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.899e-05/0.3851, allocations: 11.92 kB / 0.7714 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.3851, allocations: 3.938 kB / 0.7714 GB, free: 13.97 MB / 0.545 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 9.85e-05/0.3852, allocations: 144.2 kB / 0.7715 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.57e-05/0.3852, allocations: 19.86 kB / 0.7716 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002668/0.3855, allocations: 110.5 kB / 0.7717 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-06/0.3855, allocations: 3.984 kB / 0.7717 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.3855, allocations: 8 kB / 0.7717 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.3855, allocations: 0 / 0.7717 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000194/0.3857, allocations: 221.5 kB / 0.7719 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3857, allocations: 0 / 0.7719 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.76e-05/0.3858, allocations: 7.984 kB / 0.7719 GB, free: 13.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3858, allocations: 0 / 0.7719 GB, free: 13.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.3858, allocations: 8.031 kB / 0.7719 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3858, allocations: 0 / 0.7719 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3858, allocations: 0 / 0.7719 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002573/0.3861, allocations: 211.2 kB / 0.7721 GB, free: 13.17 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.799e-05/0.3861, allocations: 89.02 kB / 0.7722 GB, free: 13.06 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.097e-05/0.3862, allocations: 0 / 0.7722 GB, free: 13.06 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.544e-05/0.3863, allocations: 12.02 kB / 0.7722 GB, free: 13.05 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.224e-05/0.3863, allocations: 4 kB / 0.7722 GB, free: 13.05 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.3863, allocations: 0 / 0.7722 GB, free: 13.05 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000148/0.3865, allocations: 189.9 kB / 0.7724 GB, free: 12.86 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/0.3865, allocations: 0 / 0.7724 GB, free: 12.86 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002639/0.3867, allocations: 35.94 kB / 0.7724 GB, free: 12.83 MB / 0.545 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.0006159/0.3874, allocations: 0.7707 MB / 0.7732 GB, free: 12.03 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002261/0.3876, allocations: 59.95 kB / 0.7732 GB, free: 11.97 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3876, allocations: 4 kB / 0.7732 GB, free: 11.97 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.908e-05/0.3877, allocations: 36.06 kB / 0.7733 GB, free: 11.93 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004813/0.3882, allocations: 44.39 kB / 0.7733 GB, free: 11.89 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006977/0.3889, allocations: 411.6 kB / 0.7737 GB, free: 11.45 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.3892, allocations: 0.7314 MB / 0.7744 GB, free: 10.69 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.501e-05/0.3893, allocations: 11.73 kB / 0.7744 GB, free: 10.68 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.114e-05/0.3893, allocations: 43.42 kB / 0.7745 GB, free: 10.63 MB / 0.545 GB Notification: Performance of SimCode: time 2.51e-07/0.3893, allocations: 3.938 kB / 0.7745 GB, free: 10.63 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01741/0.4068, allocations: 3.987 MB / 0.7784 GB, free: 6.828 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.192/7.599, allocations: 4.484 kB / 0.7784 GB, free: 6.824 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_phiSor.fmu > BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor.pipe 2>&1)