Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_MixingVolumes_Validation_MixingVolumeTraceSubstanceReverseFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_MixingVolumes_Validation_MixingVolumeTraceSubstanceReverseFlow",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.001526/0.001526, 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.001285/0.001285, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.252/1.252, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001972/0.001972, allocations: 287.2 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9312/0.9312, allocations: 169.2 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 98.11 kB / 0.5953 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1284, allocations: 86.99 MB / 0.6803 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow): time 0.421/0.5494, allocations: 190.4 MB / 0.8663 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.008127/0.5576, allocations: 5.698 MB / 0.8718 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001126/0.5587, allocations: 37.34 kB / 0.8719 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001385/0.5601, allocations: 0.5706 MB / 0.8724 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.003868/0.564, allocations: 1.833 MB / 0.8742 GB, free: 9.371 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002476/0.5665, allocations: 1.168 MB / 0.8754 GB, free: 8.484 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002832/0.5694, allocations: 2.96 MB / 0.8782 GB, free: 6.801 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001316/0.5707, allocations: 1.125 MB / 0.8793 GB, free: 6.133 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001532/0.5722, allocations: 1.046 MB / 0.8804 GB, free: 5.535 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001678/0.5739, allocations: 0.9641 MB / 0.8813 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002256/0.5742, allocations: 125.3 kB / 0.8814 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002368/0.5765, allocations: 1.443 MB / 0.8828 GB, free: 4.207 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005557/0.5771, allocations: 0.5677 MB / 0.8834 GB, free: 3.832 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0008645/0.578, allocations: 0.7267 MB / 0.8841 GB, free: 3.367 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002504/0.5805, allocations: 2.311 MB / 0.8864 GB, free: 1.867 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.5805, allocations: 0 / 0.8864 GB, free: 1.867 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.206e-06/0.5805, allocations: 3.984 kB / 0.8864 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.975e-05/0.5805, allocations: 4 kB / 0.8864 GB, free: 1.859 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.002267/0.5828, allocations: 1.616 MB / 0.8879 GB, free: 0.6641 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.5828, allocations: 14.03 kB / 0.888 GB, free: 0.6602 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001694/0.583, allocations: 164 kB / 0.8881 GB, free: 0.5312 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001873/0.5849, allocations: 329.2 kB / 0.8884 GB, free: 396 kB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001151/0.5861, allocations: 0.8637 MB / 0.8893 GB, free: 15.72 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.107e-05/0.5861, allocations: 74 kB / 0.8893 GB, free: 15.69 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.5862, allocations: 94.94 kB / 0.8894 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.5878, allocations: 1.101 MB / 0.8905 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.378e-05/0.5879, allocations: 7.922 kB / 0.8905 GB, free: 15.03 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.609e-05/0.588, allocations: 44.16 kB / 0.8906 GB, free: 15 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.533e-05/0.588, allocations: 35.47 kB / 0.8906 GB, free: 15 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001464/0.5895, allocations: 0.9962 MB / 0.8916 GB, free: 14.51 MB / 0.6075 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.005391/0.5949, allocations: 4.266 MB / 0.8957 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008504/0.5958, allocations: 0.6006 MB / 0.8963 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004725/0.5962, allocations: 342.5 kB / 0.8966 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001718/0.5964, allocations: 101.5 kB / 0.8967 GB, free: 9.156 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.5965, allocations: 43 kB / 0.8968 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=53): time 3.456e-06/0.5965, allocations: 4 kB / 0.8968 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of matching and sorting (n=55): time 0.003636/0.6001, allocations: 2.201 MB / 0.8989 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.6002, allocations: 59.91 kB / 0.899 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009534/0.6011, allocations: 0.8843 MB / 0.8999 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.131e-05/0.6012, allocations: 37.7 kB / 0.8999 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003318/0.6015, allocations: 0.5224 MB / 0.9004 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.6017, allocations: 197.2 kB / 0.9006 GB, free: 5.051 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.6019, allocations: 134.5 kB / 0.9007 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.602, allocations: 330 kB / 0.901 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004522/0.6025, allocations: 281.8 kB / 0.9013 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005517/0.603, allocations: 440.9 kB / 0.9017 GB, free: 3.832 MB / 0.6075 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: volDyn.dynBal.medium.p = volDyn.dynBal.p_start (bou.p = volDyn.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.003718/0.6067, allocations: 1.752 MB / 0.9034 GB, free: 2.008 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.6068, allocations: 0 / 0.9034 GB, free: 2.008 MB / 0.6075 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001418/0.6082, allocations: 0.927 MB / 0.9043 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.6082, allocations: 8 kB / 0.9043 GB, free: 1.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.6082, allocations: 4 kB / 0.9043 GB, free: 1.055 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001929/0.6084, allocations: 98.73 kB / 0.9044 GB, free: 0.9492 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006917/0.6091, allocations: 159.8 kB / 0.9046 GB, free: 0.793 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003257/0.6124, allocations: 4.649 MB / 0.9091 GB, free: 11.72 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008061/0.6132, allocations: 23.98 kB / 0.9092 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.236e-05/0.6133, allocations: 28.09 kB / 0.9092 GB, free: 11.67 MB / 0.6231 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: volDyn.dynBal.medium.p = volDyn.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,1), (1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0004351/0.6137, allocations: 346.2 kB / 0.9095 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.6139, allocations: 98.88 kB / 0.9096 GB, free: 11.22 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001712/0.6141, allocations: 113.1 kB / 0.9097 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.6141, allocations: 4 kB / 0.9097 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.6141, allocations: 0 / 0.9097 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001009/0.6151, allocations: 0.7731 MB / 0.9105 GB, free: 10.28 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/0.6179, allocations: 1.984 MB / 0.9124 GB, free: 8.191 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.618, allocations: 4.406 kB / 0.9124 GB, free: 8.188 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006557/0.6186, allocations: 143.8 kB / 0.9126 GB, free: 8.047 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.265e-05/0.6187, allocations: 44.77 kB / 0.9126 GB, free: 8 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.754e-05/0.6188, allocations: 12 kB / 0.9126 GB, free: 7.988 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001195/0.62, allocations: 1.61 MB / 0.9142 GB, free: 6.238 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/0.62, allocations: 11.92 kB / 0.9142 GB, free: 6.227 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.6216, allocations: 1.203 MB / 0.9154 GB, free: 4.965 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003686/0.622, allocations: 263.8 kB / 0.9156 GB, free: 4.688 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/0.6221, allocations: 16 kB / 0.9156 GB, free: 4.672 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007105/0.6228, allocations: 36.81 kB / 0.9157 GB, free: 4.641 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.872e-05/0.623, allocations: 51.81 kB / 0.9157 GB, free: 4.59 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.868e-05/0.623, allocations: 27.98 kB / 0.9157 GB, free: 4.562 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0006942/0.6237, allocations: 0.6122 MB / 0.9163 GB, free: 3.953 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.4e-07/0.6237, allocations: 4 kB / 0.9163 GB, free: 3.949 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0008132/0.6245, allocations: 308 kB / 0.9166 GB, free: 3.648 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 3 (volDyn.dynBal.medium.Xi[1],volDyn.dynBal.U,volDyn.dynBal.mC[1]) * 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 (53): * Single equations (assignments): 52 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002099/0.6266, allocations: 1.831 MB / 0.9184 GB, free: 1.758 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001589/0.6282, allocations: 1.114 MB / 0.9195 GB, free: 0.6094 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.6283, allocations: 4.062 kB / 0.9195 GB, free: 0.6055 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000581/0.6289, allocations: 454.3 kB / 0.92 GB, free: 152 kB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002661/0.6315, allocations: 0.647 MB / 0.9206 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009854/0.6414, allocations: 8.312 MB / 0.9287 GB, free: 6.801 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006834/0.6421, allocations: 1.177 MB / 0.9299 GB, free: 5.598 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0008312/0.6429, allocations: 248.4 kB / 0.9301 GB, free: 5.352 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004603/0.6434, allocations: 379.3 kB / 0.9305 GB, free: 4.984 MB / 0.6387 GB Notification: Performance of SimCode: time 2.5e-07/0.6434, allocations: 0 / 0.9305 GB, free: 4.984 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06654/0.7099, allocations: 30.27 MB / 0.96 GB, free: 7.285 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/11.37, allocations: 14.95 kB / 0.96 GB, free: 7.27 MB / 0.67 GB (rm -f BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.004 BuildingSystems_BuildingSystems_Fluid_MixingVolumes_Validation_MixingVolumeTraceSubstanceReverseFlow.fmu > BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.pipe 2>&1)