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.005325/0.005325, allocations: 98.08 kB / 15.73 MB, free: 6.055 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.001291/0.001292, allocations: 199.4 kB / 16.68 MB, free: 5.977 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.3/1.3, 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.002208/0.002208, allocations: 278.7 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9374/0.9374, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 100.3 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1413, allocations: 86.97 MB / 0.7659 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.002208/0.1436, allocations: 1.243 MB / 0.7671 GB, free: 7.676 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009421/0.1445, allocations: 0.5916 MB / 0.7677 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.051e-05/0.1446, allocations: 0 / 0.7677 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.706e-05/0.1446, allocations: 3.984 kB / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.257e-05/0.1447, allocations: 0 / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005614/0.1452, allocations: 146.4 kB / 0.7678 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.857e-05/0.1453, allocations: 19.92 kB / 0.7678 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.693e-05/0.1453, allocations: 0 / 0.7678 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.818e-05/0.1454, allocations: 4 kB / 0.7679 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.081e-05/0.1454, allocations: 7.938 kB / 0.7679 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.458e-06/0.1454, allocations: 3.938 kB / 0.7679 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004979/0.1459, allocations: 347.3 kB / 0.7682 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.217e-06/0.1459, allocations: 0 / 0.7682 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.905e-05/0.146, allocations: 3.984 kB / 0.7682 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002554/0.1462, allocations: 143.8 kB / 0.7683 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1462, allocations: 0 / 0.7683 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.482e-06/0.1462, allocations: 0 / 0.7683 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.1463, allocations: 4 kB / 0.7683 GB, free: 6.414 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003633/0.1466, allocations: 355.1 kB / 0.7687 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.1467, allocations: 12.03 kB / 0.7687 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.934e-05/0.1467, allocations: 34.75 kB / 0.7687 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.069e-05/0.1467, allocations: 0.9375 kB / 0.7687 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.1468, allocations: 164.4 kB / 0.7689 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.836e-06/0.1468, allocations: 384 / 0.7689 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-06/0.1469, allocations: 384 / 0.7689 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.352e-05/0.1469, allocations: 42.19 kB / 0.7689 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.147, allocations: 3.938 kB / 0.7689 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.062e-06/0.147, allocations: 0 / 0.7689 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.147, allocations: 4 kB / 0.7689 GB, free: 5.707 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.591e-05/0.147, allocations: 4 kB / 0.7689 GB, free: 5.703 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000145/0.1472, allocations: 153.7 kB / 0.7691 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.579e-05/0.1472, allocations: 18.58 kB / 0.7691 GB, free: 5.477 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.717e-05/0.1472, allocations: 4.859 kB / 0.7691 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.1473, allocations: 4.062 kB / 0.7691 GB, free: 5.465 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.1473, allocations: 38.5 kB / 0.7691 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.1473, allocations: 0 / 0.7691 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001327/0.1474, allocations: 45.62 kB / 0.7692 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.088e-05/0.1475, allocations: 51.41 kB / 0.7692 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.975e-05/0.1475, allocations: 101.8 kB / 0.7693 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.1476, allocations: 25.7 kB / 0.7694 GB, free: 5.164 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.472e-05/0.1476, allocations: 80.14 kB / 0.7694 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.285e-05/0.1476, allocations: 8.203 kB / 0.7694 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.724e-05/0.1477, allocations: 17.7 kB / 0.7695 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.863e-05/0.1478, allocations: 314.8 kB / 0.7698 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.225e-05/0.1478, allocations: 4 kB / 0.7698 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.023e-05/0.1478, allocations: 3.938 kB / 0.7698 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.827e-05/0.1478, allocations: 12.86 kB / 0.7698 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1478, allocations: 0 / 0.7698 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.04e-05/0.1479, allocations: 41.69 kB / 0.7698 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.1479, allocations: 12.03 kB / 0.7698 GB, free: 4.652 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.1479, allocations: 0 / 0.7698 GB, free: 4.652 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.148, allocations: 7.938 kB / 0.7698 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.1481, allocations: 4 kB / 0.7698 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003462/0.1485, allocations: 0.5938 MB / 0.7704 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.81e-05/0.1485, allocations: 0 / 0.7704 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.608e-06/0.1485, allocations: 0 / 0.7704 GB, free: 4.023 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): 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 8.371e-05/0.1486, allocations: 118.5 kB / 0.7705 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.427e-06/0.1486, allocations: 4 kB / 0.7705 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.631e-05/0.1487, allocations: 44.81 kB / 0.7706 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1487, allocations: 0 / 0.7706 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.1487, allocations: 0 / 0.7706 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.1487, allocations: 0 / 0.7706 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001022/0.1488, allocations: 161.5 kB / 0.7707 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1489, allocations: 0 / 0.7707 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.669e-05/0.1489, allocations: 15.97 kB / 0.7707 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.1489, allocations: 0 / 0.7707 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.421e-06/0.149, allocations: 0 / 0.7707 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000289/0.1492, allocations: 0.5899 MB / 0.7713 GB, free: 3.012 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.654e-06/0.1493, allocations: 3.938 kB / 0.7713 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.788e-05/0.1493, allocations: 73.67 kB / 0.7714 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.042e-05/0.1494, allocations: 77.11 kB / 0.7715 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.1494, allocations: 3.984 kB / 0.7715 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.48e-05/0.1494, allocations: 0 / 0.7715 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.623e-05/0.1494, allocations: 7.922 kB / 0.7715 GB, free: 2.812 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.1494, allocations: 7.938 kB / 0.7715 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.977e-05/0.1495, allocations: 75.28 kB / 0.7716 GB, free: 2.73 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1495, allocations: 0 / 0.7716 GB, free: 2.73 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001932/0.1497, allocations: 8 kB / 0.7716 GB, free: 2.723 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): 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.000404/0.1501, allocations: 0.6143 MB / 0.7722 GB, free: 2.078 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001577/0.1503, allocations: 23.92 kB / 0.7722 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.1503, allocations: 0 / 0.7722 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.815e-05/0.1504, allocations: 12.09 kB / 0.7722 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001413/0.1505, allocations: 13.97 kB / 0.7722 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003883/0.1509, allocations: 131.6 kB / 0.7723 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.1512, allocations: 0.6766 MB / 0.773 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.565e-05/0.1512, allocations: 0 / 0.773 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.203e-05/0.1512, allocations: 11.44 kB / 0.773 GB, free: 1.145 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.1512, allocations: 4.062 kB / 0.773 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2826/0.4338, allocations: 1.388 MB / 0.7744 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.67, allocations: 8.75 kB / 0.7744 GB, free: 14.69 MB / 0.5606 GB (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)