Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Validation.TraceSubstanceConservationDynamicBalance,fileNamePrefix="Buildings_9_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,fileNamePrefix="Buildings_9_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance",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.001535/0.001535, allocations: 108 kB / 15.61 MB, free: 152 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.00106/0.00106, allocations: 196.9 kB / 16.53 MB, free: 6.664 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.322/1.322, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.153/2.153, allocations: 390.2 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 59.91 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5633/0.5648, allocations: 140.4 MB / 0.9497 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance): time 0.2105/0.7754, allocations: 187.3 MB / 1.133 GB, free: 5.922 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0129/0.7883, allocations: 13.08 MB / 1.145 GB, free: 8.801 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006397/0.789, allocations: 31.81 kB / 1.145 GB, free: 8.77 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001004/0.79, allocations: 425.2 kB / 1.146 GB, free: 8.352 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.002077/0.7921, allocations: 1.163 MB / 1.147 GB, free: 7.184 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001296/0.7934, allocations: 0.704 MB / 1.148 GB, free: 6.48 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001645/0.7951, allocations: 2.01 MB / 1.15 GB, free: 4.469 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008557/0.7959, allocations: 0.8473 MB / 1.15 GB, free: 3.605 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002666/0.7986, allocations: 1.809 MB / 1.152 GB, free: 1.789 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001033/0.7997, allocations: 0.666 MB / 1.153 GB, free: 1.129 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.7998, allocations: 80 kB / 1.153 GB, free: 1.051 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001205/0.801, allocations: 0.8614 MB / 1.154 GB, free: 192 kB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003132/0.8013, allocations: 391 kB / 1.154 GB, free: 15.8 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.000402/0.8017, allocations: 0.4976 MB / 1.155 GB, free: 15.3 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.001337/0.8031, allocations: 1.464 MB / 1.156 GB, free: 13.84 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.8031, allocations: 0 / 1.156 GB, free: 13.84 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.172e-06/0.8031, allocations: 4 kB / 1.156 GB, free: 13.83 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.708e-06/0.8031, allocations: 0 / 1.156 GB, free: 13.83 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.001445/0.8046, allocations: 1.232 MB / 1.157 GB, free: 12.55 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.8046, allocations: 8.031 kB / 1.157 GB, free: 12.54 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001174/0.8047, allocations: 126.5 kB / 1.157 GB, free: 12.41 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001032/0.8058, allocations: 218.6 kB / 1.158 GB, free: 12.19 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008075/0.8066, allocations: 0.6364 MB / 1.158 GB, free: 11.52 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.189e-05/0.8066, allocations: 61.94 kB / 1.158 GB, free: 11.45 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.566e-05/0.8067, allocations: 79.98 kB / 1.158 GB, free: 11.38 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.8078, allocations: 0.9326 MB / 1.159 GB, free: 10.36 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.8079, allocations: 7.938 kB / 1.159 GB, free: 10.35 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.106e-05/0.8079, allocations: 39.94 kB / 1.159 GB, free: 10.31 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.018e-05/0.808, allocations: 25.31 kB / 1.159 GB, free: 10.29 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008413/0.8088, allocations: 0.6177 MB / 1.16 GB, free: 9.672 MB / 0.92 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.003514/0.8123, allocations: 4.609 MB / 1.164 GB, free: 4.77 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006922/0.8131, allocations: 0.5402 MB / 1.165 GB, free: 4.184 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002892/0.8134, allocations: 246.5 kB / 1.165 GB, free: 3.934 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001552/0.8135, allocations: 101.8 kB / 1.165 GB, free: 3.816 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.8136, allocations: 38.56 kB / 1.165 GB, free: 3.77 MB / 0.92 GB Notification: Performance of pre-optimization done (n=43): time 1.754e-06/0.8136, allocations: 0 / 1.165 GB, free: 3.77 MB / 0.92 GB Notification: Performance of matching and sorting (n=45): time 0.002276/0.8158, allocations: 1.588 MB / 1.167 GB, free: 2.121 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.961e-05/0.8159, allocations: 106.8 kB / 1.167 GB, free: 1.992 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007006/0.8166, allocations: 0.7155 MB / 1.168 GB, free: 1.262 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.8167, allocations: 37.7 kB / 1.168 GB, free: 1.219 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002422/0.8169, allocations: 419.7 kB / 1.168 GB, free: 0.8047 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.817, allocations: 165.6 kB / 1.168 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001424/0.8172, allocations: 110.2 kB / 1.168 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.149e-05/0.8173, allocations: 338 kB / 1.169 GB, free: 192 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002495/0.8175, allocations: 185.2 kB / 1.169 GB, free: 8 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003993/0.8179, allocations: 417.8 kB / 1.169 GB, free: 15.5 MB / 0.9356 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: vol.dynBal.medium.p = vol.dynBal.p_start (sin.p = vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.001931/0.8199, allocations: 1.187 MB / 1.17 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.8199, allocations: 4 kB / 1.17 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008341/0.8207, allocations: 0.6719 MB / 1.171 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.8207, allocations: 8 kB / 1.171 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.8208, allocations: 8 kB / 1.171 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.8208, allocations: 8 kB / 1.171 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004046/0.8212, allocations: 131.8 kB / 1.171 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.8212, allocations: 8 kB / 1.171 GB, free: 13.37 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004744/0.8217, allocations: 31.44 kB / 1.171 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.35e-05/0.8217, allocations: 32 kB / 1.171 GB, free: 13.31 MB / 0.9356 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: vol.dynBal.medium.p = vol.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 2 (intTraSubOut.local_reset,intTraSubIn.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * 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.0002746/0.822, allocations: 277.6 kB / 1.172 GB, free: 13.03 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/0.8222, allocations: 86.91 kB / 1.172 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001362/0.8223, allocations: 87.75 kB / 1.172 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.8223, allocations: 11.98 kB / 1.172 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.8223, allocations: 0 / 1.172 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005967/0.8229, allocations: 0.6999 MB / 1.172 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001926/0.8248, allocations: 1.634 MB / 1.174 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.8249, allocations: 4 kB / 1.174 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004039/0.8253, allocations: 103.8 kB / 1.174 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.471e-06/0.8253, allocations: 8 kB / 1.174 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.074e-05/0.8253, allocations: 19.98 kB / 1.174 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.8253, allocations: 4.5 kB / 1.174 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.978e-06/0.8254, allocations: 15.94 kB / 1.174 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008983/0.8263, allocations: 0.8572 MB / 1.175 GB, free: 9.242 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002223/0.8265, allocations: 219.9 kB / 1.175 GB, free: 9.008 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.122e-05/0.8266, allocations: 12 kB / 1.175 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000405/0.827, allocations: 21.95 kB / 1.175 GB, free: 8.977 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.8271, allocations: 35.84 kB / 1.175 GB, free: 8.941 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3e-05/0.8271, allocations: 27.98 kB / 1.175 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0005009/0.8276, allocations: 0.5029 MB / 1.176 GB, free: 8.418 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8276, allocations: 0 / 1.176 GB, free: 8.418 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0005876/0.8282, allocations: 204 kB / 1.176 GB, free: 8.219 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 5 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.mC[1],intTraSubIn.y,intTraSubOut.y) * 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 (45): * Single equations (assignments): 45 * 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.001348/0.8295, allocations: 1.507 MB / 1.177 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007014/0.8303, allocations: 0.5154 MB / 1.178 GB, free: 6.137 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.8303, allocations: 5.562 kB / 1.178 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002504/0.8305, allocations: 216.3 kB / 1.178 GB, free: 5.922 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/0.8324, allocations: 474.2 kB / 1.179 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00679/0.8392, allocations: 6.931 MB / 1.185 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004829/0.8397, allocations: 1.032 MB / 1.186 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0005411/0.8402, allocations: 195 kB / 1.187 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/0.8405, allocations: 299.3 kB / 1.187 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of SimCode: time 2.5e-07/0.8405, allocations: 0 / 1.187 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6892/1.53, allocations: 22.05 MB / 1.208 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/12.12, allocations: 6.375 kB / 1.208 GB, free: 6.91 MB / 0.9669 GB (rm -f Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; mkfifo Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe >> ../files/Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance.fmu > Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches