Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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.InvertingBasicFlowFunction_dp,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",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.002206/0.002207, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002714/0.002714, allocations: 197.6 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.152/2.152, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.004245/0.004246, allocations: 275.1 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.368/1.368, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003127/0.003127, allocations: 98.09 kB / 0.5954 GB, free: 27.77 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.249, allocations: 86.98 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.004081/0.2532, allocations: 1.232 MB / 0.6815 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.2548, allocations: 0.5906 MB / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.531e-05/0.2549, allocations: 0 / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.437e-05/0.2549, allocations: 5.828 kB / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.265e-05/0.255, allocations: 7.938 kB / 0.6821 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009239/0.2559, allocations: 139.4 kB / 0.6822 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.629e-05/0.256, allocations: 11.94 kB / 0.6822 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.692e-05/0.2561, allocations: 4 kB / 0.6822 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.975e-05/0.2561, allocations: 4 kB / 0.6822 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.006e-05/0.2562, allocations: 3.938 kB / 0.6822 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.56e-05/0.2562, allocations: 0 / 0.6822 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007629/0.257, allocations: 347.3 kB / 0.6826 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.686e-05/0.257, allocations: 3.984 kB / 0.6826 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.274e-05/0.257, allocations: 4 kB / 0.6826 GB, free: 14.24 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003967/0.2574, allocations: 139.9 kB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2575, allocations: 4 kB / 0.6827 GB, free: 14.1 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2575, allocations: 4 kB / 0.6827 GB, free: 14.1 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.2575, allocations: 0 / 0.6827 GB, free: 14.1 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0005462/0.2581, allocations: 351.5 kB / 0.6831 GB, free: 13.7 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.2581, allocations: 8.031 kB / 0.6831 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.09e-05/0.2582, allocations: 34.75 kB / 0.6831 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.222e-05/0.2582, allocations: 0.9375 kB / 0.6831 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.2584, allocations: 168.4 kB / 0.6833 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.2584, allocations: 384 / 0.6833 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.306e-05/0.2584, allocations: 384 / 0.6833 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001162/0.2585, allocations: 42.2 kB / 0.6833 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.2586, allocations: 3.938 kB / 0.6833 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.2586, allocations: 0 / 0.6833 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.2586, allocations: 0 / 0.6833 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.333e-05/0.2586, allocations: 4 kB / 0.6833 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002113/0.2588, allocations: 157.6 kB / 0.6835 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.375e-05/0.2589, allocations: 22.56 kB / 0.6835 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.636e-05/0.259, allocations: 16.86 kB / 0.6835 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.259, allocations: 7.922 kB / 0.6835 GB, free: 13.13 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.259, allocations: 34.56 kB / 0.6835 GB, free: 13.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.292e-06/0.259, allocations: 0 / 0.6835 GB, free: 13.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001795/0.2592, allocations: 41.62 kB / 0.6836 GB, free: 13.04 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.386e-05/0.2593, allocations: 59.34 kB / 0.6836 GB, free: 12.97 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.13e-05/0.2594, allocations: 97.98 kB / 0.6837 GB, free: 12.87 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.2594, allocations: 25.7 kB / 0.6837 GB, free: 12.84 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.792e-05/0.2595, allocations: 84.14 kB / 0.6838 GB, free: 12.75 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.089e-05/0.2595, allocations: 7.891 kB / 0.6838 GB, free: 12.74 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.362e-05/0.2596, allocations: 13.72 kB / 0.6838 GB, free: 12.72 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.2597, allocations: 314.8 kB / 0.6841 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.548e-05/0.2597, allocations: 0 / 0.6841 GB, free: 12.41 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.617e-05/0.2598, allocations: 7.938 kB / 0.6842 GB, free: 12.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.078e-05/0.2598, allocations: 17.05 kB / 0.6842 GB, free: 12.38 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2598, allocations: 0 / 0.6842 GB, free: 12.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001003/0.2599, allocations: 37.69 kB / 0.6842 GB, free: 12.34 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.26, allocations: 7.938 kB / 0.6842 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.26, allocations: 4 kB / 0.6842 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.26, allocations: 0 / 0.6842 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002033/0.2602, allocations: 8 kB / 0.6842 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004978/0.2607, allocations: 0.5899 MB / 0.6848 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.643e-05/0.2608, allocations: 0 / 0.6848 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.2608, allocations: 4 kB / 0.6848 GB, free: 11.7 MB / 494.1 MB 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): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000104/0.2609, allocations: 111.1 kB / 0.6849 GB, free: 11.58 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.223e-05/0.2609, allocations: 4.031 kB / 0.6849 GB, free: 11.58 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001391/0.2611, allocations: 44.81 kB / 0.685 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.2611, allocations: 0 / 0.685 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.2611, allocations: 4.125 kB / 0.685 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.2611, allocations: 0 / 0.685 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001508/0.2613, allocations: 161.5 kB / 0.6851 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2613, allocations: 0 / 0.6851 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.2614, allocations: 8 kB / 0.6851 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2614, allocations: 0 / 0.6851 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.2614, allocations: 4 kB / 0.6851 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004141/0.2618, allocations: 0.5898 MB / 0.6857 GB, free: 10.69 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.2619, allocations: 11.97 kB / 0.6857 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001088/0.262, allocations: 65.11 kB / 0.6858 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.146e-05/0.262, allocations: 77.11 kB / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.645e-05/0.262, allocations: 3.984 kB / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.878e-05/0.2621, allocations: 0 / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.196e-05/0.2621, allocations: 3.938 kB / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-06/0.2621, allocations: 7.938 kB / 0.6859 GB, free: 10.49 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.119e-05/0.2622, allocations: 79.31 kB / 0.6859 GB, free: 10.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2622, allocations: 0 / 0.6859 GB, free: 10.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003179/0.2625, allocations: 8 kB / 0.686 GB, free: 10.4 MB / 494.1 MB 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): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005203/0.263, allocations: 0.6126 MB / 0.6865 GB, free: 9.758 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002264/0.2633, allocations: 23.92 kB / 0.6866 GB, free: 9.734 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2633, allocations: 0 / 0.6866 GB, free: 9.734 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.2634, allocations: 12 kB / 0.6866 GB, free: 9.723 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.2637, allocations: 13.75 kB / 0.6866 GB, free: 9.711 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007001/0.2644, allocations: 131.9 kB / 0.6867 GB, free: 9.543 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.2647, allocations: 0.6768 MB / 0.6874 GB, free: 8.84 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.097e-05/0.2647, allocations: 0 / 0.6874 GB, free: 8.84 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.996e-05/0.2648, allocations: 7.438 kB / 0.6874 GB, free: 8.836 MB / 494.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2648, allocations: 0 / 0.6874 GB, free: 8.836 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02915/0.2939, allocations: 1.345 MB / 0.6887 GB, free: 7.699 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.3/15.59, allocations: 13.91 kB / 0.6887 GB, free: 7.691 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_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_InvertingBasicFlowFunction_dp.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1)