Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_dp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007243/0.007243, allocations: 100.6 kB / 15.73 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.001674/0.001674, allocations: 189.6 kB / 16.67 MB, free: 5.934 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.583/2.583, allocations: 469.8 MB / 0.7425 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 63.89 kB / 1.065 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9341/0.9361, allocations: 159.1 MB / 1.221 GB, free: 2.121 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.002403/0.9385, allocations: 1.252 MB / 1.222 GB, free: 0.8633 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001032/0.9396, allocations: 0.5916 MB / 1.222 GB, free: 276 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.506e-05/0.9396, allocations: 0 / 1.222 GB, free: 276 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.736e-05/0.9396, allocations: 0 / 1.222 GB, free: 276 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.25e-05/0.9397, allocations: 7.938 kB / 1.222 GB, free: 268 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005143/0.9402, allocations: 140.4 kB / 1.223 GB, free: 128 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 5.149e-05/0.9402, allocations: 8 kB / 1.223 GB, free: 120 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.198e-05/0.9403, allocations: 3.984 kB / 1.223 GB, free: 116 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.098e-05/0.9403, allocations: 4 kB / 1.223 GB, free: 112 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.666e-05/0.9404, allocations: 7.922 kB / 1.223 GB, free: 104 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.9404, allocations: 3.938 kB / 1.223 GB, free: 100 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005011/0.9409, allocations: 343.3 kB / 1.223 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 9.007e-06/0.9409, allocations: 0 / 1.223 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.255e-05/0.9409, allocations: 7.984 kB / 1.223 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002398/0.9412, allocations: 144.1 kB / 1.223 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.9412, allocations: 0 / 1.223 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.823e-06/0.9412, allocations: 0 / 1.223 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.306e-06/0.9412, allocations: 0 / 1.223 GB, free: 15.62 MB / 0.9512 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.0004251/0.9416, allocations: 355.2 kB / 1.223 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.9416, allocations: 8.031 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.25e-05/0.9417, allocations: 4.922 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.9418, allocations: 160.4 kB / 1.224 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.9418, allocations: 8.312 kB / 1.224 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.9418, allocations: 4.375 kB / 1.224 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.629e-05/0.9419, allocations: 34.27 kB / 1.224 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.9419, allocations: 192 / 1.224 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.938e-06/0.9419, allocations: 3.938 kB / 1.224 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.9419, allocations: 0 / 1.224 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.958e-05/0.942, allocations: 7.984 kB / 1.224 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000168/0.9421, allocations: 149.6 kB / 1.224 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.849e-05/0.9422, allocations: 30.61 kB / 1.224 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.905e-05/0.9422, allocations: 8.844 kB / 1.224 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.9422, allocations: 4 kB / 1.224 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.9422, allocations: 30.56 kB / 1.224 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.9422, allocations: 4 kB / 1.224 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0001353/0.9424, allocations: 45.53 kB / 1.224 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/0.9424, allocations: 51.41 kB / 1.224 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.371e-05/0.9425, allocations: 106 kB / 1.224 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.9425, allocations: 25.7 kB / 1.224 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.511e-05/0.9425, allocations: 80.14 kB / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.9426, allocations: 0 / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.9426, allocations: 17.72 kB / 1.224 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.9427, allocations: 314.8 kB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.421e-05/0.9427, allocations: 4 kB / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.236e-06/0.9427, allocations: 128 / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.163e-05/0.9427, allocations: 20.91 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.9427, allocations: 0 / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.814e-05/0.9428, allocations: 41.66 kB / 1.224 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.9428, allocations: 4 kB / 1.224 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.9428, allocations: 7.922 kB / 1.225 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.9428, allocations: 0 / 1.225 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.943, allocations: 15.92 kB / 1.225 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004464/0.9434, allocations: 0.586 MB / 1.225 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.147e-05/0.9435, allocations: 4 kB / 1.225 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.9435, allocations: 4.031 kB / 1.225 GB, free: 13.26 MB / 0.9512 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.369e-05/0.9436, allocations: 110.3 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.464e-06/0.9436, allocations: 0 / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000129/0.9437, allocations: 48.75 kB / 1.225 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.9437, allocations: 4.125 kB / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.9437, allocations: 0 / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.9437, allocations: 4 kB / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001244/0.9438, allocations: 153.6 kB / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.9438, allocations: 0 / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.703e-05/0.9439, allocations: 11.98 kB / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.9439, allocations: 0 / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.9439, allocations: 8 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003631/0.9443, allocations: 0.586 MB / 1.226 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.9443, allocations: 3.938 kB / 1.226 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.63e-05/0.9444, allocations: 65.09 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.532e-05/0.9444, allocations: 77.11 kB / 1.226 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.243e-05/0.9444, allocations: 4 kB / 1.226 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.422e-05/0.9444, allocations: 3.938 kB / 1.226 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.957e-05/0.9445, allocations: 4.062 kB / 1.226 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.9445, allocations: 4 kB / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.285e-05/0.9445, allocations: 79.28 kB / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of sort global known variables: time 7.1e-08/0.9445, allocations: 0 / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001929/0.9447, allocations: 7.938 kB / 1.226 GB, free: 11.97 MB / 0.9512 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.0001764/0.9449, allocations: 119.1 kB / 1.226 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001662/0.945, allocations: 19.98 kB / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.945, allocations: 4.156 kB / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 7.879e-05/0.9451, allocations: 15.92 kB / 1.226 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001391/0.9453, allocations: 4 kB / 1.226 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003382/0.9456, allocations: 105.9 kB / 1.226 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.9458, allocations: 0.6768 MB / 1.227 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 1.605e-05/0.9459, allocations: 4.047 kB / 1.227 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.48e-05/0.9459, allocations: 11.44 kB / 1.227 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of SimCode: time 3.21e-07/0.9459, allocations: 0 / 1.227 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of Templates: time 0.002665/0.9485, allocations: 454.5 kB / 1.228 GB, free: 10.52 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.makefile (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & ./Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches