Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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.00189/0.00189, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002512/0.002512, allocations: 213.8 kB / 22.25 MB, free: 5.129 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.563/1.563, allocations: 230.6 MB / 256 MB, free: 7.98 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 3.43/3.43, allocations: 0.49 GB / 0.7951 GB, free: 33.29 MB / 0.6231 GB " [Timeout remaining time 176] 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_dp,fileNamePrefix="Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",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.002101/0.002101, allocations: 71.02 kB / 1.154 GB, free: 25.67 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3791/0.3812, allocations: 176.1 MB / 1.326 GB, free: 1.902 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.003116/0.3844, allocations: 1.276 MB / 1.327 GB, free: 0.6211 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001239/0.3856, allocations: 0.5842 MB / 1.328 GB, free: 36 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.529e-05/0.3856, allocations: 0 / 1.328 GB, free: 36 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.425e-05/0.3857, allocations: 0 / 1.328 GB, free: 36 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.512e-05/0.3857, allocations: 3.984 kB / 1.328 GB, free: 32 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007773/0.3865, allocations: 142.5 kB / 1.328 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 6.919e-05/0.3866, allocations: 15.86 kB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 5.812e-05/0.3866, allocations: 4 kB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 2.239e-05/0.3866, allocations: 3.938 kB / 1.328 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.434e-05/0.3867, allocations: 4 kB / 1.328 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.238e-05/0.3867, allocations: 0 / 1.328 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006436/0.3874, allocations: 347.3 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.352e-05/0.3874, allocations: 0 / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.16e-05/0.3874, allocations: 7.938 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003261/0.3877, allocations: 143.8 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3877, allocations: 4 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3877, allocations: 0 / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.271e-06/0.3877, allocations: 0 / 1.328 GB, free: 15.38 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.0005143/0.3883, allocations: 278 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/0.3883, allocations: 8.031 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.36e-05/0.3884, allocations: 30.75 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.356e-05/0.3884, allocations: 12.83 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.3885, allocations: 106.5 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.775e-05/0.3886, allocations: 4.375 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.234e-05/0.3886, allocations: 4.375 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001388/0.3887, allocations: 34.2 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.3887, allocations: 3.938 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/0.3887, allocations: 4 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.3887, allocations: 0 / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.404e-05/0.3888, allocations: 0 / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002187/0.389, allocations: 124.8 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 7.071e-05/0.3891, allocations: 22.61 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.949e-05/0.3891, allocations: 12.92 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.3891, allocations: 0 / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.3892, allocations: 34.5 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.3892, allocations: 0 / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.000179/0.3893, allocations: 45.62 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.3894, allocations: 51.41 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.3895, allocations: 102 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.3895, allocations: 25.7 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.71e-05/0.3896, allocations: 80.14 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.542e-05/0.3896, allocations: 7.938 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/0.3896, allocations: 17.72 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3898, allocations: 310.8 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.184e-05/0.3898, allocations: 4 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.057e-05/0.3898, allocations: 4.125 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.959e-05/0.3899, allocations: 20.86 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3899, allocations: 3.938 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.821e-05/0.39, allocations: 37.69 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.39, allocations: 11.94 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.39, allocations: 0 / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.39, allocations: 0 / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.3902, allocations: 11.98 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004483/0.3906, allocations: 0.586 MB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.829e-05/0.3906, allocations: 7.953 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.3907, allocations: 3.984 kB / 1.33 GB, free: 13.17 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 9.846e-05/0.3908, allocations: 114.7 kB / 1.33 GB, free: 13.05 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.468e-06/0.3908, allocations: 3.938 kB / 1.33 GB, free: 13.05 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001272/0.3909, allocations: 45.09 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.3909, allocations: 4.031 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.3909, allocations: 3.984 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.3909, allocations: 0 / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/0.391, allocations: 128.7 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.391, allocations: 0 / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.788e-05/0.3911, allocations: 8 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.3911, allocations: 3.938 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.695e-06/0.3911, allocations: 4 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003925/0.3915, allocations: 0.586 MB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.3915, allocations: 3.938 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001004/0.3916, allocations: 57.17 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.014e-05/0.3916, allocations: 4 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.3916, allocations: 3.984 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.45e-05/0.3917, allocations: 3.938 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.91e-05/0.3917, allocations: 8.062 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.3917, allocations: 0 / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.663e-05/0.3917, allocations: 79.28 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3917, allocations: 0 / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000219/0.3919, allocations: 15.94 kB / 1.331 GB, free: 12 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.0005124/0.3925, allocations: 0.6182 MB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001794/0.3926, allocations: 23.92 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3926, allocations: 0 / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.833e-05/0.3927, allocations: 15.98 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001574/0.3929, allocations: 9.812 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005967/0.3935, allocations: 135.9 kB / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003552/0.3938, allocations: 0.6767 MB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.852e-05/0.3938, allocations: 0 / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.454e-05/0.3939, allocations: 11.44 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of SimCode: time 8.32e-07/0.3939, allocations: 0 / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0308/0.4247, allocations: 1.378 MB / 1.334 GB, free: 9.18 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.52, allocations: 6.906 kB / 1.334 GB, free: 9.176 MB / 1.029 GB " [Timeout remaining time 286] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.fmu > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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.687453204067424]