Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 217.9 kB / 23.04 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.49/1.49, allocations: 230.6 MB / 256.8 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.852/2.852, allocations: 476.7 MB / 0.7715 GB, free: 4.285 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 61.95 kB / 1.118 GB, free: 39.83 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.387/0.3892, allocations: 170 MB / 1.284 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002505/0.3917, allocations: 1.285 MB / 1.285 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001024/0.3927, allocations: 0.5896 MB / 1.286 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.365e-05/0.3927, allocations: 0 / 1.286 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.102e-05/0.3927, allocations: 3.984 kB / 1.286 GB, free: 9.719 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.983e-05/0.3928, allocations: 3.938 kB / 1.286 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005213/0.3933, allocations: 146.2 kB / 1.286 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 5.571e-05/0.3933, allocations: 8 kB / 1.286 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.214e-05/0.3934, allocations: 0 / 1.286 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.019e-05/0.3934, allocations: 15.88 kB / 1.286 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.462e-05/0.3935, allocations: 4 kB / 1.286 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.032e-05/0.3935, allocations: 0 / 1.286 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005296/0.394, allocations: 343.4 kB / 1.286 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.375e-06/0.394, allocations: 0 / 1.286 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.648e-05/0.394, allocations: 7.938 kB / 1.286 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002514/0.3943, allocations: 135.2 kB / 1.287 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3943, allocations: 0 / 1.287 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3943, allocations: 0 / 1.287 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.3943, allocations: 0 / 1.287 GB, free: 9.074 MB / 0.9825 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.0004314/0.3947, allocations: 286 kB / 1.287 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.3948, allocations: 8.031 kB / 1.287 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.891e-05/0.3948, allocations: 192 / 1.287 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.972e-05/0.3948, allocations: 42.61 kB / 1.287 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.732e-05/0.3949, allocations: 8.891 kB / 1.287 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/0.395, allocations: 106.5 kB / 1.287 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.988e-06/0.395, allocations: 384 / 1.287 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-06/0.395, allocations: 384 / 1.287 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.3951, allocations: 38.02 kB / 1.287 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.3951, allocations: 0 / 1.287 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.3951, allocations: 0 / 1.287 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.3951, allocations: 0 / 1.287 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.628e-05/0.3951, allocations: 7.984 kB / 1.287 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001851/0.3953, allocations: 124.8 kB / 1.287 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.392e-05/0.3954, allocations: 26.55 kB / 1.287 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.38e-05/0.3954, allocations: 12.91 kB / 1.287 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.3954, allocations: 4 kB / 1.287 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.06e-05/0.3955, allocations: 34.5 kB / 1.287 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.253e-06/0.3955, allocations: 0 / 1.287 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001655/0.3956, allocations: 41.7 kB / 1.287 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.3957, allocations: 55.34 kB / 1.287 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.753e-05/0.3958, allocations: 93.84 kB / 1.287 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.3958, allocations: 29.95 kB / 1.287 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.209e-05/0.3958, allocations: 84.14 kB / 1.288 GB, free: 7.918 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.189e-05/0.3959, allocations: 11.89 kB / 1.288 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.338e-05/0.3959, allocations: 13.72 kB / 1.288 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001647/0.3961, allocations: 314.8 kB / 1.288 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.324e-05/0.3961, allocations: 0 / 1.288 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.18e-05/0.3961, allocations: 8 kB / 1.288 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.84e-05/0.3961, allocations: 12.84 kB / 1.288 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.3961, allocations: 8.062 kB / 1.288 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.576e-05/0.3962, allocations: 41.64 kB / 1.288 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.3962, allocations: 14.44 kB / 1.288 GB, free: 7.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3962, allocations: 0 / 1.288 GB, free: 7.48 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.3962, allocations: 3.984 kB / 1.288 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.3964, allocations: 15.92 kB / 1.288 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004489/0.3969, allocations: 0.5782 MB / 1.289 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.823e-05/0.3969, allocations: 4.125 kB / 1.289 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.3969, allocations: 0 / 1.289 GB, free: 6.855 MB / 0.9825 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 0.0001198/0.397, allocations: 113.8 kB / 1.289 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.012e-05/0.397, allocations: 3.953 kB / 1.289 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001278/0.3971, allocations: 52.92 kB / 1.289 GB, free: 6.676 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.3971, allocations: 0 / 1.289 GB, free: 6.676 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3971, allocations: 0 / 1.289 GB, free: 6.676 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3972, allocations: 4.031 kB / 1.289 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001447/0.3973, allocations: 132.6 kB / 1.289 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3973, allocations: 0 / 1.289 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.59e-05/0.3974, allocations: 11.98 kB / 1.289 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3974, allocations: 0 / 1.289 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.3974, allocations: 0 / 1.289 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003695/0.3978, allocations: 0.586 MB / 1.289 GB, free: 5.879 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3978, allocations: 0 / 1.289 GB, free: 5.879 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.344e-05/0.3978, allocations: 69.16 kB / 1.289 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.612e-06/0.3978, allocations: 0 / 1.289 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.3979, allocations: 4 kB / 1.29 GB, free: 5.789 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.769e-05/0.3979, allocations: 7.938 kB / 1.29 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.256e-05/0.3979, allocations: 0 / 1.29 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.3979, allocations: 0 / 1.29 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.717e-05/0.3979, allocations: 83.31 kB / 1.29 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of sort global known variables: time 5e-08/0.3979, allocations: 0 / 1.29 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002045/0.3981, allocations: 7.938 kB / 1.29 GB, free: 5.691 MB / 0.9825 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.0005049/0.3986, allocations: 0.6085 MB / 1.29 GB, free: 5.051 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001891/0.3988, allocations: 28.11 kB / 1.29 GB, free: 5.023 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3988, allocations: 0 / 1.29 GB, free: 5.023 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.532e-05/0.3989, allocations: 11.98 kB / 1.29 GB, free: 5.012 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001617/0.3991, allocations: 3.938 kB / 1.29 GB, free: 5.008 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006102/0.3997, allocations: 147.2 kB / 1.29 GB, free: 4.824 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.4, allocations: 0.6727 MB / 1.291 GB, free: 4.125 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.561e-05/0.4, allocations: 4.125 kB / 1.291 GB, free: 4.121 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.902e-05/0.4001, allocations: 15.42 kB / 1.291 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of SimCode: time 3.3e-07/0.4001, allocations: 0 / 1.291 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02195/0.422, allocations: 1.431 MB / 1.292 GB, free: 2.855 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/13.23, allocations: 0.5 kB / 1.292 GB, free: 2.855 MB / 0.9825 GB " [Timeout remaining time 286] (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 20.52177896699868]