Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.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.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions",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.004644/0.004644, allocations: 101.3 kB / 15.73 MB, free: 6.004 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.001056/0.001056, allocations: 187 kB / 16.67 MB, free: 5.922 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.262/1.262, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002026/0.002026, allocations: 289.7 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9021/0.9021, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001634/0.001634, allocations: 91.86 kB / 0.681 GB, free: 7.488 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3765, allocations: 86.98 MB / 0.7659 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions): time 0.001999/0.3785, allocations: 1.272 MB / 0.7671 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009055/0.3794, allocations: 0.6088 MB / 0.7677 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.138e-05/0.3795, allocations: 0 / 0.7677 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.782e-05/0.3795, allocations: 0 / 0.7677 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.856e-05/0.3795, allocations: 3.938 kB / 0.7677 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004614/0.38, allocations: 147.4 kB / 0.7679 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.864e-05/0.3801, allocations: 15.92 kB / 0.7679 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.101e-05/0.3801, allocations: 4 kB / 0.7679 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.893e-05/0.3801, allocations: 8 kB / 0.7679 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.73e-05/0.3802, allocations: 11.92 kB / 0.7679 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.798e-06/0.3802, allocations: 0 / 0.7679 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004618/0.3807, allocations: 347.3 kB / 0.7683 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.528e-06/0.3807, allocations: 0 / 0.7683 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.061e-05/0.3807, allocations: 11.94 kB / 0.7683 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.381, allocations: 156.6 kB / 0.7684 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.381, allocations: 4 kB / 0.7684 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.623e-06/0.381, allocations: 4 kB / 0.7684 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.381, allocations: 0 / 0.7684 GB, free: 1.316 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000387/0.3814, allocations: 359.1 kB / 0.7688 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.3814, allocations: 8.031 kB / 0.7688 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.945e-05/0.3815, allocations: 30.75 kB / 0.7688 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.328e-05/0.3815, allocations: 4.922 kB / 0.7688 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.3816, allocations: 172.3 kB / 0.769 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.447e-06/0.3816, allocations: 384 / 0.769 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.3816, allocations: 8.375 kB / 0.769 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.977e-05/0.3817, allocations: 46.19 kB / 0.769 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.3818, allocations: 3.938 kB / 0.769 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-06/0.3818, allocations: 0 / 0.769 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.3818, allocations: 4 kB / 0.769 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.217e-05/0.3818, allocations: 12 kB / 0.769 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002889/0.3821, allocations: 252.9 kB / 0.7693 GB, free: 288 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/0.3823, allocations: 54.56 kB / 0.7693 GB, free: 224 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.783e-05/0.3824, allocations: 20.8 kB / 0.7694 GB, free: 200 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.681e-05/0.3824, allocations: 0 / 0.7694 GB, free: 200 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.761e-05/0.3824, allocations: 34.5 kB / 0.7694 GB, free: 156 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=4): time 8.61e-07/0.3824, allocations: 0 / 0.7694 GB, free: 156 kB / 0.5294 GB Notification: Performance of matching and sorting (n=4): time 0.0001541/0.3826, allocations: 57.69 kB / 0.7694 GB, free: 92 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.3826, allocations: 51.41 kB / 0.7695 GB, free: 28 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.735e-05/0.3827, allocations: 102 kB / 0.7696 GB, free: 15.92 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.3827, allocations: 29.64 kB / 0.7696 GB, free: 15.88 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.304e-05/0.3828, allocations: 84.14 kB / 0.7697 GB, free: 15.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.134e-05/0.3828, allocations: 11.91 kB / 0.7697 GB, free: 15.79 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-05/0.3828, allocations: 21.7 kB / 0.7697 GB, free: 15.76 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.143e-05/0.3829, allocations: 310.8 kB / 0.77 GB, free: 15.45 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.977e-05/0.3829, allocations: 8 kB / 0.77 GB, free: 15.44 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.011e-05/0.383, allocations: 29.64 kB / 0.7701 GB, free: 15.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.707e-05/0.383, allocations: 29.89 kB / 0.7701 GB, free: 15.37 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.383, allocations: 3.938 kB / 0.7701 GB, free: 15.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.133e-05/0.3831, allocations: 65.58 kB / 0.7702 GB, free: 15.29 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.3831, allocations: 4 kB / 0.7702 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3832, allocations: 4 kB / 0.7702 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.3832, allocations: 0 / 0.7702 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.525e-05/0.3832, allocations: 8 kB / 0.7702 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.3832, allocations: 4.031 kB / 0.7702 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.664e-05/0.3833, allocations: 3.938 kB / 0.7702 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-06/0.3833, allocations: 3.984 kB / 0.7702 GB, free: 15.27 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * 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 5.749e-05/0.3833, allocations: 113.8 kB / 0.7703 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.458e-05/0.3834, allocations: 4 kB / 0.7703 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001282/0.3835, allocations: 61.12 kB / 0.7704 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3835, allocations: 0 / 0.7704 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3835, allocations: 0 / 0.7704 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.3835, allocations: 8 kB / 0.7704 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.3837, allocations: 161.6 kB / 0.7705 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3837, allocations: 0 / 0.7705 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.725e-05/0.3837, allocations: 8.109 kB / 0.7705 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.3837, allocations: 8 kB / 0.7705 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.56e-06/0.3837, allocations: 0 / 0.7705 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.708e-06/0.3838, allocations: 0 / 0.7705 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3838, allocations: 3.938 kB / 0.7705 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001067/0.3839, allocations: 151.4 kB / 0.7707 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.779e-05/0.3839, allocations: 81.11 kB / 0.7708 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.084e-05/0.3839, allocations: 3.938 kB / 0.7708 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.915e-05/0.384, allocations: 0 / 0.7708 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.432e-05/0.384, allocations: 7.984 kB / 0.7708 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.384, allocations: 0 / 0.7708 GB, free: 14.57 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.243e-05/0.3841, allocations: 83.28 kB / 0.7709 GB, free: 14.48 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3841, allocations: 0 / 0.7709 GB, free: 14.48 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002378/0.3843, allocations: 15.94 kB / 0.7709 GB, free: 14.47 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 (4): * Single equations (assignments): 4 * 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.0004156/0.3847, allocations: 0.7122 MB / 0.7716 GB, free: 13.73 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 8.302e-05/0.3848, allocations: 20.33 kB / 0.7716 GB, free: 13.71 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.3848, allocations: 4 kB / 0.7716 GB, free: 13.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.959e-05/0.3849, allocations: 11.98 kB / 0.7716 GB, free: 13.69 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000199/0.3851, allocations: 1.875 kB / 0.7716 GB, free: 13.69 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003949/0.3855, allocations: 160.2 kB / 0.7718 GB, free: 13.49 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002158/0.3857, allocations: 0.6806 MB / 0.7724 GB, free: 12.79 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.727e-05/0.3857, allocations: 0 / 0.7724 GB, free: 12.79 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.489e-05/0.3858, allocations: 15.42 kB / 0.7724 GB, free: 12.77 MB / 0.545 GB Notification: Performance of SimCode: time 3.21e-07/0.3858, allocations: 0 / 0.7724 GB, free: 12.77 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01594/0.4017, allocations: 1.41 MB / 0.7738 GB, free: 11.52 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.207/7.608, allocations: 16 kB / 0.7738 GB, free: 11.5 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions_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_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe 2>&1)