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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008293/0.0008291, allocations: 92.55 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 177 kB / 16.92 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.395/1.395, allocations: 223.3 MB / 241 MB, free: 5.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.422/2.422, allocations: 390.9 MB / 0.667 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003546/0.0003545, allocations: 8 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8024/0.8028, allocations: 142.4 MB / 0.9557 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001226/0.8041, allocations: 0.9813 MB / 0.9567 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008675/0.805, allocations: 0.5864 MB / 0.9572 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.746e-05/0.805, allocations: 3.938 kB / 0.9572 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.842e-05/0.805, allocations: 7.938 kB / 0.9572 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.918e-05/0.8051, allocations: 1.031 kB / 0.9572 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004092/0.8055, allocations: 113.7 kB / 0.9574 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.146e-05/0.8056, allocations: 13.14 kB / 0.9574 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.032e-05/0.8056, allocations: 6.031 kB / 0.9574 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.938e-05/0.8056, allocations: 1.875 kB / 0.9574 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.393e-05/0.8057, allocations: 2.031 kB / 0.9574 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.231e-05/0.8057, allocations: 1.188 kB / 0.9574 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004612/0.8062, allocations: 348.3 kB / 0.9577 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.187e-06/0.8062, allocations: 3.938 kB / 0.9577 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.327e-05/0.8062, allocations: 27.48 kB / 0.9577 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001555/0.8064, allocations: 99.25 kB / 0.9578 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.8064, allocations: 0 / 0.9578 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.915e-06/0.8064, allocations: 1.281 kB / 0.9578 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.477e-06/0.8064, allocations: 0 / 0.9578 GB, free: 6.141 MB / 0.7169 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.000284/0.8067, allocations: 345.9 kB / 0.9582 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.8067, allocations: 12.53 kB / 0.9582 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.728e-05/0.8068, allocations: 2.25 kB / 0.9582 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.95e-05/0.8068, allocations: 165.9 kB / 0.9583 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.8069, allocations: 4.359 kB / 0.9583 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.695e-06/0.8069, allocations: 1.469 kB / 0.9583 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.01e-05/0.807, allocations: 36.97 kB / 0.9584 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.807, allocations: 0.9688 kB / 0.9584 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.807, allocations: 7.875 kB / 0.9584 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.807, allocations: 1.031 kB / 0.9584 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.298e-05/0.807, allocations: 2.312 kB / 0.9584 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001159/0.8071, allocations: 157.2 kB / 0.9585 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.265e-05/0.8072, allocations: 20.45 kB / 0.9586 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.636e-05/0.8072, allocations: 14.64 kB / 0.9586 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.8072, allocations: 1.625 kB / 0.9586 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.313e-05/0.8073, allocations: 30.56 kB / 0.9586 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.71e-07/0.8073, allocations: 0 / 0.9586 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001258/0.8074, allocations: 47.03 kB / 0.9587 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.273e-05/0.8074, allocations: 60.34 kB / 0.9587 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.899e-05/0.8075, allocations: 92.36 kB / 0.9588 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.633e-06/0.8075, allocations: 27.27 kB / 0.9588 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.372e-05/0.8075, allocations: 80.14 kB / 0.9589 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.412e-05/0.8075, allocations: 9.156 kB / 0.9589 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.745e-05/0.8076, allocations: 9.719 kB / 0.9589 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.664e-05/0.8076, allocations: 324.1 kB / 0.9592 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.181e-05/0.8076, allocations: 5.531 kB / 0.9592 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.965e-06/0.8076, allocations: 2.25 kB / 0.9592 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.582e-05/0.8077, allocations: 18.52 kB / 0.9593 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.8077, allocations: 0 / 0.9593 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.065e-05/0.8077, allocations: 34.27 kB / 0.9593 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.8077, allocations: 5.125 kB / 0.9593 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.8078, allocations: 7.922 kB / 0.9593 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.8078, allocations: 1.281 kB / 0.9593 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.8079, allocations: 7.375 kB / 0.9593 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002351/0.8082, allocations: 0.587 MB / 0.9599 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.674e-05/0.8082, allocations: 0 / 0.9599 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.8082, allocations: 1.188 kB / 0.9599 GB, free: 3.902 MB / 0.7169 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 4.932e-05/0.8083, allocations: 122.8 kB / 0.96 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.693e-06/0.8083, allocations: 4.938 kB / 0.96 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.108e-05/0.8084, allocations: 49.66 kB / 0.96 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.8084, allocations: 0 / 0.96 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.8084, allocations: 1 kB / 0.9601 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.8084, allocations: 0 / 0.9601 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.083e-05/0.8085, allocations: 148.9 kB / 0.9602 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.8085, allocations: 0 / 0.9602 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.838e-05/0.8085, allocations: 11.7 kB / 0.9602 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.8086, allocations: 4.906 kB / 0.9602 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-06/0.8086, allocations: 0 / 0.9602 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001709/0.8087, allocations: 0.5951 MB / 0.9608 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.8088, allocations: 3.938 kB / 0.9608 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.462e-05/0.8088, allocations: 62.97 kB / 0.9609 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.639e-05/0.8088, allocations: 78.39 kB / 0.9609 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.063e-05/0.8089, allocations: 0 / 0.9609 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.317e-05/0.8089, allocations: 5.5 kB / 0.9609 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.8e-05/0.8089, allocations: 7.922 kB / 0.9609 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-06/0.8089, allocations: 5.312 kB / 0.9609 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.784e-05/0.8089, allocations: 76.72 kB / 0.961 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8089, allocations: 1.344 kB / 0.961 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001947/0.8091, allocations: 10.47 kB / 0.961 GB, free: 2.656 MB / 0.7169 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.0001503/0.8093, allocations: 111 kB / 0.9611 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001455/0.8094, allocations: 25.95 kB / 0.9612 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.8095, allocations: 0 / 0.9612 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.816e-05/0.8095, allocations: 14.91 kB / 0.9612 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001503/0.8097, allocations: 5.281 kB / 0.9612 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003202/0.81, allocations: 153.8 kB / 0.9613 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001018/0.8101, allocations: 0.6757 MB / 0.962 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.318e-05/0.8102, allocations: 9.062 kB / 0.962 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.8102, allocations: 0 / 0.962 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of Templates: time 0.002137/0.8123, allocations: 0.6848 MB / 0.9627 GB, free: 1.324 MB / 0.7169 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