Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_MixingVolumes_Examples_MixingVolumePrescribedHeatFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_MixingVolumes_Examples_MixingVolumePrescribedHeatFlowRate",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.005697/0.005697, allocations: 99.81 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 195.1 kB / 16.67 MB, free: 5.973 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.764/2.764, allocations: 469.4 MB / 0.7422 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 67.89 kB / 1.064 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8784/0.88, allocations: 159.1 MB / 1.22 GB, free: 2.273 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate): time 0.1842/1.064, allocations: 171 MB / 1.387 GB, free: 6.605 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.007623/1.072, allocations: 4.29 MB / 1.391 GB, free: 2.309 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001135/1.073, allocations: 19.88 kB / 1.391 GB, free: 2.289 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.001486/1.075, allocations: 366 kB / 1.391 GB, free: 1.93 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.003567/1.078, allocations: 1.038 MB / 1.392 GB, free: 0.8867 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.002973/1.081, allocations: 0.8166 MB / 1.393 GB, free: 76 kB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.002219/1.084, allocations: 1.286 MB / 1.394 GB, free: 14.79 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009837/1.085, allocations: 491.2 kB / 1.395 GB, free: 14.3 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001864/1.086, allocations: 0.6928 MB / 1.395 GB, free: 13.6 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001572/1.088, allocations: 449.1 kB / 1.396 GB, free: 13.16 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.0002158/1.088, allocations: 52 kB / 1.396 GB, free: 13.11 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002151/1.09, allocations: 0.9238 MB / 1.397 GB, free: 12.19 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.0004295/1.091, allocations: 219.3 kB / 1.397 GB, free: 11.97 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.0008033/1.092, allocations: 330.5 kB / 1.397 GB, free: 11.65 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.003068/1.095, allocations: 1.134 MB / 1.399 GB, free: 10.51 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 8.375e-06/1.095, allocations: 3.938 kB / 1.399 GB, free: 10.51 MB / 1.123 GB Notification: Performance of FrontEnd: time 1.864e-06/1.095, allocations: 0 / 1.399 GB, free: 10.51 MB / 1.123 GB Notification: Performance of Transformations before backend: time 4.037e-05/1.095, allocations: 0 / 1.399 GB, free: 10.51 MB / 1.123 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002684/1.098, allocations: 0.965 MB / 1.399 GB, free: 9.492 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/1.098, allocations: 12.62 kB / 1.399 GB, free: 9.48 MB / 1.123 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001963/1.098, allocations: 86.52 kB / 1.4 GB, free: 9.387 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001991/1.1, allocations: 263.4 kB / 1.4 GB, free: 9.129 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/1.101, allocations: 0.4939 MB / 1.4 GB, free: 8.598 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.232e-05/1.101, allocations: 36.94 kB / 1.4 GB, free: 8.562 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/1.102, allocations: 36 kB / 1.4 GB, free: 8.527 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/1.103, allocations: 0.6185 MB / 1.401 GB, free: 7.883 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/1.103, allocations: 0 / 1.401 GB, free: 7.883 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.252e-05/1.103, allocations: 20 kB / 1.401 GB, free: 7.863 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.249e-05/1.103, allocations: 17 kB / 1.401 GB, free: 7.848 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001616/1.105, allocations: 0.5464 MB / 1.402 GB, free: 7.297 MB / 1.123 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005176/1.11, allocations: 2.284 MB / 1.404 GB, free: 4.883 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/1.111, allocations: 282.3 kB / 1.404 GB, free: 4.598 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005876/1.112, allocations: 176.6 kB / 1.404 GB, free: 4.422 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 3.82e-05/1.112, allocations: 4 kB / 1.404 GB, free: 4.418 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/1.112, allocations: 34.56 kB / 1.404 GB, free: 4.375 MB / 1.123 GB Notification: Performance of pre-optimization done (n=11): time 3.497e-06/1.112, allocations: 224 / 1.404 GB, free: 4.375 MB / 1.123 GB Notification: Performance of matching and sorting (n=11): time 0.005549/1.118, allocations: 1.092 MB / 1.405 GB, free: 3.254 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.397e-05/1.118, allocations: 77.11 kB / 1.405 GB, free: 3.16 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008993/1.119, allocations: 0.5612 MB / 1.406 GB, free: 2.59 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 8.834e-05/1.119, allocations: 29.7 kB / 1.406 GB, free: 2.555 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002611/1.119, allocations: 304 kB / 1.406 GB, free: 2.254 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 8.309e-05/1.119, allocations: 47.67 kB / 1.406 GB, free: 2.207 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001541/1.119, allocations: 57.66 kB / 1.406 GB, free: 2.145 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001423/1.119, allocations: 354.8 kB / 1.407 GB, free: 1.789 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006705/1.12, allocations: 191.8 kB / 1.407 GB, free: 1.602 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006838/1.121, allocations: 273.2 kB / 1.407 GB, free: 1.301 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/1.122, allocations: 407 kB / 1.408 GB, free: 0.875 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/1.122, allocations: 4 kB / 1.408 GB, free: 0.8711 MB / 1.123 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.002909/1.125, allocations: 0.728 MB / 1.408 GB, free: 136 kB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 3.336e-05/1.125, allocations: 5.875 kB / 1.408 GB, free: 132 kB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/1.125, allocations: 4 kB / 1.408 GB, free: 128 kB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007388/1.126, allocations: 180.8 kB / 1.408 GB, free: 15.95 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004311/1.126, allocations: 71.89 kB / 1.408 GB, free: 15.88 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004631/1.131, allocations: 2.239 MB / 1.411 GB, free: 13.5 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008207/1.132, allocations: 79.64 kB / 1.411 GB, free: 13.43 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.73e-05/1.132, allocations: 11.98 kB / 1.411 GB, free: 13.41 MB / 1.139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004033/1.132, allocations: 185.8 kB / 1.411 GB, free: 13.22 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/1.133, allocations: 59.67 kB / 1.411 GB, free: 13.16 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001771/1.133, allocations: 51.97 kB / 1.411 GB, free: 13.11 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/1.133, allocations: 4 kB / 1.411 GB, free: 13.11 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/1.133, allocations: 0 / 1.411 GB, free: 13.11 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/1.133, allocations: 0 / 1.411 GB, free: 13.11 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003523/1.136, allocations: 1.125 MB / 1.412 GB, free: 11.91 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/1.136, allocations: 0 / 1.412 GB, free: 11.91 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002693/1.137, allocations: 40.02 kB / 1.412 GB, free: 11.88 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005886/1.137, allocations: 188.8 kB / 1.412 GB, free: 11.69 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/1.137, allocations: 8.094 kB / 1.412 GB, free: 11.68 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003908/1.141, allocations: 2.191 MB / 1.414 GB, free: 9.348 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/1.141, allocations: 7.969 kB / 1.415 GB, free: 9.34 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002728/1.144, allocations: 0.7042 MB / 1.415 GB, free: 8.609 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004056/1.144, allocations: 172.7 kB / 1.415 GB, free: 8.422 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/1.145, allocations: 4 kB / 1.415 GB, free: 8.418 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006594/1.145, allocations: 54.11 kB / 1.415 GB, free: 8.367 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.59e-05/1.145, allocations: 11.98 kB / 1.415 GB, free: 8.355 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.466e-05/1.145, allocations: 15.98 kB / 1.415 GB, free: 8.34 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.0005476/1.146, allocations: 398.8 kB / 1.416 GB, free: 7.953 MB / 1.139 GB Notification: Performance of sort global known variables: time 3.81e-07/1.146, allocations: 0 / 1.416 GB, free: 7.953 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.000782/1.147, allocations: 175.8 kB / 1.416 GB, free: 7.781 MB / 1.139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003469/1.15, allocations: 1.326 MB / 1.417 GB, free: 6.43 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.001844/1.152, allocations: 0.5204 MB / 1.418 GB, free: 5.898 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 7.555e-06/1.152, allocations: 4.062 kB / 1.418 GB, free: 5.895 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.0007961/1.153, allocations: 306.5 kB / 1.418 GB, free: 5.582 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001826/1.155, allocations: 305.8 kB / 1.418 GB, free: 5.281 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01326/1.168, allocations: 5.076 MB / 1.423 GB, free: 52 kB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006155/1.169, allocations: 0.8622 MB / 1.424 GB, free: 15.16 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.0005903/1.169, allocations: 100.5 kB / 1.424 GB, free: 15.05 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002932/1.17, allocations: 167.4 kB / 1.424 GB, free: 14.89 MB / 1.154 GB Notification: Performance of SimCode: time 5.21e-07/1.17, allocations: 0 / 1.424 GB, free: 14.89 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04477/1.214, allocations: 16.88 MB / 1.441 GB, free: 14.37 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/14.49, allocations: 8.625 kB / 1.441 GB, free: 14.36 MB / 1.17 GB (rm -f Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Fluid_MixingVolumes_Examples_MixingVolumePrescribedHeatFlowRate.fmu > Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_MixingVolumes_Examples_MixingVolumePrescribedHeatFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches