Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 193 kB / 16.67 MB, free: 6.539 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.587/2.587, allocations: 482.6 MB / 0.755 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 68.11 kB / 1.083 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2635, allocations: 162.3 MB / 1.242 GB, free: 9.836 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.001936/0.2655, allocations: 1.25 MB / 1.243 GB, free: 8.578 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0008725/0.2663, allocations: 0.5799 MB / 1.244 GB, free: 7.996 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.908e-05/0.2664, allocations: 0 / 1.244 GB, free: 7.996 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.534e-05/0.2664, allocations: 4 kB / 1.244 GB, free: 7.992 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.354e-05/0.2664, allocations: 3.984 kB / 1.244 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004186/0.2669, allocations: 139.4 kB / 1.244 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.801e-05/0.2669, allocations: 19.92 kB / 1.244 GB, free: 7.832 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.169e-05/0.267, allocations: 0 / 1.244 GB, free: 7.832 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.553e-05/0.267, allocations: 4 kB / 1.244 GB, free: 7.828 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.832e-05/0.267, allocations: 3.938 kB / 1.244 GB, free: 7.824 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 8.596e-06/0.267, allocations: 0 / 1.244 GB, free: 7.824 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004922/0.2675, allocations: 351.3 kB / 1.244 GB, free: 7.48 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 7.785e-06/0.2676, allocations: 3.938 kB / 1.244 GB, free: 7.477 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 1.416e-05/0.2676, allocations: 0 / 1.244 GB, free: 7.477 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.2678, allocations: 147.5 kB / 1.244 GB, free: 7.332 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.2678, allocations: 0 / 1.244 GB, free: 7.332 MB / 0.9981 GB Notification: Performance of FrontEnd: time 9.92e-07/0.2678, allocations: 0 / 1.244 GB, free: 7.332 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.2678, allocations: 4 kB / 1.244 GB, free: 7.328 MB / 0.9981 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.0003575/0.2682, allocations: 355.1 kB / 1.245 GB, free: 6.93 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/0.2682, allocations: 8.031 kB / 1.245 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.059e-05/0.2683, allocations: 30.75 kB / 1.245 GB, free: 6.883 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.91e-05/0.2683, allocations: 8.938 kB / 1.245 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.2684, allocations: 168.3 kB / 1.245 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.646e-06/0.2684, allocations: 384 / 1.245 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.09e-06/0.2684, allocations: 384 / 1.245 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.327e-05/0.2685, allocations: 38.25 kB / 1.245 GB, free: 6.629 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2685, allocations: 3.938 kB / 1.245 GB, free: 6.625 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.31e-06/0.2685, allocations: 3.938 kB / 1.245 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.2685, allocations: 3.984 kB / 1.245 GB, free: 6.617 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.228e-05/0.2686, allocations: 7.938 kB / 1.245 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001466/0.2687, allocations: 153.7 kB / 1.245 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.555e-05/0.2688, allocations: 22.56 kB / 1.245 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.548e-05/0.2688, allocations: 4.859 kB / 1.245 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.599e-05/0.2688, allocations: 4.062 kB / 1.245 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.2688, allocations: 30.56 kB / 1.245 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.2688, allocations: 0 / 1.245 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001163/0.269, allocations: 49.58 kB / 1.245 GB, free: 6.273 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/0.269, allocations: 55.39 kB / 1.245 GB, free: 6.207 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.944e-05/0.2691, allocations: 97.86 kB / 1.245 GB, free: 6.102 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/0.2691, allocations: 25.7 kB / 1.245 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.231e-05/0.2691, allocations: 80.14 kB / 1.245 GB, free: 5.988 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.2692, allocations: 7.953 kB / 1.245 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.451e-05/0.2692, allocations: 9.719 kB / 1.245 GB, free: 5.965 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.2693, allocations: 323.1 kB / 1.246 GB, free: 5.641 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.022e-05/0.2693, allocations: 4 kB / 1.246 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.083e-06/0.2694, allocations: 0 / 1.246 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.714e-05/0.2694, allocations: 20.8 kB / 1.246 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.2694, allocations: 0 / 1.246 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.492e-05/0.2695, allocations: 33.7 kB / 1.246 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.2695, allocations: 7.938 kB / 1.246 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.2695, allocations: 0 / 1.246 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.2695, allocations: 8.094 kB / 1.246 GB, free: 5.559 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.2696, allocations: 7.984 kB / 1.246 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003554/0.27, allocations: 0.5937 MB / 1.246 GB, free: 4.934 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.946e-05/0.27, allocations: 0 / 1.246 GB, free: 4.934 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-06/0.27, allocations: 0 / 1.246 GB, free: 4.934 MB / 0.9981 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 7.756e-05/0.2701, allocations: 118.3 kB / 1.246 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.265e-06/0.2701, allocations: 8.094 kB / 1.246 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.599e-05/0.2702, allocations: 40.83 kB / 1.247 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.2702, allocations: 0 / 1.247 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.2702, allocations: 0 / 1.247 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.2702, allocations: 3.984 kB / 1.247 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001034/0.2703, allocations: 149.6 kB / 1.247 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.2703, allocations: 0 / 1.247 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.956e-05/0.2704, allocations: 11.98 kB / 1.247 GB, free: 4.543 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.2704, allocations: 3.938 kB / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-06/0.2704, allocations: 4.031 kB / 1.247 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003194/0.2708, allocations: 0.586 MB / 1.247 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.2708, allocations: 7.938 kB / 1.247 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.976e-05/0.2708, allocations: 69.11 kB / 1.247 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.624e-05/0.2709, allocations: 77.11 kB / 1.247 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.975e-06/0.2709, allocations: 4.125 kB / 1.247 GB, free: 3.734 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.195e-05/0.2709, allocations: 0 / 1.247 GB, free: 3.734 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.816e-05/0.2709, allocations: 3.938 kB / 1.247 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.2709, allocations: 7.938 kB / 1.247 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.561e-05/0.271, allocations: 79.27 kB / 1.248 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.271, allocations: 0 / 1.248 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001697/0.2712, allocations: 11.94 kB / 1.248 GB, free: 3.633 MB / 0.9981 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.0003849/0.2716, allocations: 0.6086 MB / 1.248 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001301/0.2717, allocations: 19.98 kB / 1.248 GB, free: 2.973 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.2717, allocations: 0 / 1.248 GB, free: 2.973 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 7.646e-05/0.2718, allocations: 15.92 kB / 1.248 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001218/0.2719, allocations: 10.73 kB / 1.248 GB, free: 2.949 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003304/0.2723, allocations: 135.6 kB / 1.248 GB, free: 2.773 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.2725, allocations: 0.6768 MB / 1.249 GB, free: 2.07 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.139e-05/0.2725, allocations: 0 / 1.249 GB, free: 2.07 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.923e-05/0.2726, allocations: 11.44 kB / 1.249 GB, free: 2.059 MB / 0.9981 GB Notification: Performance of SimCode: time 2.11e-07/0.2726, allocations: 0 / 1.249 GB, free: 2.059 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.315/1.587, allocations: 1.384 MB / 1.25 GB, free: 0.8984 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.56/22.15, allocations: 11.72 kB / 1.25 GB, free: 0.8867 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches