Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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: translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 108.7 kB / 16.41 MB, free: 6.453 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.00105/0.00105, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.227/1.227, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00198/0.001981, allocations: 281.8 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8811/0.8811, allocations: 169.3 MB / 0.499 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 95.86 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4085, allocations: 86.99 MB / 0.767 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002007/0.4106, allocations: 1.237 MB / 0.7683 GB, free: 2.824 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009095/0.4115, allocations: 0.5895 MB / 0.7688 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.695e-05/0.4115, allocations: 3.938 kB / 0.7688 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.671e-05/0.4116, allocations: 0 / 0.7688 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.422e-05/0.4116, allocations: 4 kB / 0.7688 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004585/0.4121, allocations: 141.4 kB / 0.769 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.032e-05/0.4121, allocations: 15.88 kB / 0.769 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.411e-05/0.4122, allocations: 0 / 0.769 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.733e-05/0.4122, allocations: 4 kB / 0.769 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.978e-05/0.4122, allocations: 3.984 kB / 0.769 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.869e-06/0.4123, allocations: 0 / 0.769 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004597/0.4127, allocations: 347.3 kB / 0.7693 GB, free: 1.727 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.095e-05/0.4127, allocations: 4 kB / 0.7693 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.728e-05/0.4128, allocations: 7.938 kB / 0.7693 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.413, allocations: 135.6 kB / 0.7695 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.413, allocations: 4 kB / 0.7695 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.733e-06/0.413, allocations: 0 / 0.7695 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.818e-06/0.413, allocations: 4 kB / 0.7695 GB, free: 1.578 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003681/0.4134, allocations: 350 kB / 0.7698 GB, free: 1.188 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.4134, allocations: 8.031 kB / 0.7698 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.723e-05/0.4135, allocations: 0.9375 kB / 0.7698 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.4136, allocations: 168.3 kB / 0.77 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.4136, allocations: 8.375 kB / 0.77 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.742e-06/0.4136, allocations: 384 / 0.77 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.655e-05/0.4137, allocations: 34.27 kB / 0.77 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.4137, allocations: 4.125 kB / 0.77 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.4137, allocations: 3.938 kB / 0.77 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.4137, allocations: 0 / 0.77 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.516e-05/0.4137, allocations: 4 kB / 0.77 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001501/0.4139, allocations: 153.7 kB / 0.7702 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 4.601e-05/0.4139, allocations: 26.61 kB / 0.7702 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.879e-05/0.414, allocations: 8.859 kB / 0.7702 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.414, allocations: 0 / 0.7702 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.906e-05/0.414, allocations: 34.62 kB / 0.7702 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.414, allocations: 0 / 0.7702 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001279/0.4141, allocations: 45.56 kB / 0.7703 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/0.4142, allocations: 59.53 kB / 0.7703 GB, free: 0.5078 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.634e-05/0.4143, allocations: 93.86 kB / 0.7704 GB, free: 416 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.4143, allocations: 25.7 kB / 0.7705 GB, free: 384 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.126e-05/0.4143, allocations: 80.14 kB / 0.7705 GB, free: 300 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.593e-05/0.4143, allocations: 11.83 kB / 0.7705 GB, free: 288 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.529e-05/0.4144, allocations: 17.72 kB / 0.7706 GB, free: 264 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.4145, allocations: 310.8 kB / 0.7709 GB, free: 15.95 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.342e-05/0.4145, allocations: 8 kB / 0.7709 GB, free: 15.94 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.053e-06/0.4145, allocations: 8.062 kB / 0.7709 GB, free: 15.93 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.879e-05/0.4145, allocations: 20.8 kB / 0.7709 GB, free: 15.91 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.4145, allocations: 0 / 0.7709 GB, free: 15.91 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.956e-05/0.4146, allocations: 37.69 kB / 0.7709 GB, free: 15.86 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.4146, allocations: 4 kB / 0.7709 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.4146, allocations: 7.875 kB / 0.7709 GB, free: 15.85 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.4147, allocations: 0 / 0.7709 GB, free: 15.85 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.4148, allocations: 11.98 kB / 0.771 GB, free: 15.84 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003312/0.4151, allocations: 0.59 MB / 0.7715 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.766e-05/0.4152, allocations: 4.031 kB / 0.7715 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-06/0.4152, allocations: 0 / 0.7715 GB, free: 15.22 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): 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 7.045e-05/0.4152, allocations: 109.8 kB / 0.7716 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.072e-06/0.4153, allocations: 0 / 0.7716 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.465e-05/0.4154, allocations: 48.91 kB / 0.7717 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-06/0.4154, allocations: 4 kB / 0.7717 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.4154, allocations: 0 / 0.7717 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.4154, allocations: 0 / 0.7717 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.91e-05/0.4155, allocations: 161.5 kB / 0.7718 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.4155, allocations: 0 / 0.7718 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.642e-05/0.4156, allocations: 8 kB / 0.7719 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.4156, allocations: 0 / 0.7719 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.41e-06/0.4156, allocations: 0 / 0.7719 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002795/0.4159, allocations: 0.5899 MB / 0.7724 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4159, allocations: 3.938 kB / 0.7724 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.482e-05/0.4159, allocations: 57.17 kB / 0.7725 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.62e-05/0.416, allocations: 85.09 kB / 0.7726 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.17e-05/0.416, allocations: 3.984 kB / 0.7726 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.265e-05/0.416, allocations: 0 / 0.7726 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.698e-05/0.416, allocations: 12 kB / 0.7726 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.4161, allocations: 0 / 0.7726 GB, free: 14.03 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.003e-05/0.4161, allocations: 79.28 kB / 0.7727 GB, free: 13.95 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4161, allocations: 0 / 0.7727 GB, free: 13.95 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000194/0.4163, allocations: 12 kB / 0.7727 GB, free: 13.94 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): 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.0001395/0.4164, allocations: 114.1 kB / 0.7728 GB, free: 13.82 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001439/0.4166, allocations: 20.08 kB / 0.7728 GB, free: 13.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4166, allocations: 0 / 0.7728 GB, free: 13.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.966e-05/0.4167, allocations: 15.98 kB / 0.7728 GB, free: 13.78 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001271/0.4168, allocations: 10.59 kB / 0.7728 GB, free: 13.77 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002949/0.4171, allocations: 135.6 kB / 0.773 GB, free: 13.61 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.4174, allocations: 0.6727 MB / 0.7736 GB, free: 12.91 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.291e-05/0.4174, allocations: 7.438 kB / 0.7736 GB, free: 12.9 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.4174, allocations: 8.125 kB / 0.7736 GB, free: 12.89 MB / 0.545 GB Notification: Performance of Templates: time 0.002061/0.4194, allocations: 0.7059 MB / 0.7743 GB, free: 12.19 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)