Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.TraceSubstanceConservationDynamicBalance,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,fileNamePrefix="BuildingSystems_BuildingSystems_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.005746/0.005746, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001185/0.001185, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.26/1.26, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002032/0.002032, allocations: 282.5 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9049/0.9049, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 92.38 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1634, allocations: 86.98 MB / 0.7659 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance): time 0.5045/0.6679, allocations: 187.3 MB / 0.9488 GB, free: 7.777 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.01385/0.6818, allocations: 13.07 MB / 0.9616 GB, free: 10.66 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000983/0.6829, allocations: 31.81 kB / 0.9616 GB, free: 10.63 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001113/0.684, allocations: 437.1 kB / 0.962 GB, free: 10.2 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.002444/0.6865, allocations: 1.155 MB / 0.9631 GB, free: 9.039 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001576/0.6881, allocations: 0.7041 MB / 0.9638 GB, free: 8.34 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.002226/0.6903, allocations: 2.016 MB / 0.9658 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001006/0.6913, allocations: 0.8388 MB / 0.9666 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003521/0.6948, allocations: 1.825 MB / 0.9684 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001341/0.6962, allocations: 0.6635 MB / 0.9691 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.6963, allocations: 80 kB / 0.9691 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001598/0.6979, allocations: 0.8692 MB / 0.97 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003434/0.6983, allocations: 386.9 kB / 0.9703 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0004966/0.6988, allocations: 0.5015 MB / 0.9708 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00176/0.7005, allocations: 1.503 MB / 0.9723 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.7006, allocations: 4 kB / 0.9723 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.403e-06/0.7006, allocations: 3.938 kB / 0.9723 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.306e-05/0.7006, allocations: 4 kB / 0.9723 GB, free: 15.61 MB / 0.7325 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.001648/0.7022, allocations: 1.231 MB / 0.9735 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.7023, allocations: 8.031 kB / 0.9735 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001221/0.7024, allocations: 122.5 kB / 0.9736 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001132/0.7036, allocations: 218.6 kB / 0.9739 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009814/0.7046, allocations: 0.6831 MB / 0.9745 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.746e-05/0.7046, allocations: 58 kB / 0.9746 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.7047, allocations: 76 kB / 0.9746 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.7059, allocations: 0.9249 MB / 0.9756 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.7059, allocations: 3.938 kB / 0.9756 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.386e-05/0.706, allocations: 43.88 kB / 0.9756 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.354e-05/0.706, allocations: 25.31 kB / 0.9756 GB, free: 12.05 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008815/0.7069, allocations: 0.629 MB / 0.9762 GB, free: 11.42 MB / 0.7325 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.00378/0.7107, allocations: 4.57 MB / 0.9807 GB, free: 6.559 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007188/0.7115, allocations: 0.5493 MB / 0.9812 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003091/0.7118, allocations: 253.9 kB / 0.9815 GB, free: 5.715 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001712/0.712, allocations: 105.1 kB / 0.9816 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.712, allocations: 42.28 kB / 0.9816 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=43): time 2.304e-06/0.712, allocations: 0 / 0.9816 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45): time 0.002458/0.7145, allocations: 1.579 MB / 0.9832 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.7145, allocations: 110.8 kB / 0.9833 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007311/0.7153, allocations: 0.7116 MB / 0.984 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.917e-05/0.7153, allocations: 37.7 kB / 0.984 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002671/0.7156, allocations: 419.7 kB / 0.9844 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.7157, allocations: 165.7 kB / 0.9846 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/0.7159, allocations: 122.2 kB / 0.9847 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.884e-05/0.716, allocations: 326 kB / 0.985 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002613/0.7162, allocations: 189.2 kB / 0.9852 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004069/0.7167, allocations: 425 kB / 0.9856 GB, free: 1.281 MB / 0.7325 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.002059/0.7187, allocations: 1.169 MB / 0.9867 GB, free: 8 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.7187, allocations: 4 kB / 0.9867 GB, free: 4 kB / 0.7325 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009214/0.7197, allocations: 0.6679 MB / 0.9874 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.7197, allocations: 17.8 kB / 0.9874 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.7197, allocations: 6.734 kB / 0.9874 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.7197, allocations: 12 kB / 0.9874 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004288/0.7202, allocations: 123.8 kB / 0.9875 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.7202, allocations: 11.94 kB / 0.9875 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004969/0.7207, allocations: 28.39 kB / 0.9876 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.516e-05/0.7207, allocations: 32 kB / 0.9876 GB, free: 15.1 MB / 0.7481 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.0003319/0.7211, allocations: 276.4 kB / 0.9879 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/0.7212, allocations: 86.91 kB / 0.9879 GB, free: 14.74 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001505/0.7214, allocations: 95.66 kB / 0.988 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.7214, allocations: 4 kB / 0.988 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.7214, allocations: 0 / 0.988 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000636/0.722, allocations: 0.6989 MB / 0.9887 GB, free: 13.85 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002132/0.7242, allocations: 1.642 MB / 0.9903 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.7242, allocations: 7.984 kB / 0.9903 GB, free: 12.1 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004213/0.7246, allocations: 99.88 kB / 0.9904 GB, free: 12 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/0.7247, allocations: 8.438 kB / 0.9904 GB, free: 11.99 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.306e-05/0.7247, allocations: 22 kB / 0.9904 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.157e-06/0.7247, allocations: 11.94 kB / 0.9905 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.7247, allocations: 4 kB / 0.9905 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009659/0.7257, allocations: 0.8579 MB / 0.9913 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002505/0.7259, allocations: 208 kB / 0.9915 GB, free: 10.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.589e-05/0.726, allocations: 16 kB / 0.9915 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004091/0.7265, allocations: 15.98 kB / 0.9915 GB, free: 10.79 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.885e-05/0.7265, allocations: 43.83 kB / 0.9916 GB, free: 10.74 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/0.7266, allocations: 20 kB / 0.9916 GB, free: 10.72 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0005528/0.7271, allocations: 0.5107 MB / 0.9921 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7271, allocations: 0 / 0.9921 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006717/0.7278, allocations: 200 kB / 0.9923 GB, free: 10.02 MB / 0.7481 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.001494/0.7293, allocations: 1.509 MB / 0.9938 GB, free: 8.457 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007429/0.7301, allocations: 477.6 kB / 0.9942 GB, free: 7.992 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.7301, allocations: 384 / 0.9942 GB, free: 7.992 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002623/0.7303, allocations: 211.7 kB / 0.9944 GB, free: 7.785 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001878/0.7322, allocations: 486.7 kB / 0.9949 GB, free: 7.324 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00776/0.74, allocations: 6.614 MB / 1.001 GB, free: 320 kB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005488/0.7406, allocations: 1.032 MB / 1.002 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006399/0.7412, allocations: 203 kB / 1.003 GB, free: 15.05 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003528/0.7416, allocations: 299.3 kB / 1.003 GB, free: 14.76 MB / 0.7637 GB Notification: Performance of SimCode: time 6.31e-07/0.7416, allocations: 0 / 1.003 GB, free: 14.76 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04589/0.7875, allocations: 22.61 MB / 1.025 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.408/9.196, allocations: 6.688 kB / 1.025 GB, free: 8.605 MB / 0.7794 GB (rm -f BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance.fmu > BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe 2>&1)