Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.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.00116/0.00116, 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.001245/0.001245, allocations: 215.5 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.351/1.351, allocations: 230.6 MB / 256.8 MB, free: 8.062 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.074/3.074, allocations: 0.5003 GB / 0.8061 GB, free: 26.81 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.InverseFlowFunctions,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions",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.002084/0.002084, allocations: 63.97 kB / 1.171 GB, free: 20.03 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.3868, allocations: 179 MB / 1.345 GB, free: 0.6406 MB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions): time 0.00309/0.3899, allocations: 1.33 MB / 1.347 GB, free: 15.3 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00113/0.391, allocations: 0.5916 MB / 1.347 GB, free: 14.7 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.647e-05/0.3911, allocations: 0 / 1.347 GB, free: 14.7 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.053e-05/0.3911, allocations: 0 / 1.347 GB, free: 14.7 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.52e-05/0.3911, allocations: 7.922 kB / 1.347 GB, free: 14.7 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005835/0.3917, allocations: 144.8 kB / 1.347 GB, free: 14.55 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 5.903e-05/0.3918, allocations: 19.94 kB / 1.347 GB, free: 14.54 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.749e-05/0.3918, allocations: 7.922 kB / 1.347 GB, free: 14.53 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 4.354e-05/0.3919, allocations: 8 kB / 1.347 GB, free: 14.52 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.614e-05/0.3919, allocations: 7.938 kB / 1.347 GB, free: 14.51 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.408e-05/0.3919, allocations: 4 kB / 1.347 GB, free: 14.51 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005484/0.3925, allocations: 347.3 kB / 1.348 GB, free: 14.17 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.77e-05/0.3925, allocations: 0 / 1.348 GB, free: 14.17 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 2.617e-05/0.3925, allocations: 7.938 kB / 1.348 GB, free: 14.16 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002669/0.3928, allocations: 151.8 kB / 1.348 GB, free: 14.01 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3928, allocations: 0 / 1.348 GB, free: 14.01 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3928, allocations: 4 kB / 1.348 GB, free: 14.01 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.335e-06/0.3928, allocations: 4 kB / 1.348 GB, free: 14 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005028/0.3933, allocations: 285.9 kB / 1.348 GB, free: 13.69 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.3934, allocations: 12.03 kB / 1.348 GB, free: 13.68 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.706e-05/0.3934, allocations: 8.125 kB / 1.348 GB, free: 13.67 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.291e-05/0.3934, allocations: 34.73 kB / 1.348 GB, free: 13.63 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.658e-05/0.3934, allocations: 4.938 kB / 1.348 GB, free: 13.62 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.3935, allocations: 106.5 kB / 1.348 GB, free: 13.5 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.764e-06/0.3936, allocations: 4.375 kB / 1.348 GB, free: 13.49 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.3936, allocations: 4.375 kB / 1.348 GB, free: 13.49 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001291/0.3937, allocations: 53.94 kB / 1.348 GB, free: 13.43 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.3937, allocations: 0 / 1.348 GB, free: 13.43 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.306e-06/0.3937, allocations: 0 / 1.348 GB, free: 13.43 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.3937, allocations: 0 / 1.348 GB, free: 13.43 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.185e-05/0.3938, allocations: 15.98 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003611/0.3941, allocations: 224 kB / 1.349 GB, free: 13.15 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002131/0.3943, allocations: 46.62 kB / 1.349 GB, free: 13.1 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.086e-05/0.3944, allocations: 16.86 kB / 1.349 GB, free: 13.08 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.3944, allocations: 3.938 kB / 1.349 GB, free: 13.07 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.967e-05/0.3944, allocations: 34.56 kB / 1.349 GB, free: 13.03 MB / 1.045 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.3944, allocations: 0 / 1.349 GB, free: 13.03 MB / 1.045 GB Notification: Performance of matching and sorting (n=4): time 0.0001853/0.3946, allocations: 53.69 kB / 1.349 GB, free: 12.97 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.3947, allocations: 55.41 kB / 1.349 GB, free: 12.91 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.97e-05/0.3948, allocations: 106 kB / 1.349 GB, free: 12.79 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.3948, allocations: 25.7 kB / 1.349 GB, free: 12.76 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.046e-05/0.3948, allocations: 80.14 kB / 1.349 GB, free: 12.68 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.3949, allocations: 15.91 kB / 1.349 GB, free: 12.66 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-05/0.3949, allocations: 17.7 kB / 1.349 GB, free: 12.64 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.3951, allocations: 314.8 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.269e-05/0.3951, allocations: 7.938 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.72e-05/0.3951, allocations: 29.7 kB / 1.349 GB, free: 12.28 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.302e-05/0.3952, allocations: 29.66 kB / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3952, allocations: 3.938 kB / 1.349 GB, free: 12.24 MB / 1.045 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001021/0.3953, allocations: 61.7 kB / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.3953, allocations: 6.188 kB / 1.349 GB, free: 12.17 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3953, allocations: 4 kB / 1.349 GB, free: 12.17 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.3953, allocations: 4 kB / 1.349 GB, free: 12.16 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.675e-05/0.3954, allocations: 8.031 kB / 1.349 GB, free: 12.16 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3954, allocations: 4 kB / 1.349 GB, free: 12.15 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.99e-05/0.3954, allocations: 7.938 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-06/0.3954, allocations: 3.984 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.152e-05/0.3955, allocations: 113.8 kB / 1.35 GB, free: 12.02 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.989e-05/0.3955, allocations: 0 / 1.35 GB, free: 12.02 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001525/0.3957, allocations: 61.31 kB / 1.35 GB, free: 11.95 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.3957, allocations: 0 / 1.35 GB, free: 11.95 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3957, allocations: 4 kB / 1.35 GB, free: 11.95 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3957, allocations: 3.938 kB / 1.35 GB, free: 11.94 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/0.3959, allocations: 136.6 kB / 1.35 GB, free: 11.77 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3959, allocations: 0 / 1.35 GB, free: 11.77 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.852e-05/0.3959, allocations: 11.98 kB / 1.35 GB, free: 11.75 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.3959, allocations: 4 kB / 1.35 GB, free: 11.75 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.542e-06/0.3959, allocations: 0 / 1.35 GB, free: 11.75 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3959, allocations: 0 / 1.35 GB, free: 11.75 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3959, allocations: 0 / 1.35 GB, free: 11.75 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001486/0.3961, allocations: 155.4 kB / 1.35 GB, free: 11.58 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 6.783e-06/0.3961, allocations: 0 / 1.35 GB, free: 11.58 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.3961, allocations: 4 kB / 1.35 GB, free: 11.58 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.968e-05/0.3961, allocations: 0 / 1.35 GB, free: 11.58 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.918e-05/0.3962, allocations: 3.984 kB / 1.35 GB, free: 11.57 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-06/0.3962, allocations: 0 / 1.35 GB, free: 11.57 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.36e-05/0.3962, allocations: 79.28 kB / 1.35 GB, free: 11.5 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3962, allocations: 0 / 1.35 GB, free: 11.5 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002503/0.3965, allocations: 19.94 kB / 1.35 GB, free: 11.48 MB / 1.045 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007164/0.3972, allocations: 0.7127 MB / 1.351 GB, free: 10.73 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001063/0.3973, allocations: 20.03 kB / 1.351 GB, free: 10.71 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.3973, allocations: 0 / 1.351 GB, free: 10.71 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 2.515e-05/0.3973, allocations: 19.92 kB / 1.351 GB, free: 10.7 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002166/0.3975, allocations: 0 / 1.351 GB, free: 10.7 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005085/0.398, allocations: 164.5 kB / 1.351 GB, free: 10.49 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004176/0.3984, allocations: 0.6805 MB / 1.352 GB, free: 9.785 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.661e-05/0.3985, allocations: 4 kB / 1.352 GB, free: 9.781 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.29e-05/0.3985, allocations: 11.42 kB / 1.352 GB, free: 9.773 MB / 1.045 GB Notification: Performance of SimCode: time 3.2e-07/0.3985, allocations: 4 kB / 1.352 GB, free: 9.77 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02328/0.4218, allocations: 1.538 MB / 1.353 GB, free: 8.383 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.5, allocations: 16.59 kB / 1.353 GB, free: 8.371 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.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.110370067995973]