Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001136/0.001137, allocations: 103.4 kB / 16.27 MB, free: 5.984 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.001159/0.00116, allocations: 189 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.332/1.332, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.169/2.169, allocations: 390.2 MB / 0.6653 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001378, allocations: 65.47 kB / 0.8132 GB, free: 33.06 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.248, allocations: 140.4 MB / 0.9503 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002703/0.2507, allocations: 1.245 MB / 0.9515 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001012/0.2518, allocations: 0.5936 MB / 0.9521 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.758e-05/0.2518, allocations: 0 / 0.9521 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.865e-05/0.2519, allocations: 4 kB / 0.9521 GB, free: 7.031 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.345e-05/0.252, allocations: 7.922 kB / 0.9521 GB, free: 7.023 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006281/0.2526, allocations: 135.4 kB / 0.9522 GB, free: 6.891 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.689e-05/0.2527, allocations: 23.91 kB / 0.9522 GB, free: 6.867 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.566e-05/0.2527, allocations: 0 / 0.9522 GB, free: 6.867 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.151e-05/0.2527, allocations: 4 kB / 0.9522 GB, free: 6.863 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.449e-05/0.2528, allocations: 3.938 kB / 0.9522 GB, free: 6.859 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.399e-05/0.2528, allocations: 4 kB / 0.9522 GB, free: 6.855 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005278/0.2533, allocations: 335.4 kB / 0.9526 GB, free: 6.527 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.259e-05/0.2534, allocations: 7.922 kB / 0.9526 GB, free: 6.52 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.446e-05/0.2534, allocations: 7.984 kB / 0.9526 GB, free: 6.512 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002725/0.2537, allocations: 140 kB / 0.9527 GB, free: 6.375 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2537, allocations: 0 / 0.9527 GB, free: 6.375 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.893e-06/0.2537, allocations: 0 / 0.9527 GB, free: 6.375 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.2537, allocations: 4 kB / 0.9527 GB, free: 6.371 MB / 0.7325 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.0004397/0.2541, allocations: 355.4 kB / 0.9531 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.2542, allocations: 8.031 kB / 0.9531 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.341e-05/0.2542, allocations: 0.9375 kB / 0.9531 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.2543, allocations: 168.3 kB / 0.9532 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.2544, allocations: 4.375 kB / 0.9532 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.103e-05/0.2544, allocations: 384 / 0.9532 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001095/0.2545, allocations: 38.25 kB / 0.9533 GB, free: 5.715 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.2545, allocations: 4.188 kB / 0.9533 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.2545, allocations: 3.938 kB / 0.9533 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.2545, allocations: 0 / 0.9533 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.044e-05/0.2546, allocations: 4 kB / 0.9533 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001747/0.2548, allocations: 153.7 kB / 0.9534 GB, free: 5.504 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 6.434e-05/0.2548, allocations: 22.52 kB / 0.9534 GB, free: 5.473 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.214e-05/0.2549, allocations: 8.922 kB / 0.9534 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.2549, allocations: 4 kB / 0.9535 GB, free: 5.457 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.2549, allocations: 38.5 kB / 0.9535 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.453e-06/0.2549, allocations: 3.938 kB / 0.9535 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0001478/0.2551, allocations: 41.62 kB / 0.9535 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.2551, allocations: 59.34 kB / 0.9536 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.383e-05/0.2552, allocations: 93.86 kB / 0.9537 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.2552, allocations: 25.7 kB / 0.9537 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.133e-05/0.2553, allocations: 88.39 kB / 0.9538 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.585e-05/0.2553, allocations: 3.906 kB / 0.9538 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.933e-05/0.2553, allocations: 9.719 kB / 0.9538 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.2554, allocations: 322.8 kB / 0.9541 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.34e-05/0.2555, allocations: 0 / 0.9541 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.051e-05/0.2555, allocations: 4 kB / 0.9541 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.197e-05/0.2555, allocations: 12.86 kB / 0.9541 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2555, allocations: 4.062 kB / 0.9541 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.488e-05/0.2556, allocations: 37.69 kB / 0.9542 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.2556, allocations: 4 kB / 0.9542 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.2556, allocations: 7.875 kB / 0.9542 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.2556, allocations: 4 kB / 0.9542 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/0.2558, allocations: 8 kB / 0.9542 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003772/0.2562, allocations: 0.582 MB / 0.9548 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.906e-05/0.2562, allocations: 8.109 kB / 0.9548 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.2563, allocations: 0 / 0.9548 GB, free: 4.02 MB / 0.7325 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.025e-05/0.2563, allocations: 113.8 kB / 0.9549 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.207e-06/0.2564, allocations: 4.031 kB / 0.9549 GB, free: 3.895 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.2565, allocations: 48.75 kB / 0.9549 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2565, allocations: 0 / 0.9549 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2565, allocations: 0 / 0.9549 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.2565, allocations: 0 / 0.9549 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001038/0.2566, allocations: 153.7 kB / 0.9551 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.2566, allocations: 3.984 kB / 0.9551 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.998e-05/0.2567, allocations: 11.98 kB / 0.9551 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.2567, allocations: 0 / 0.9551 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.2567, allocations: 0 / 0.9551 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00034/0.2571, allocations: 0.5821 MB / 0.9557 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.2571, allocations: 3.938 kB / 0.9557 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.682e-05/0.2572, allocations: 73.19 kB / 0.9557 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.764e-05/0.2572, allocations: 81.02 kB / 0.9558 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.2572, allocations: 7.938 kB / 0.9558 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.362e-05/0.2573, allocations: 0 / 0.9558 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.768e-05/0.2573, allocations: 7.922 kB / 0.9558 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.2573, allocations: 4 kB / 0.9558 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.594e-05/0.2573, allocations: 79.31 kB / 0.9559 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2573, allocations: 3.938 kB / 0.9559 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002008/0.2575, allocations: 12 kB / 0.9559 GB, free: 2.715 MB / 0.7325 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.0001885/0.2577, allocations: 115.2 kB / 0.956 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00017/0.2579, allocations: 23.92 kB / 0.956 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2579, allocations: 0 / 0.956 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.924e-05/0.258, allocations: 15.98 kB / 0.9561 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001442/0.2582, allocations: 4.219 kB / 0.9561 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004063/0.2586, allocations: 131.8 kB / 0.9562 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.2589, allocations: 0.6768 MB / 0.9569 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.991e-05/0.2589, allocations: 7.438 kB / 0.9569 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of SimCode: time 4.41e-07/0.2589, allocations: 0 / 0.9569 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of Templates: time 0.00244/0.2613, allocations: 0.6922 MB / 0.9575 GB, free: 0.9922 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches