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.001687/0.001687, allocations: 105.8 kB / 16.41 MB, free: 6.488 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.001845/0.001845, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.442/1.442, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002535/0.002535, allocations: 288.1 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 1.025/1.025, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002856/0.002856, allocations: 91.84 kB / 0.6821 GB, free: 6.953 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4385/0.4414, allocations: 86.98 MB / 0.767 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002264/0.4437, allocations: 1.245 MB / 0.7683 GB, free: 2.664 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001139/0.4448, allocations: 0.5933 MB / 0.7688 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.668e-05/0.4448, allocations: 0 / 0.7688 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.766e-05/0.4448, allocations: 3.938 kB / 0.7688 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.759e-05/0.4449, allocations: 0 / 0.7688 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006204/0.4455, allocations: 146.9 kB / 0.769 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.811e-05/0.4456, allocations: 19.88 kB / 0.769 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.551e-05/0.4456, allocations: 0 / 0.769 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.886e-05/0.4456, allocations: 4 kB / 0.769 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.161e-05/0.4457, allocations: 3.984 kB / 0.769 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.498e-06/0.4457, allocations: 0 / 0.769 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006086/0.4463, allocations: 347.3 kB / 0.7693 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.626e-06/0.4463, allocations: 0 / 0.7693 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.837e-05/0.4463, allocations: 3.938 kB / 0.7693 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002461/0.4465, allocations: 141.3 kB / 0.7695 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.4465, allocations: 0 / 0.7695 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.593e-06/0.4465, allocations: 4 kB / 0.7695 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.107e-06/0.4466, allocations: 3.938 kB / 0.7695 GB, free: 1.418 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.0004457/0.447, allocations: 357.8 kB / 0.7698 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.447, allocations: 12.03 kB / 0.7698 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.431e-05/0.4471, allocations: 0.9375 kB / 0.7698 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.4472, allocations: 168.3 kB / 0.77 GB, free: 0.8047 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.863e-06/0.4472, allocations: 384 / 0.77 GB, free: 0.8047 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.4472, allocations: 4.375 kB / 0.77 GB, free: 0.8008 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.533e-05/0.4473, allocations: 30.27 kB / 0.77 GB, free: 0.7656 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.772e-06/0.4473, allocations: 4.188 kB / 0.77 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.4473, allocations: 7.938 kB / 0.77 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.4473, allocations: 0 / 0.77 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.907e-05/0.4474, allocations: 8 kB / 0.7701 GB, free: 0.7461 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001744/0.4475, allocations: 145.7 kB / 0.7702 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.256e-05/0.4476, allocations: 26.55 kB / 0.7702 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.913e-05/0.4476, allocations: 8.922 kB / 0.7702 GB, free: 0.5078 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.4476, allocations: 7.984 kB / 0.7702 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.4476, allocations: 34.55 kB / 0.7703 GB, free: 468 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.4476, allocations: 3.938 kB / 0.7703 GB, free: 464 kB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001443/0.4478, allocations: 49.58 kB / 0.7703 GB, free: 408 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.4478, allocations: 51.41 kB / 0.7704 GB, free: 344 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.605e-05/0.4479, allocations: 97.86 kB / 0.7705 GB, free: 236 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.4479, allocations: 25.95 kB / 0.7705 GB, free: 204 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.352e-05/0.448, allocations: 84.14 kB / 0.7706 GB, free: 116 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/0.448, allocations: 7.938 kB / 0.7706 GB, free: 108 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.01e-05/0.448, allocations: 13.72 kB / 0.7706 GB, free: 88 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001557/0.4482, allocations: 314.8 kB / 0.7709 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.182e-05/0.4482, allocations: 0 / 0.7709 GB, free: 15.77 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.347e-06/0.4482, allocations: 4 kB / 0.7709 GB, free: 15.77 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.86e-05/0.4482, allocations: 8.859 kB / 0.7709 GB, free: 15.75 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.4482, allocations: 4.062 kB / 0.7709 GB, free: 15.75 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.594e-05/0.4483, allocations: 45.62 kB / 0.7709 GB, free: 15.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.4483, allocations: 11.94 kB / 0.771 GB, free: 15.69 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.4483, allocations: 3.938 kB / 0.771 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.4483, allocations: 0 / 0.771 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.4485, allocations: 11.98 kB / 0.771 GB, free: 15.67 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005038/0.449, allocations: 0.5821 MB / 0.7715 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.712e-05/0.449, allocations: 4.062 kB / 0.7715 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-06/0.449, allocations: 0 / 0.7715 GB, free: 15.06 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 9.459e-05/0.4491, allocations: 120.2 kB / 0.7717 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.254e-06/0.4491, allocations: 0 / 0.7717 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.902e-05/0.4492, allocations: 48.75 kB / 0.7717 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.4492, allocations: 0 / 0.7717 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.4492, allocations: 0 / 0.7717 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.4492, allocations: 4.031 kB / 0.7717 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001252/0.4493, allocations: 153.6 kB / 0.7719 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.4493, allocations: 0 / 0.7719 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.77e-05/0.4494, allocations: 8 kB / 0.7719 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.4494, allocations: 0 / 0.7719 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/0.4494, allocations: 3.984 kB / 0.7719 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004501/0.4499, allocations: 0.586 MB / 0.7724 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4499, allocations: 3.938 kB / 0.7724 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.62e-05/0.45, allocations: 69.22 kB / 0.7725 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.991e-05/0.45, allocations: 85.08 kB / 0.7726 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.198e-06/0.45, allocations: 0 / 0.7726 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.442e-05/0.45, allocations: 7.938 kB / 0.7726 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.728e-05/0.4501, allocations: 3.938 kB / 0.7726 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.4501, allocations: 4 kB / 0.7726 GB, free: 13.86 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.253e-05/0.4501, allocations: 83.31 kB / 0.7727 GB, free: 13.77 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.4501, allocations: 0 / 0.7727 GB, free: 13.77 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001975/0.4503, allocations: 7.938 kB / 0.7727 GB, free: 13.77 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.0001643/0.4505, allocations: 111.2 kB / 0.7728 GB, free: 13.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001665/0.4506, allocations: 27.92 kB / 0.7728 GB, free: 13.62 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4506, allocations: 0 / 0.7728 GB, free: 13.62 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.634e-05/0.4507, allocations: 12.14 kB / 0.7728 GB, free: 13.61 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001321/0.4509, allocations: 11.05 kB / 0.7729 GB, free: 13.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002971/0.4512, allocations: 98.16 kB / 0.7729 GB, free: 13.47 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.4515, allocations: 0.6766 MB / 0.7736 GB, free: 12.77 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.449e-05/0.4515, allocations: 0 / 0.7736 GB, free: 12.77 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.485e-05/0.4515, allocations: 7.438 kB / 0.7736 GB, free: 12.76 MB / 0.545 GB Notification: Performance of SimCode: time 3.6e-07/0.4515, allocations: 0 / 0.7736 GB, free: 12.76 MB / 0.545 GB Notification: Performance of Templates: time 0.002903/0.4544, allocations: 472 kB / 0.7741 GB, free: 12.34 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)