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.005747/0.005747, allocations: 98.52 kB / 15.73 MB, free: 5.602 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.001302/0.001302, allocations: 194.2 kB / 16.67 MB, free: 5.523 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.633/2.633, allocations: 437 MB / 0.7105 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 71.88 kB / 1.019 GB, free: 9.398 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9161/0.9173, allocations: 151.6 MB / 1.167 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002242/0.9196, allocations: 1.269 MB / 1.168 GB, free: 2.578 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.9207, allocations: 0.5901 MB / 1.168 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.743e-05/0.9208, allocations: 0 / 1.168 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.306e-05/0.9208, allocations: 0 / 1.168 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.593e-05/0.9209, allocations: 7.938 kB / 1.168 GB, free: 1.98 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005315/0.9214, allocations: 139.4 kB / 1.169 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.938e-05/0.9215, allocations: 4 kB / 1.169 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.574e-05/0.9215, allocations: 3.984 kB / 1.169 GB, free: 1.836 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.281e-05/0.9215, allocations: 7.984 kB / 1.169 GB, free: 1.828 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.351e-05/0.9216, allocations: 3.938 kB / 1.169 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.308e-05/0.9216, allocations: 3.938 kB / 1.169 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004795/0.9221, allocations: 339.4 kB / 1.169 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.045e-05/0.9221, allocations: 0 / 1.169 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.444e-05/0.9221, allocations: 11.98 kB / 1.169 GB, free: 1.477 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.00026/0.9224, allocations: 140.1 kB / 1.169 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.9224, allocations: 0 / 1.169 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.023e-06/0.9224, allocations: 8 kB / 1.169 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.9224, allocations: 0 / 1.169 GB, free: 1.336 MB / 0.8887 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.0004152/0.9229, allocations: 355.1 kB / 1.169 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.9229, allocations: 8.922 kB / 1.169 GB, free: 0.9297 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.843e-05/0.9229, allocations: 0.9375 kB / 1.169 GB, free: 0.9297 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.9231, allocations: 164.4 kB / 1.17 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.216e-06/0.9231, allocations: 4.312 kB / 1.17 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.018e-05/0.9231, allocations: 384 / 1.17 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.301e-05/0.9232, allocations: 38.27 kB / 1.17 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.9232, allocations: 192 / 1.17 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.9232, allocations: 3.938 kB / 1.17 GB, free: 0.6797 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.9232, allocations: 7.922 kB / 1.17 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.577e-05/0.9232, allocations: 4 kB / 1.17 GB, free: 0.668 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000149/0.9234, allocations: 149.6 kB / 1.17 GB, free: 484 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 5.046e-05/0.9235, allocations: 30.53 kB / 1.17 GB, free: 444 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.828e-05/0.9235, allocations: 12.8 kB / 1.17 GB, free: 428 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.9235, allocations: 12.05 kB / 1.17 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/0.9235, allocations: 30.56 kB / 1.17 GB, free: 376 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.9235, allocations: 0 / 1.17 GB, free: 376 kB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0001339/0.9237, allocations: 37.64 kB / 1.17 GB, free: 332 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/0.9237, allocations: 51.41 kB / 1.17 GB, free: 268 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.726e-05/0.9238, allocations: 101.8 kB / 1.17 GB, free: 156 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.9238, allocations: 29.95 kB / 1.17 GB, free: 120 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.715e-05/0.9239, allocations: 80.14 kB / 1.17 GB, free: 36 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.939e-05/0.9239, allocations: 7.953 kB / 1.17 GB, free: 28 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.169e-05/0.9239, allocations: 17.66 kB / 1.17 GB, free: 4 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.9241, allocations: 310.8 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.317e-05/0.9241, allocations: 4 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.117e-06/0.9241, allocations: 3.984 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.123e-05/0.9241, allocations: 20.92 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.9241, allocations: 0 / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.348e-05/0.9242, allocations: 37.66 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.9242, allocations: 4 kB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.9242, allocations: 3.938 kB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.9242, allocations: 0 / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.9244, allocations: 11.98 kB / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003324/0.9247, allocations: 0.59 MB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.886e-05/0.9248, allocations: 4 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-06/0.9248, allocations: 0 / 1.171 GB, free: 14.98 MB / 0.9044 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.022e-05/0.9248, allocations: 109.8 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.157e-06/0.9249, allocations: 7.984 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.925, allocations: 44.77 kB / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.925, allocations: 0 / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.925, allocations: 0 / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.925, allocations: 4.094 kB / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.545e-05/0.9251, allocations: 157.6 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.9251, allocations: 0 / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.842e-05/0.9252, allocations: 15.98 kB / 1.171 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.9252, allocations: 0 / 1.171 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.9252, allocations: 0 / 1.171 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002636/0.9255, allocations: 0.5821 MB / 1.172 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.9255, allocations: 7.969 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.96e-05/0.9256, allocations: 73.09 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.999e-05/0.9256, allocations: 81.05 kB / 1.172 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.006e-05/0.9256, allocations: 0 / 1.172 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.313e-05/0.9256, allocations: 0 / 1.172 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.657e-05/0.9257, allocations: 3.938 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-06/0.9257, allocations: 4 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.322e-05/0.9257, allocations: 79.31 kB / 1.172 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.9257, allocations: 0 / 1.172 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0001871/0.9259, allocations: 15.92 kB / 1.172 GB, free: 13.68 MB / 0.9044 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.0001749/0.9261, allocations: 115.2 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001531/0.9263, allocations: 15.98 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.9263, allocations: 0 / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.429e-05/0.9264, allocations: 20.08 kB / 1.172 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001413/0.9265, allocations: 4.625 kB / 1.172 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003024/0.9268, allocations: 94.03 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.9271, allocations: 0.6768 MB / 1.173 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 1.454e-05/0.9271, allocations: 0 / 1.173 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.381e-05/0.9271, allocations: 7.438 kB / 1.173 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/0.9271, allocations: 0 / 1.173 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of Templates: time 0.002494/0.9296, allocations: 462.7 kB / 1.174 GB, free: 12.27 MB / 0.9044 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 -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/jenkins/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