Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.00168/0.00168, allocations: 113.5 kB / 16.37 MB, free: 6.012 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.00183/0.00183, allocations: 189 kB / 17.3 MB, free: 5.613 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.313/1.313, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.435/2.435, allocations: 437.1 MB / 0.7112 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 64.77 kB / 0.8707 GB, free: 1.48 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2783, allocations: 151.6 MB / 1.019 GB, free: 9.887 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002209/0.2806, allocations: 1.255 MB / 1.02 GB, free: 8.617 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009006/0.2815, allocations: 0.5892 MB / 1.021 GB, free: 8.027 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.529e-05/0.2816, allocations: 0 / 1.021 GB, free: 8.027 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.432e-05/0.2816, allocations: 4 kB / 1.021 GB, free: 8.023 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.066e-05/0.2816, allocations: 3.938 kB / 1.021 GB, free: 8.02 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004783/0.2821, allocations: 143.5 kB / 1.021 GB, free: 7.883 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 4.565e-05/0.2822, allocations: 4 kB / 1.021 GB, free: 7.879 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.006e-05/0.2822, allocations: 3.984 kB / 1.021 GB, free: 7.875 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.869e-05/0.2822, allocations: 15.88 kB / 1.021 GB, free: 7.859 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.101e-05/0.2823, allocations: 0 / 1.021 GB, free: 7.859 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.326e-05/0.2823, allocations: 4 kB / 1.021 GB, free: 7.855 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000476/0.2828, allocations: 343.3 kB / 1.021 GB, free: 7.52 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.697e-06/0.2828, allocations: 0 / 1.021 GB, free: 7.52 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.443e-05/0.2828, allocations: 11.94 kB / 1.021 GB, free: 7.508 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002259/0.2831, allocations: 135.7 kB / 1.021 GB, free: 7.375 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2831, allocations: 4 kB / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.583e-06/0.2831, allocations: 0 / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.2831, allocations: 0 / 1.021 GB, free: 7.371 MB / 0.795 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.0003642/0.2835, allocations: 363.3 kB / 1.022 GB, free: 6.965 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.2835, allocations: 8.922 kB / 1.022 GB, free: 6.957 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.091e-05/0.2835, allocations: 8.922 kB / 1.022 GB, free: 6.949 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.2837, allocations: 164.4 kB / 1.022 GB, free: 6.75 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.2837, allocations: 384 / 1.022 GB, free: 6.75 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.2837, allocations: 384 / 1.022 GB, free: 6.75 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.286e-05/0.2838, allocations: 38.2 kB / 1.022 GB, free: 6.707 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.2838, allocations: 192 / 1.022 GB, free: 6.707 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.2838, allocations: 3.938 kB / 1.022 GB, free: 6.703 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.2838, allocations: 4 kB / 1.022 GB, free: 6.699 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.824e-05/0.2838, allocations: 7.984 kB / 1.022 GB, free: 6.691 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000139/0.284, allocations: 145.7 kB / 1.022 GB, free: 6.5 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 4.788e-05/0.284, allocations: 22.58 kB / 1.022 GB, free: 6.469 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.3e-05/0.2841, allocations: 16.77 kB / 1.022 GB, free: 6.449 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.2841, allocations: 8.062 kB / 1.022 GB, free: 6.441 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.2841, allocations: 34.56 kB / 1.022 GB, free: 6.398 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.2841, allocations: 0 / 1.022 GB, free: 6.398 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0001349/0.2843, allocations: 37.64 kB / 1.022 GB, free: 6.355 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.2843, allocations: 51.41 kB / 1.022 GB, free: 6.293 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.59e-05/0.2844, allocations: 101.8 kB / 1.022 GB, free: 6.184 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.086e-05/0.2844, allocations: 25.7 kB / 1.022 GB, free: 6.152 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.824e-05/0.2844, allocations: 80.14 kB / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.316e-05/0.2845, allocations: 8.156 kB / 1.022 GB, free: 6.062 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.571e-05/0.2845, allocations: 17.72 kB / 1.022 GB, free: 6.039 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.018e-05/0.2846, allocations: 310.8 kB / 1.023 GB, free: 5.727 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.267e-05/0.2846, allocations: 7.938 kB / 1.023 GB, free: 5.719 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.373e-06/0.2846, allocations: 0 / 1.023 GB, free: 5.719 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.013e-05/0.2847, allocations: 20.84 kB / 1.023 GB, free: 5.695 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2847, allocations: 0 / 1.023 GB, free: 5.695 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.693e-05/0.2847, allocations: 33.7 kB / 1.023 GB, free: 5.656 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.2847, allocations: 8.094 kB / 1.023 GB, free: 5.648 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2848, allocations: 3.938 kB / 1.023 GB, free: 5.645 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.2848, allocations: 7.938 kB / 1.023 GB, free: 5.637 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.2849, allocations: 7.984 kB / 1.023 GB, free: 5.629 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003151/0.2852, allocations: 0.5898 MB / 1.023 GB, free: 5.016 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.037e-05/0.2853, allocations: 7.938 kB / 1.023 GB, free: 5.008 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.2853, allocations: 0 / 1.023 GB, free: 5.008 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.229e-05/0.2854, allocations: 114.5 kB / 1.023 GB, free: 4.887 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.646e-06/0.2854, allocations: 4 kB / 1.023 GB, free: 4.883 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.2855, allocations: 44.81 kB / 1.023 GB, free: 4.832 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.2855, allocations: 0 / 1.023 GB, free: 4.832 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2855, allocations: 3.938 kB / 1.023 GB, free: 4.828 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-06/0.2855, allocations: 0 / 1.023 GB, free: 4.828 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.97e-05/0.2856, allocations: 157.6 kB / 1.024 GB, free: 4.625 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2856, allocations: 0 / 1.024 GB, free: 4.625 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.785e-05/0.2857, allocations: 16.02 kB / 1.024 GB, free: 4.609 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.2857, allocations: 0 / 1.024 GB, free: 4.609 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.2857, allocations: 0 / 1.024 GB, free: 4.609 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002565/0.286, allocations: 0.5782 MB / 1.024 GB, free: 4.008 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.237e-06/0.286, allocations: 7.938 kB / 1.024 GB, free: 4 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.471e-05/0.286, allocations: 77.09 kB / 1.024 GB, free: 3.906 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 2.733e-05/0.2861, allocations: 77.11 kB / 1.024 GB, free: 3.812 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.018e-05/0.2861, allocations: 0 / 1.024 GB, free: 3.812 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.379e-05/0.2861, allocations: 0 / 1.024 GB, free: 3.812 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.636e-05/0.2861, allocations: 3.938 kB / 1.024 GB, free: 3.809 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.2861, allocations: 4 kB / 1.024 GB, free: 3.805 MB / 0.795 GB Notification: Performance of sorting global known variables: time 2.767e-05/0.2862, allocations: 75.28 kB / 1.024 GB, free: 3.73 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2862, allocations: 0 / 1.024 GB, free: 3.73 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000195/0.2864, allocations: 12 kB / 1.024 GB, free: 3.719 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.0001695/0.2866, allocations: 119.3 kB / 1.025 GB, free: 3.594 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001527/0.2867, allocations: 15.98 kB / 1.025 GB, free: 3.578 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.2867, allocations: 0 / 1.025 GB, free: 3.578 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.165e-05/0.2868, allocations: 19.92 kB / 1.025 GB, free: 3.559 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000137/0.287, allocations: 0 / 1.025 GB, free: 3.559 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000305/0.2873, allocations: 114.2 kB / 1.025 GB, free: 3.422 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001887/0.2875, allocations: 0.669 MB / 1.025 GB, free: 2.727 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 1.577e-05/0.2875, allocations: 7.984 kB / 1.025 GB, free: 2.719 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.773e-05/0.2875, allocations: 7.438 kB / 1.025 GB, free: 2.711 MB / 0.795 GB Notification: Performance of SimCode: time 2.51e-07/0.2875, allocations: 0 / 1.025 GB, free: 2.711 MB / 0.795 GB Notification: Performance of Templates: time 0.002456/0.29, allocations: 465 kB / 1.026 GB, free: 2.289 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches