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.001702/0.001702, allocations: 108.3 kB / 15.99 MB, free: 6.371 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.001785/0.001785, allocations: 194.9 kB / 16.91 MB, free: 6.199 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.358/1.358, allocations: 222.9 MB / 240.6 MB, free: 15.46 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.179/2.179, allocations: 390.3 MB / 0.665 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 65.03 kB / 0.8127 GB, free: 33.34 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2606, allocations: 140.4 MB / 0.9498 GB, free: 9.262 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002518/0.2632, allocations: 1.325 MB / 0.9511 GB, free: 7.922 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009717/0.2642, allocations: 0.5899 MB / 0.9516 GB, free: 7.332 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.218e-05/0.2642, allocations: 0 / 0.9516 GB, free: 7.332 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.817e-05/0.2642, allocations: 3.938 kB / 0.9516 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.593e-05/0.2643, allocations: 0 / 0.9516 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.00061/0.2649, allocations: 119.6 kB / 0.9518 GB, free: 7.211 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 4.67e-05/0.265, allocations: 7.938 kB / 0.9518 GB, free: 7.203 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.007e-05/0.265, allocations: 0 / 0.9518 GB, free: 7.203 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.242e-05/0.2651, allocations: 7.984 kB / 0.9518 GB, free: 7.195 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.196e-05/0.2651, allocations: 11.98 kB / 0.9518 GB, free: 7.184 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.2651, allocations: 0 / 0.9518 GB, free: 7.184 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004808/0.2656, allocations: 343.3 kB / 0.9521 GB, free: 6.848 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.479e-05/0.2656, allocations: 7.984 kB / 0.9521 GB, free: 6.84 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.002e-05/0.2657, allocations: 4 kB / 0.9521 GB, free: 6.836 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.2658, allocations: 88.12 kB / 0.9522 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.2659, allocations: 0 / 0.9522 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2659, allocations: 0 / 0.9522 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.2659, allocations: 0 / 0.9522 GB, free: 6.75 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.0003683/0.2662, allocations: 367.3 kB / 0.9526 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.2663, allocations: 12.03 kB / 0.9526 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.95e-05/0.2663, allocations: 0.9375 kB / 0.9526 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.2664, allocations: 160.4 kB / 0.9527 GB, free: 6.133 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.2665, allocations: 4.375 kB / 0.9527 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.2665, allocations: 4.312 kB / 0.9527 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.528e-05/0.2666, allocations: 34.27 kB / 0.9528 GB, free: 6.086 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.2666, allocations: 192 / 0.9528 GB, free: 6.086 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.2666, allocations: 7.922 kB / 0.9528 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.2666, allocations: 0 / 0.9528 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.36e-05/0.2666, allocations: 11.94 kB / 0.9528 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001443/0.2668, allocations: 149.7 kB / 0.9529 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 5.504e-05/0.2669, allocations: 26.59 kB / 0.953 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.212e-05/0.2669, allocations: 4.859 kB / 0.953 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.2669, allocations: 0 / 0.953 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.2669, allocations: 38.62 kB / 0.953 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.2669, allocations: 4 kB / 0.953 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0001375/0.2671, allocations: 41.58 kB / 0.953 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.2671, allocations: 51.41 kB / 0.9531 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.285e-05/0.2672, allocations: 101.8 kB / 0.9532 GB, free: 5.559 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/0.2672, allocations: 25.7 kB / 0.9532 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 2.913e-05/0.2673, allocations: 80.14 kB / 0.9533 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.472e-05/0.2673, allocations: 3.906 kB / 0.9533 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.892e-05/0.2673, allocations: 13.97 kB / 0.9533 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.2674, allocations: 318.8 kB / 0.9536 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.6e-05/0.2675, allocations: 4 kB / 0.9536 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.528e-06/0.2675, allocations: 3.984 kB / 0.9536 GB, free: 5.094 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.235e-05/0.2675, allocations: 20.8 kB / 0.9536 GB, free: 5.07 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.2675, allocations: 0 / 0.9536 GB, free: 5.07 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.229e-05/0.2676, allocations: 33.7 kB / 0.9537 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.2676, allocations: 4 kB / 0.9537 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.2676, allocations: 12.02 kB / 0.9537 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.2676, allocations: 0 / 0.9537 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.2678, allocations: 15.92 kB / 0.9537 GB, free: 5 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003469/0.2682, allocations: 0.582 MB / 0.9543 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.882e-05/0.2682, allocations: 3.938 kB / 0.9543 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.2682, allocations: 4.031 kB / 0.9543 GB, free: 4.387 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 7.198e-05/0.2683, allocations: 117.9 kB / 0.9544 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.247e-06/0.2683, allocations: 3.984 kB / 0.9544 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001079/0.2684, allocations: 40.83 kB / 0.9544 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2684, allocations: 4 kB / 0.9544 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.2684, allocations: 0 / 0.9544 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2684, allocations: 0 / 0.9544 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001034/0.2686, allocations: 153.6 kB / 0.9546 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2686, allocations: 4 kB / 0.9546 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.8e-05/0.2687, allocations: 7.984 kB / 0.9546 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.2687, allocations: 8.031 kB / 0.9546 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.2687, allocations: 3.938 kB / 0.9546 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002767/0.269, allocations: 0.586 MB / 0.9552 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.269, allocations: 3.938 kB / 0.9552 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.69e-05/0.2691, allocations: 61.25 kB / 0.9552 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.721e-05/0.2691, allocations: 89.05 kB / 0.9553 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.068e-05/0.2691, allocations: 0 / 0.9553 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.479e-05/0.2691, allocations: 0 / 0.9553 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.712e-05/0.2692, allocations: 3.938 kB / 0.9553 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.2692, allocations: 0 / 0.9553 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.24e-05/0.2692, allocations: 83.22 kB / 0.9554 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2692, allocations: 0 / 0.9554 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001963/0.2694, allocations: 11.98 kB / 0.9554 GB, free: 3.09 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.0001745/0.2696, allocations: 117.5 kB / 0.9555 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001709/0.2698, allocations: 19.98 kB / 0.9555 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2698, allocations: 0 / 0.9555 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.911e-05/0.2699, allocations: 15.98 kB / 0.9556 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001424/0.27, allocations: 3.797 kB / 0.9556 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003653/0.2704, allocations: 143.7 kB / 0.9557 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.2706, allocations: 0.6768 MB / 0.9564 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.796e-05/0.2707, allocations: 7.438 kB / 0.9564 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.2707, allocations: 0 / 0.9564 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of Templates: time 0.002407/0.2731, allocations: 0.6896 MB / 0.957 GB, free: 1.367 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