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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001705/0.001705, allocations: 103.2 kB / 16.27 MB, free: 5.961 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.001829/0.001829, allocations: 188.2 kB / 17.19 MB, free: 5.594 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.429/1.429, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.551/2.551, allocations: 437.1 MB / 0.711 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 73.2 kB / 0.8699 GB, free: 2.215 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3149, allocations: 151.6 MB / 1.018 GB, free: 10.66 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002595/0.3176, allocations: 1.253 MB / 1.019 GB, free: 9.387 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001122/0.3187, allocations: 0.5931 MB / 1.02 GB, free: 8.793 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.419e-05/0.3187, allocations: 0 / 1.02 GB, free: 8.793 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.212e-05/0.3188, allocations: 3.938 kB / 1.02 GB, free: 8.789 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.675e-05/0.3188, allocations: 0 / 1.02 GB, free: 8.789 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005124/0.3193, allocations: 141.5 kB / 1.02 GB, free: 8.652 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 4.626e-05/0.3194, allocations: 7.938 kB / 1.02 GB, free: 8.645 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.313e-05/0.3195, allocations: 4 kB / 1.02 GB, free: 8.641 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.036e-05/0.3195, allocations: 7.969 kB / 1.02 GB, free: 8.633 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.27e-05/0.3195, allocations: 7.938 kB / 1.02 GB, free: 8.625 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.013e-05/0.3195, allocations: 0 / 1.02 GB, free: 8.625 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005387/0.3201, allocations: 343.3 kB / 1.02 GB, free: 8.289 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.158e-05/0.3201, allocations: 3.984 kB / 1.02 GB, free: 8.285 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.148e-05/0.3201, allocations: 4 kB / 1.02 GB, free: 8.281 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002584/0.3204, allocations: 136 kB / 1.02 GB, free: 8.148 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3204, allocations: 4 kB / 1.02 GB, free: 8.145 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3204, allocations: 0 / 1.02 GB, free: 8.145 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.439e-06/0.3204, allocations: 0 / 1.02 GB, free: 8.145 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.0004461/0.3209, allocations: 361.2 kB / 1.021 GB, free: 7.742 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.3209, allocations: 16.86 kB / 1.021 GB, free: 7.727 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.13e-05/0.321, allocations: 4.922 kB / 1.021 GB, free: 7.723 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.3211, allocations: 160.4 kB / 1.021 GB, free: 7.527 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.3211, allocations: 384 / 1.021 GB, free: 7.527 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.03e-05/0.3211, allocations: 4.375 kB / 1.021 GB, free: 7.523 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.84e-05/0.3212, allocations: 34.27 kB / 1.021 GB, free: 7.484 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.3212, allocations: 192 / 1.021 GB, free: 7.484 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.3213, allocations: 7.938 kB / 1.021 GB, free: 7.477 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.3213, allocations: 0 / 1.021 GB, free: 7.477 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.52e-05/0.3213, allocations: 7.922 kB / 1.021 GB, free: 7.469 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001717/0.3215, allocations: 149.7 kB / 1.021 GB, free: 7.273 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 5.356e-05/0.3215, allocations: 22.55 kB / 1.021 GB, free: 7.242 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.343e-05/0.3216, allocations: 20.91 kB / 1.021 GB, free: 7.219 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.3216, allocations: 0 / 1.021 GB, free: 7.219 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.3216, allocations: 30.56 kB / 1.021 GB, free: 7.18 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 8.21e-07/0.3217, allocations: 4 kB / 1.021 GB, free: 7.176 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0001305/0.3218, allocations: 37.64 kB / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.3218, allocations: 59.34 kB / 1.021 GB, free: 7.062 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.212e-05/0.3219, allocations: 97.84 kB / 1.021 GB, free: 6.957 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.322, allocations: 29.95 kB / 1.021 GB, free: 6.922 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.563e-05/0.322, allocations: 80.14 kB / 1.021 GB, free: 6.84 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.322, allocations: 7.844 kB / 1.022 GB, free: 6.832 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.262e-05/0.3221, allocations: 17.72 kB / 1.022 GB, free: 6.809 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3222, allocations: 310.8 kB / 1.022 GB, free: 6.496 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.4e-05/0.3222, allocations: 4 kB / 1.022 GB, free: 6.492 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.925e-06/0.3223, allocations: 0 / 1.022 GB, free: 6.492 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.346e-05/0.3223, allocations: 20.91 kB / 1.022 GB, free: 6.469 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.3223, allocations: 0 / 1.022 GB, free: 6.469 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.969e-05/0.3224, allocations: 41.64 kB / 1.022 GB, free: 6.422 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.3224, allocations: 4 kB / 1.022 GB, free: 6.418 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.3224, allocations: 3.938 kB / 1.022 GB, free: 6.414 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.3224, allocations: 0 / 1.022 GB, free: 6.414 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.3226, allocations: 11.98 kB / 1.022 GB, free: 6.402 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004284/0.323, allocations: 0.5899 MB / 1.022 GB, free: 5.789 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.693e-05/0.323, allocations: 0 / 1.022 GB, free: 5.789 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-06/0.3231, allocations: 0 / 1.022 GB, free: 5.789 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 8.394e-05/0.3231, allocations: 113.8 kB / 1.023 GB, free: 5.668 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.855e-06/0.3232, allocations: 0 / 1.023 GB, free: 5.668 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001083/0.3233, allocations: 48.75 kB / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3233, allocations: 0 / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3233, allocations: 0 / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.3233, allocations: 8.094 kB / 1.023 GB, free: 5.605 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001282/0.3234, allocations: 153.6 kB / 1.023 GB, free: 5.406 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3234, allocations: 0 / 1.023 GB, free: 5.406 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.055e-05/0.3235, allocations: 11.98 kB / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3235, allocations: 3.938 kB / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.3235, allocations: 8 kB / 1.023 GB, free: 5.383 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003648/0.3239, allocations: 0.5782 MB / 1.023 GB, free: 4.781 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.3239, allocations: 4.031 kB / 1.023 GB, free: 4.777 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.979e-05/0.324, allocations: 76.98 kB / 1.023 GB, free: 4.684 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.686e-05/0.3241, allocations: 77.11 kB / 1.024 GB, free: 4.59 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.3241, allocations: 4 kB / 1.024 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.389e-05/0.3241, allocations: 0 / 1.024 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.252e-05/0.3241, allocations: 3.938 kB / 1.024 GB, free: 4.582 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-06/0.3241, allocations: 0 / 1.024 GB, free: 4.582 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.36e-05/0.3242, allocations: 83.31 kB / 1.024 GB, free: 4.5 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3242, allocations: 0 / 1.024 GB, free: 4.5 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0001947/0.3244, allocations: 8 kB / 1.024 GB, free: 4.492 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.0001793/0.3246, allocations: 123.2 kB / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001619/0.3247, allocations: 19.92 kB / 1.024 GB, free: 4.344 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3247, allocations: 0 / 1.024 GB, free: 4.344 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.609e-05/0.3248, allocations: 12.14 kB / 1.024 GB, free: 4.332 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.325, allocations: 16.81 kB / 1.024 GB, free: 4.316 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003222/0.3253, allocations: 119.9 kB / 1.024 GB, free: 4.168 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.3256, allocations: 0.6729 MB / 1.025 GB, free: 3.469 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.466e-05/0.3257, allocations: 7.438 kB / 1.025 GB, free: 3.461 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.3257, allocations: 0 / 1.025 GB, free: 3.461 MB / 0.795 GB Notification: Performance of Templates: time 0.002394/0.3281, allocations: 0.6992 MB / 1.025 GB, free: 2.766 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=400 -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