Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.FixedResistances.Validation.PlugFlowPipes.Data.TestData,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Validation_PlugFlowPipes_Data_TestData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Validation_PlugFlowPipes_Data_TestData",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.001514/0.001515, allocations: 108 kB / 15.6 MB, free: 132 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.001942/0.001942, allocations: 195.1 kB / 16.53 MB, free: 6.391 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.399/1.399, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.758/2.758, allocations: 469.4 MB / 0.742 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 69.73 kB / 0.9083 GB, free: 34.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.259, allocations: 159.1 MB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData): time 0.00296/0.262, allocations: 1.647 MB / 1.065 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002068/0.2641, allocations: 1.483 MB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.088e-05/0.2642, allocations: 0 / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004317/0.2646, allocations: 59.75 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002153/0.2648, allocations: 55.69 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003099/0.2652, allocations: 103.7 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002148/0.2654, allocations: 167.6 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.366e-05/0.2654, allocations: 8.219 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.2656, allocations: 63.77 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001918/0.2658, allocations: 59.81 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.101e-05/0.2658, allocations: 12 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001573/0.266, allocations: 63.97 kB / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.648e-05/0.266, allocations: 47.84 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.324e-05/0.2661, allocations: 67.58 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002961/0.2664, allocations: 187.7 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.2665, allocations: 4 kB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.123e-06/0.2665, allocations: 0 / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.694e-06/0.2665, allocations: 0 / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005894/0.2671, allocations: 470.6 kB / 1.068 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.2671, allocations: 8.031 kB / 1.068 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.977e-05/0.2672, allocations: 38.75 kB / 1.068 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.564e-05/0.2672, allocations: 20.75 kB / 1.068 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003374/0.2676, allocations: 259.9 kB / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.2676, allocations: 8.359 kB / 1.068 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.904e-05/0.2676, allocations: 7.938 kB / 1.068 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002255/0.2679, allocations: 123.2 kB / 1.068 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.712e-06/0.2679, allocations: 0 / 1.068 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.2679, allocations: 0 / 1.068 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.2679, allocations: 3.938 kB / 1.068 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002245/0.2681, allocations: 151.8 kB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002274/0.2684, allocations: 233.4 kB / 1.069 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003661/0.2687, allocations: 170.5 kB / 1.069 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.808e-05/0.2689, allocations: 48.84 kB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.932e-05/0.2689, allocations: 11.98 kB / 1.069 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002529/0.2691, allocations: 111.3 kB / 1.069 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.502e-06/0.2692, allocations: 0 / 1.069 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.0004876/0.2697, allocations: 225.4 kB / 1.069 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.913e-05/0.2697, allocations: 81.11 kB / 1.069 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.2699, allocations: 208.1 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.024e-05/0.2699, allocations: 25.7 kB / 1.07 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.63e-05/0.27, allocations: 116.1 kB / 1.07 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.891e-05/0.2701, allocations: 43.39 kB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.365e-05/0.2701, allocations: 37.7 kB / 1.07 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.2703, allocations: 326.8 kB / 1.07 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.2704, allocations: 47.97 kB / 1.07 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.2705, allocations: 74.55 kB / 1.07 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002077/0.2707, allocations: 131.5 kB / 1.07 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.2707, allocations: 7.969 kB / 1.07 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000319/0.271, allocations: 189.4 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.2711, allocations: 9.875 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.2711, allocations: 0 / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.2711, allocations: 0 / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.2712, allocations: 23.98 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.2712, allocations: 4 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.567e-05/0.2713, allocations: 11.91 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.2713, allocations: 8 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 0.0001139/0.2714, allocations: 150.2 kB / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.683e-05/0.2715, allocations: 15.81 kB / 1.071 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.864e-05/0.2716, allocations: 21.52 kB / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.2716, allocations: 4 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2716, allocations: 0 / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2716, allocations: 0 / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.2718, allocations: 245.4 kB / 1.071 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2718, allocations: 3.938 kB / 1.071 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.535e-05/0.2719, allocations: 19.98 kB / 1.071 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.2719, allocations: 8 kB / 1.071 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.2719, allocations: 4 kB / 1.071 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2719, allocations: 0 / 1.071 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2719, allocations: 4 kB / 1.071 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003419/0.2722, allocations: 211.5 kB / 1.071 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.391e-05/0.2723, allocations: 85.02 kB / 1.071 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.507e-05/0.2723, allocations: 8 kB / 1.071 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.818e-05/0.2724, allocations: 0 / 1.071 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.828e-05/0.2724, allocations: 19.98 kB / 1.071 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.2725, allocations: 7.984 kB / 1.071 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001288/0.2726, allocations: 151 kB / 1.072 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2e-07/0.2726, allocations: 0 / 1.072 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000257/0.2729, allocations: 43.89 kB / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001487/0.2744, allocations: 1.106 MB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002983/0.2747, allocations: 137.5 kB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2747, allocations: 0 / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001159/0.2748, allocations: 63.98 kB / 1.073 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.2751, allocations: 40.73 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002184/0.2773, allocations: 1.93 MB / 1.075 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.2776, allocations: 0.7202 MB / 1.076 GB, free: 1.984 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001155/0.2777, allocations: 49.67 kB / 1.076 GB, free: 1.938 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.2778, allocations: 55.41 kB / 1.076 GB, free: 1.887 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.2778, allocations: 0 / 1.076 GB, free: 1.887 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02292/0.3007, allocations: 4.603 MB / 1.08 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.445/7.745, allocations: 3.859 kB / 1.08 GB, free: 13.45 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData_res.csv --start-time 0 --stop-time 603900 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 900 Buildings_latest_Buildings_Fluid_FixedResistances_Validation_PlugFlowPipes_Data_TestData.fmu > Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Validation_PlugFlowPipes_Data_TestData.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches