Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.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.001547/0.001547, allocations: 103.2 kB / 16.27 MB, free: 6 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.001724/0.001724, allocations: 191.9 kB / 17.2 MB, free: 5.609 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.381/1.381, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.706/2.706, allocations: 482.4 MB / 0.7553 GB, free: 6.973 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 62.19 kB / 0.9245 GB, free: 12 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7207/0.7226, allocations: 162.2 MB / 1.083 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002187/0.7248, allocations: 1.248 MB / 1.084 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008277/0.7257, allocations: 0.5887 MB / 1.085 GB, free: 376 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.291e-05/0.7257, allocations: 3.938 kB / 1.085 GB, free: 372 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.449e-05/0.7257, allocations: 2.109 kB / 1.085 GB, free: 372 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.189e-05/0.7258, allocations: 0 / 1.085 GB, free: 372 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000503/0.7263, allocations: 135.4 kB / 1.085 GB, free: 312 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.093e-05/0.7264, allocations: 13.94 kB / 1.085 GB, free: 304 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.848e-05/0.7264, allocations: 2.234 kB / 1.085 GB, free: 304 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.93e-05/0.7264, allocations: 10.97 kB / 1.085 GB, free: 296 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.842e-05/0.7265, allocations: 6.688 kB / 1.085 GB, free: 292 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.019e-05/0.7265, allocations: 1.156 kB / 1.085 GB, free: 292 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005232/0.727, allocations: 341 kB / 1.085 GB, free: 192 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.095e-05/0.727, allocations: 1.812 kB / 1.085 GB, free: 192 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.003e-05/0.7271, allocations: 9.609 kB / 1.085 GB, free: 184 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002576/0.7273, allocations: 142.3 kB / 1.085 GB, free: 140 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.7273, allocations: 0 / 1.085 GB, free: 140 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.122e-06/0.7273, allocations: 0 / 1.085 GB, free: 140 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.7273, allocations: 0 / 1.085 GB, free: 140 kB / 0.8262 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.0003921/0.7277, allocations: 353.2 kB / 1.086 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.7278, allocations: 8.75 kB / 1.086 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.565e-05/0.7278, allocations: 2.969 kB / 1.086 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.728, allocations: 170.2 kB / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.733e-06/0.728, allocations: 384 / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.262e-05/0.728, allocations: 5.547 kB / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.821e-05/0.7281, allocations: 36.61 kB / 1.086 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.7281, allocations: 4.125 kB / 1.086 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.7281, allocations: 7.938 kB / 1.086 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.7281, allocations: 0.5312 kB / 1.086 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.516e-05/0.7282, allocations: 3 kB / 1.086 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001659/0.7283, allocations: 151.5 kB / 1.086 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 6.823e-05/0.7284, allocations: 21.39 kB / 1.086 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.973e-05/0.7284, allocations: 7.391 kB / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.7285, allocations: 0.5625 kB / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.7285, allocations: 40.42 kB / 1.086 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 2.865e-06/0.7285, allocations: 1.5 kB / 1.086 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0001317/0.7286, allocations: 43.23 kB / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.7287, allocations: 53.38 kB / 1.086 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.005e-05/0.7288, allocations: 97.52 kB / 1.086 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.7288, allocations: 25.7 kB / 1.086 GB, free: 15 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.68e-05/0.7288, allocations: 80.92 kB / 1.086 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.491e-05/0.7289, allocations: 10.34 kB / 1.086 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.138e-05/0.7289, allocations: 15.91 kB / 1.086 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.729, allocations: 317.1 kB / 1.087 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.32e-05/0.7291, allocations: 3.078 kB / 1.087 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.325e-06/0.7291, allocations: 6.406 kB / 1.087 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.313e-05/0.7291, allocations: 18.05 kB / 1.087 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.7291, allocations: 0 / 1.087 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.059e-05/0.7292, allocations: 37.11 kB / 1.087 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.7292, allocations: 8.844 kB / 1.087 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.7292, allocations: 3.938 kB / 1.087 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.7292, allocations: 1.156 kB / 1.087 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.7294, allocations: 14.72 kB / 1.087 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004018/0.7298, allocations: 0.5826 MB / 1.087 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.791e-05/0.7298, allocations: 1.094 kB / 1.087 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.7298, allocations: 0.7031 kB / 1.087 GB, free: 13.92 MB / 0.8419 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.957e-05/0.7299, allocations: 120 kB / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.077e-06/0.7299, allocations: 1.281 kB / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.945e-05/0.7301, allocations: 47.84 kB / 1.088 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.7301, allocations: 2.016 kB / 1.088 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.7301, allocations: 0 / 1.088 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.7301, allocations: 0 / 1.088 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/0.7302, allocations: 152.3 kB / 1.088 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.7302, allocations: 4.031 kB / 1.088 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.705e-05/0.7303, allocations: 9.75 kB / 1.088 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.7303, allocations: 0.9688 kB / 1.088 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.7303, allocations: 1.062 kB / 1.088 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004003/0.7307, allocations: 0.5911 MB / 1.088 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.7308, allocations: 3.938 kB / 1.088 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.035e-05/0.7308, allocations: 66.8 kB / 1.088 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.733e-05/0.7309, allocations: 78.77 kB / 1.088 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.7309, allocations: 1.719 kB / 1.088 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.403e-05/0.7309, allocations: 0 / 1.088 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.131e-05/0.731, allocations: 9.516 kB / 1.088 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-06/0.731, allocations: 1.812 kB / 1.088 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.114e-05/0.731, allocations: 77.8 kB / 1.089 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.731, allocations: 0 / 1.089 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001948/0.7312, allocations: 12.03 kB / 1.089 GB, free: 12.71 MB / 0.8419 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.0002371/0.7315, allocations: 111.3 kB / 1.089 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001714/0.7316, allocations: 20.41 kB / 1.089 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.7317, allocations: 0 / 1.089 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.76e-05/0.7318, allocations: 13.05 kB / 1.089 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.7319, allocations: 3.766 kB / 1.089 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003755/0.7323, allocations: 155.6 kB / 1.089 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.7326, allocations: 0.6732 MB / 1.089 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.484e-05/0.7326, allocations: 13.09 kB / 1.09 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.7326, allocations: 0 / 1.09 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of Templates: time 0.002526/0.7351, allocations: 0.6955 MB / 1.09 GB, free: 11.71 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches