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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009131/0.0009132, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006285/0.006286, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.392/1.392, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.826/2.826, allocations: 443.3 MB / 0.7175 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003353/0.0003353, allocations: 8.406 kB / 0.8796 GB, free: 41.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2712, allocations: 155.2 MB / 1.031 GB, free: 4.289 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001185/0.2724, allocations: 0.9835 MB / 1.032 GB, free: 3.293 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.000904/0.2733, allocations: 0.5922 MB / 1.033 GB, free: 2.699 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.231e-05/0.2733, allocations: 0 / 1.033 GB, free: 2.699 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.541e-05/0.2734, allocations: 0 / 1.033 GB, free: 2.699 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.68e-05/0.2734, allocations: 3.938 kB / 1.033 GB, free: 2.695 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004002/0.2738, allocations: 123.1 kB / 1.033 GB, free: 2.578 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 3.491e-05/0.2739, allocations: 11.94 kB / 1.033 GB, free: 2.566 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.773e-05/0.2739, allocations: 4 kB / 1.033 GB, free: 2.562 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 1.797e-05/0.2739, allocations: 4 kB / 1.033 GB, free: 2.559 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.641e-05/0.274, allocations: 15.91 kB / 1.033 GB, free: 2.543 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.739e-06/0.274, allocations: 0 / 1.033 GB, free: 2.543 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004516/0.2745, allocations: 339.3 kB / 1.033 GB, free: 2.211 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.794e-06/0.2745, allocations: 0 / 1.033 GB, free: 2.211 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.8e-05/0.2745, allocations: 29.7 kB / 1.033 GB, free: 2.176 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002169/0.2747, allocations: 140 kB / 1.033 GB, free: 2.039 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.2748, allocations: 4 kB / 1.033 GB, free: 2.035 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2748, allocations: 0 / 1.033 GB, free: 2.035 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.037e-06/0.2748, allocations: 4 kB / 1.033 GB, free: 2.031 MB / 0.7794 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.0003262/0.2751, allocations: 351.3 kB / 1.034 GB, free: 1.637 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.2751, allocations: 12.03 kB / 1.034 GB, free: 1.625 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.636e-05/0.2752, allocations: 4.938 kB / 1.034 GB, free: 1.621 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.271e-05/0.2753, allocations: 164.4 kB / 1.034 GB, free: 1.422 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.2753, allocations: 4.359 kB / 1.034 GB, free: 1.418 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.708e-06/0.2753, allocations: 384 / 1.034 GB, free: 1.418 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.844e-05/0.2754, allocations: 30.27 kB / 1.034 GB, free: 1.383 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.2754, allocations: 8.125 kB / 1.034 GB, free: 1.375 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.2754, allocations: 3.938 kB / 1.034 GB, free: 1.371 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.2754, allocations: 4 kB / 1.034 GB, free: 1.367 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.257e-05/0.2755, allocations: 0 / 1.034 GB, free: 1.367 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001333/0.2756, allocations: 153.7 kB / 1.034 GB, free: 1.168 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.757e-05/0.2757, allocations: 26.55 kB / 1.034 GB, free: 1.133 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.939e-05/0.2757, allocations: 12.92 kB / 1.034 GB, free: 1.117 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.2757, allocations: 4 kB / 1.034 GB, free: 1.113 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.705e-05/0.2757, allocations: 34.5 kB / 1.034 GB, free: 1.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.2757, allocations: 0 / 1.034 GB, free: 1.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001284/0.2759, allocations: 49.62 kB / 1.034 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.2759, allocations: 55.34 kB / 1.034 GB, free: 0.9492 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.103e-05/0.276, allocations: 93.86 kB / 1.034 GB, free: 0.8477 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.058e-05/0.276, allocations: 25.7 kB / 1.034 GB, free: 0.8164 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.488e-05/0.276, allocations: 84.39 kB / 1.034 GB, free: 0.7305 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.348e-05/0.276, allocations: 11.89 kB / 1.034 GB, free: 0.7188 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.008e-05/0.2761, allocations: 9.719 kB / 1.034 GB, free: 0.7031 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.901e-05/0.2762, allocations: 314.8 kB / 1.035 GB, free: 396 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.748e-06/0.2762, allocations: 0 / 1.035 GB, free: 396 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.365e-06/0.2762, allocations: 4 kB / 1.035 GB, free: 392 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.783e-05/0.2762, allocations: 12.86 kB / 1.035 GB, free: 376 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2762, allocations: 0 / 1.035 GB, free: 376 kB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.975e-05/0.2763, allocations: 45.69 kB / 1.035 GB, free: 324 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.2763, allocations: 4 kB / 1.035 GB, free: 320 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2763, allocations: 3.938 kB / 1.035 GB, free: 316 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.2763, allocations: 4 kB / 1.035 GB, free: 312 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.2765, allocations: 4 kB / 1.035 GB, free: 308 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003278/0.2768, allocations: 0.5937 MB / 1.035 GB, free: 15.68 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.764e-05/0.2768, allocations: 0 / 1.035 GB, free: 15.68 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-06/0.2769, allocations: 4.125 kB / 1.035 GB, free: 15.68 MB / 0.795 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 6.367e-05/0.2769, allocations: 109.8 kB / 1.035 GB, free: 15.56 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.095e-06/0.2769, allocations: 4.031 kB / 1.035 GB, free: 15.56 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.351e-05/0.277, allocations: 48.75 kB / 1.035 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.2771, allocations: 3.984 kB / 1.036 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.2771, allocations: 0 / 1.036 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.2771, allocations: 0 / 1.036 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.733e-05/0.2772, allocations: 157.6 kB / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.2772, allocations: 4.031 kB / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.446e-05/0.2772, allocations: 8 kB / 1.036 GB, free: 15.28 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.2773, allocations: 0 / 1.036 GB, free: 15.28 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.3e-06/0.2773, allocations: 0 / 1.036 GB, free: 15.28 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002737/0.2775, allocations: 0.5821 MB / 1.036 GB, free: 14.68 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.2776, allocations: 11.81 kB / 1.036 GB, free: 14.66 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.36e-05/0.2776, allocations: 65.27 kB / 1.036 GB, free: 14.58 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.266e-05/0.2777, allocations: 84.95 kB / 1.036 GB, free: 14.48 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.022e-05/0.2777, allocations: 3.984 kB / 1.036 GB, free: 14.48 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.393e-05/0.2777, allocations: 0 / 1.036 GB, free: 14.48 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.286e-05/0.2777, allocations: 7.938 kB / 1.036 GB, free: 14.47 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.2777, allocations: 4 kB / 1.036 GB, free: 14.46 MB / 0.795 GB Notification: Performance of sorting global known variables: time 2.647e-05/0.2778, allocations: 75.28 kB / 1.036 GB, free: 14.39 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2778, allocations: 4.125 kB / 1.036 GB, free: 14.39 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0001972/0.278, allocations: 15.94 kB / 1.036 GB, free: 14.37 MB / 0.795 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.0001434/0.2781, allocations: 107.2 kB / 1.037 GB, free: 14.26 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001424/0.2783, allocations: 19.92 kB / 1.037 GB, free: 14.24 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.2783, allocations: 0 / 1.037 GB, free: 14.24 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.699e-05/0.2784, allocations: 15.98 kB / 1.037 GB, free: 14.22 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001336/0.2785, allocations: 0.7344 kB / 1.037 GB, free: 14.22 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002715/0.2788, allocations: 111.2 kB / 1.037 GB, free: 14.09 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001885/0.279, allocations: 0.6731 MB / 1.037 GB, free: 13.39 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 1.563e-05/0.279, allocations: 0 / 1.037 GB, free: 13.39 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.259e-05/0.279, allocations: 7.438 kB / 1.037 GB, free: 13.38 MB / 0.795 GB Notification: Performance of SimCode: time 3.81e-07/0.279, allocations: 3.938 kB / 1.037 GB, free: 13.38 MB / 0.795 GB Notification: Performance of Templates: time 0.002163/0.2812, allocations: 439.9 kB / 1.038 GB, free: 12.98 MB / 0.795 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=480 -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/jenkins/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