Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001251/0.001251, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001482/0.001482, allocations: 214.5 kB / 22.25 MB, free: 4.855 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.377/1.377, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.993/2.993, allocations: 0.4892 GB / 0.7943 GB, free: 35.59 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",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.001951/0.001951, allocations: 71.75 kB / 1.153 GB, free: 25.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3149/0.3169, allocations: 176.1 MB / 1.325 GB, free: 2.316 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002525/0.3194, allocations: 1.267 MB / 1.326 GB, free: 1.043 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0009421/0.3204, allocations: 0.5219 MB / 1.327 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.275e-05/0.3204, allocations: 0 / 1.327 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.276e-05/0.3204, allocations: 0 / 1.327 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 4.004e-05/0.3204, allocations: 3.984 kB / 1.327 GB, free: 0.5156 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000534/0.321, allocations: 135.4 kB / 1.327 GB, free: 392 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 5.266e-05/0.321, allocations: 23.91 kB / 1.327 GB, free: 368 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.047e-05/0.3211, allocations: 0 / 1.327 GB, free: 368 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.862e-05/0.3211, allocations: 7.938 kB / 1.327 GB, free: 360 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 3.564e-05/0.3211, allocations: 4 kB / 1.327 GB, free: 356 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 8.947e-06/0.3211, allocations: 0 / 1.327 GB, free: 356 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004406/0.3216, allocations: 267.5 kB / 1.327 GB, free: 88 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.538e-05/0.3216, allocations: 3.984 kB / 1.327 GB, free: 84 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.442e-05/0.3216, allocations: 7.938 kB / 1.327 GB, free: 76 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002695/0.3219, allocations: 127.9 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3219, allocations: 0 / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.492e-06/0.3219, allocations: 0 / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.027e-06/0.3219, allocations: 0 / 1.327 GB, free: 15.95 MB / 1.029 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.0003931/0.3223, allocations: 278 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3223, allocations: 16.03 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.569e-05/0.3224, allocations: 34.75 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.322e-05/0.3224, allocations: 4.891 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.3225, allocations: 110.5 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.3225, allocations: 384 / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.3225, allocations: 8.312 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.041e-05/0.3226, allocations: 34.2 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.3226, allocations: 3.938 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.3226, allocations: 0 / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.3226, allocations: 0 / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.617e-05/0.3227, allocations: 4 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001665/0.3228, allocations: 128.8 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.616e-05/0.3229, allocations: 18.61 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.252e-05/0.3229, allocations: 16.86 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.3229, allocations: 0 / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.323, allocations: 34.5 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 7.41e-07/0.323, allocations: 0 / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0001414/0.3231, allocations: 49.62 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.3231, allocations: 51.41 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.571e-05/0.3232, allocations: 97.98 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.3232, allocations: 25.7 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.334e-05/0.3233, allocations: 80.14 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2e-05/0.3233, allocations: 3.953 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.652e-05/0.3233, allocations: 21.7 kB / 1.328 GB, free: 14.77 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3235, allocations: 310.8 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.311e-05/0.3235, allocations: 4 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.869e-06/0.3235, allocations: 3.938 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.101e-05/0.3235, allocations: 12.86 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3235, allocations: 4 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.721e-05/0.3236, allocations: 41.88 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.3236, allocations: 7.938 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/0.3236, allocations: 0 / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.3236, allocations: 0 / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.3238, allocations: 8 kB / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004315/0.3242, allocations: 0.5899 MB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.891e-05/0.3242, allocations: 7.984 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-06/0.3242, allocations: 0 / 1.329 GB, free: 13.75 MB / 1.029 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.415e-05/0.3243, allocations: 114.5 kB / 1.329 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-06/0.3243, allocations: 4 kB / 1.329 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.3244, allocations: 45 kB / 1.329 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-06/0.3244, allocations: 0 / 1.329 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3244, allocations: 3.938 kB / 1.329 GB, free: 13.56 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.185e-06/0.3244, allocations: 0 / 1.329 GB, free: 13.56 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000104/0.3245, allocations: 124.7 kB / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3245, allocations: 3.938 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.583e-05/0.3246, allocations: 11.98 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3246, allocations: 0 / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.68e-06/0.3246, allocations: 4.031 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003853/0.325, allocations: 0.5821 MB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.325, allocations: 7.969 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.974e-05/0.3251, allocations: 65.06 kB / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.99e-06/0.3251, allocations: 0 / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.068e-05/0.3251, allocations: 4 kB / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.367e-05/0.3251, allocations: 0 / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.876e-05/0.3251, allocations: 7.922 kB / 1.33 GB, free: 12.67 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-06/0.3251, allocations: 3.938 kB / 1.33 GB, free: 12.67 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.956e-05/0.3252, allocations: 87.41 kB / 1.33 GB, free: 12.58 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3252, allocations: 0 / 1.33 GB, free: 12.58 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001915/0.3254, allocations: 11.94 kB / 1.33 GB, free: 12.57 MB / 1.029 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.0004693/0.3259, allocations: 0.6146 MB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001666/0.326, allocations: 27.92 kB / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.326, allocations: 0 / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.537e-05/0.3261, allocations: 16.17 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000134/0.3262, allocations: 11.98 kB / 1.331 GB, free: 11.87 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004392/0.3267, allocations: 133.1 kB / 1.331 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.78e-05/0.3267, allocations: 59.34 kB / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.525e-05/0.3267, allocations: 0 / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.36e-05/0.3268, allocations: 11.38 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.3268, allocations: 4 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02732/0.3541, allocations: 1.801 MB / 1.333 GB, free: 9.98 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.22, allocations: 6.781 kB / 1.333 GB, free: 9.977 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.42685791524127]