Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,fileNamePrefix="Buildings_latest_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,fileNamePrefix="Buildings_latest_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.63/2.63, allocations: 393.5 MB / 408.4 MB, free: 10.97 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001593/0.001593, allocations: 187.2 kB / 0.4901 GB, free: 2.238 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.77/1.77, allocations: 223.1 MB / 0.7992 GB, free: 14.75 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001278, allocations: 100.2 kB / 0.9396 GB, free: 1.934 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000398/0.000398, allocations: 7.719 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4063/0.4068, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.355/5.762, allocations: 1.931 GB / 3.161 GB, free: 21.48 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/5.762, allocations: 90.44 kB / 3.161 GB, free: 21.44 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 3.072/8.834, allocations: 0.6008 GB / 3.762 GB, free: 312.1 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.086e-06/8.834, allocations: 3.688 kB / 3.762 GB, free: 312.1 MB / 1.167 GB Notification: Performance of Transformations before backend: time 8.112e-05/8.834, allocations: 26.09 kB / 3.762 GB, free: 312.1 MB / 1.167 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.003019/8.837, allocations: 1.254 MB / 3.763 GB, free: 311.5 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 7.602e-05/8.837, allocations: 6.469 kB / 3.763 GB, free: 311.5 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001681/8.837, allocations: 126.9 kB / 3.763 GB, free: 311.5 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001199/8.839, allocations: 208.2 kB / 3.763 GB, free: 311.4 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001278/8.84, allocations: 0.6729 MB / 3.764 GB, free: 311.2 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.779e-05/8.84, allocations: 56.22 kB / 3.764 GB, free: 311.2 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/8.84, allocations: 79.2 kB / 3.764 GB, free: 311.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/8.841, allocations: 0.903 MB / 3.765 GB, free: 310.9 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.733e-05/8.842, allocations: 3.469 kB / 3.765 GB, free: 310.9 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.303e-05/8.842, allocations: 36.03 kB / 3.765 GB, free: 310.9 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.463e-05/8.842, allocations: 24.94 kB / 3.765 GB, free: 310.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008902/8.843, allocations: 0.5925 MB / 3.765 GB, free: 310.9 MB / 1.167 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.004108/8.847, allocations: 4.575 MB / 3.77 GB, free: 307.7 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006982/8.847, allocations: 451.7 kB / 3.77 GB, free: 307.7 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002077/8.848, allocations: 113.3 kB / 3.77 GB, free: 307.6 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/8.848, allocations: 41.12 kB / 3.77 GB, free: 307.5 MB / 1.167 GB Notification: Performance of pre-optimization done (n=43): time 2.936e-06/8.848, allocations: 0 / 3.77 GB, free: 307.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=45): time 0.002753/8.85, allocations: 1.558 MB / 3.772 GB, free: 306.9 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/8.85, allocations: 106.6 kB / 3.772 GB, free: 306.8 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007427/8.851, allocations: 0.6241 MB / 3.773 GB, free: 306.7 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 4.307e-05/8.851, allocations: 36.05 kB / 3.773 GB, free: 306.6 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.000292/8.852, allocations: 423.7 kB / 3.773 GB, free: 306.4 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001268/8.852, allocations: 166.9 kB / 3.773 GB, free: 306.3 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.347e-05/8.852, allocations: 6.875 kB / 3.773 GB, free: 306.3 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 9.826e-05/8.852, allocations: 334.5 kB / 3.774 GB, free: 306 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000254/8.852, allocations: 181.3 kB / 3.774 GB, free: 306 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004011/8.852, allocations: 424.2 kB / 3.774 GB, free: 305.8 MB / 1.167 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.001559/8.854, allocations: 0.6713 MB / 3.775 GB, free: 305.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/8.854, allocations: 3.812 kB / 3.775 GB, free: 305.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009273/8.855, allocations: 0.647 MB / 3.775 GB, free: 305.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/8.855, allocations: 13.31 kB / 3.775 GB, free: 305.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/8.855, allocations: 7.156 kB / 3.775 GB, free: 305.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/8.855, allocations: 10.84 kB / 3.775 GB, free: 305.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004471/8.856, allocations: 130.6 kB / 3.776 GB, free: 305.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/8.856, allocations: 14.23 kB / 3.776 GB, free: 305.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006504/8.856, allocations: 57.22 kB / 3.776 GB, free: 305.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.189e-05/8.856, allocations: 30.86 kB / 3.776 GB, free: 305.5 MB / 1.167 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004337/8.857, allocations: 279.5 kB / 3.776 GB, free: 305.4 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/8.857, allocations: 87.34 kB / 3.776 GB, free: 305.3 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001729/8.857, allocations: 88.58 kB / 3.776 GB, free: 305.3 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/8.857, allocations: 3.938 kB / 3.776 GB, free: 305.3 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/8.857, allocations: 0 / 3.776 GB, free: 305.3 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006421/8.858, allocations: 0.6839 MB / 3.777 GB, free: 304.9 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002341/8.86, allocations: 1.617 MB / 3.778 GB, free: 304.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/8.86, allocations: 2.812 kB / 3.778 GB, free: 304.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004308/8.861, allocations: 100.4 kB / 3.778 GB, free: 304.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.428e-06/8.861, allocations: 7.125 kB / 3.779 GB, free: 304.2 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.629e-05/8.861, allocations: 14.94 kB / 3.779 GB, free: 304.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.007e-06/8.861, allocations: 11.38 kB / 3.779 GB, free: 304.1 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/8.861, allocations: 3.969 kB / 3.779 GB, free: 304.1 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/8.862, allocations: 1.029 MB / 3.78 GB, free: 303.4 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003455/8.862, allocations: 207.5 kB / 3.78 GB, free: 303.2 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.707e-05/8.862, allocations: 18.97 kB / 3.78 GB, free: 303.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004937/8.863, allocations: 37.67 kB / 3.78 GB, free: 303.2 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.904e-05/8.863, allocations: 39.39 kB / 3.78 GB, free: 303.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.179e-05/8.863, allocations: 18 kB / 3.78 GB, free: 303.2 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0006195/8.864, allocations: 0.5094 MB / 3.78 GB, free: 303 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.3e-07/8.864, allocations: 0 / 3.78 GB, free: 303 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001542/8.865, allocations: 359.6 kB / 3.781 GB, free: 302.9 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004276/8.869, allocations: 4.18 MB / 3.785 GB, free: 299.9 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.00081/8.87, allocations: 467.1 kB / 3.785 GB, free: 299.7 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/8.87, allocations: 0 / 3.785 GB, free: 299.7 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0002501/8.87, allocations: 204.2 kB / 3.785 GB, free: 299.6 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001905/8.872, allocations: 454.8 kB / 3.786 GB, free: 299.4 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007845/8.88, allocations: 9.015 MB / 3.795 GB, free: 292.2 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005788/8.881, allocations: 1.042 MB / 3.796 GB, free: 291.3 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0008642/8.882, allocations: 195.2 kB / 3.796 GB, free: 291.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003858/8.882, allocations: 307.1 kB / 3.796 GB, free: 291 MB / 1.167 GB Notification: Performance of SimCode: time 1.422e-06/8.882, allocations: 3.969 kB / 3.796 GB, free: 291 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07911/8.961, allocations: 47 MB / 3.842 GB, free: 247.1 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/8.962, allocations: 259.6 kB / 3.842 GB, free: 246.7 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.736/12.7, allocations: 3.938 kB / 3.842 GB, free: 246.7 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; mkfifo Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe >> ../files/Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance.fmu > Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance_res.mat does not exist to compare? outputFormat=mat