Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.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.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances",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.005727/0.005727, allocations: 102 kB / 15.73 MB, free: 6.039 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.001209/0.001209, allocations: 194.2 kB / 16.67 MB, free: 5.961 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002333/0.002333, allocations: 290.2 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9285/0.9285, allocations: 169.3 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00177/0.00177, allocations: 99.83 kB / 0.681 GB, free: 7.465 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4357/0.4375, allocations: 86.98 MB / 0.7659 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.1998/0.6374, allocations: 195.1 MB / 0.9564 GB, free: 44 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.4584/1.096, allocations: 14.29 MB / 0.9704 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001712/1.098, allocations: 36.72 kB / 0.9704 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001584/1.099, allocations: 0.4971 MB / 0.9709 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.004659/1.104, allocations: 1.887 MB / 0.9728 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002504/1.106, allocations: 0.8687 MB / 0.9736 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.003292/1.11, allocations: 2.572 MB / 0.9761 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001434/1.111, allocations: 1.118 MB / 0.9772 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00419/1.115, allocations: 1.601 MB / 0.9788 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001715/1.117, allocations: 0.9219 MB / 0.9797 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001863/1.117, allocations: 109.2 kB / 0.9798 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00241/1.12, allocations: 1.101 MB / 0.9809 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0004685/1.12, allocations: 0.4965 MB / 0.9813 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0008409/1.121, allocations: 0.6372 MB / 0.982 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.002485/1.123, allocations: 1.911 MB / 0.9838 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/1.124, allocations: 0.9062 kB / 0.9838 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.432e-06/1.124, allocations: 0 / 0.9838 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.801e-05/1.124, allocations: 3.594 kB / 0.9838 GB, free: 1.492 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002277/1.126, allocations: 1.452 MB / 0.9853 GB, free: 16.72 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/1.126, allocations: 14.83 kB / 0.9853 GB, free: 16.72 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001566/1.126, allocations: 140.2 kB / 0.9854 GB, free: 16.68 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001314/1.127, allocations: 255.2 kB / 0.9856 GB, free: 16.62 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001369/1.129, allocations: 0.7903 MB / 0.9864 GB, free: 16.3 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.849e-05/1.129, allocations: 78.55 kB / 0.9865 GB, free: 16.3 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/1.129, allocations: 90.52 kB / 0.9866 GB, free: 16.3 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/1.13, allocations: 1.175 MB / 0.9877 GB, free: 16.07 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.75e-05/1.13, allocations: 6.031 kB / 0.9877 GB, free: 16.07 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.064e-05/1.131, allocations: 37.16 kB / 0.9878 GB, free: 16.07 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.855e-05/1.131, allocations: 37.05 kB / 0.9878 GB, free: 16.07 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001187/1.132, allocations: 0.9028 MB / 0.9887 GB, free: 16.06 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.005464/1.137, allocations: 5.739 MB / 0.9943 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000726/1.138, allocations: 0.538 MB / 0.9948 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003523/1.138, allocations: 321.6 kB / 0.9951 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005573/1.139, allocations: 318 kB / 0.9954 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/1.139, allocations: 36.56 kB / 0.9955 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 2.605e-06/1.139, allocations: 0 / 0.9955 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001333/1.14, allocations: 0.7967 MB / 0.9962 GB, free: 11.85 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/1.14, allocations: 59.88 kB / 0.9963 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007769/1.141, allocations: 0.7571 MB / 0.997 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.365e-05/1.141, allocations: 34.86 kB / 0.9971 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003018/1.141, allocations: 0.5074 MB / 0.9976 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/1.142, allocations: 178.4 kB / 0.9977 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/1.142, allocations: 142.3 kB / 0.9979 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000112/1.142, allocations: 341.4 kB / 0.9982 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003017/1.142, allocations: 247.2 kB / 0.9984 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005309/1.143, allocations: 0.5495 MB / 0.999 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008384/1.144, allocations: 0.8035 MB / 0.9998 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/1.144, allocations: 0 / 0.9998 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001112/1.145, allocations: 0.8457 MB / 1.001 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/1.145, allocations: 8.094 kB / 1.001 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/1.145, allocations: 10.81 kB / 1.001 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.411e-05/1.145, allocations: 10.91 kB / 1.001 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005045/1.145, allocations: 153.2 kB / 1.001 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/1.145, allocations: 19.94 kB / 1.001 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007137/1.146, allocations: 90.05 kB / 1.001 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.494e-05/1.146, allocations: 33.62 kB / 1.001 GB, free: 10.18 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (86): * Single equations (assignments): 86 * 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.0004171/1.147, allocations: 335.9 kB / 1.001 GB, free: 10.05 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/1.147, allocations: 84.66 kB / 1.001 GB, free: 10.01 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008473/1.148, allocations: 0.6212 MB / 1.002 GB, free: 9.945 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/1.148, allocations: 9.25 kB / 1.002 GB, free: 9.945 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.319e-06/1.148, allocations: 0.8125 kB / 1.002 GB, free: 9.945 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005903/1.148, allocations: 0.5156 MB / 1.002 GB, free: 9.875 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002219/1.15, allocations: 1.672 MB / 1.004 GB, free: 9.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/1.15, allocations: 2.875 kB / 1.004 GB, free: 9.492 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004774/1.151, allocations: 112.5 kB / 1.004 GB, free: 9.488 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/1.151, allocations: 5.719 kB / 1.004 GB, free: 9.488 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.778e-05/1.151, allocations: 19.08 kB / 1.004 GB, free: 9.484 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/1.151, allocations: 6.656 kB / 1.004 GB, free: 9.484 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/1.151, allocations: 5.781 kB / 1.004 GB, free: 9.484 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/1.152, allocations: 1.009 MB / 1.005 GB, free: 9.246 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003974/1.153, allocations: 230.1 kB / 1.005 GB, free: 9.102 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/1.153, allocations: 16.81 kB / 1.005 GB, free: 9.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004439/1.153, allocations: 16.12 kB / 1.005 GB, free: 9.098 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.486e-05/1.153, allocations: 33.28 kB / 1.005 GB, free: 9.098 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.433e-05/1.153, allocations: 16.78 kB / 1.005 GB, free: 9.098 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0005469/1.154, allocations: 0.5145 MB / 1.006 GB, free: 9.008 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/1.154, allocations: 4 kB / 1.006 GB, free: 9.008 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0008801/1.155, allocations: 298 kB / 1.006 GB, free: 8.969 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.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 (49): * Single equations (assignments): 49 * 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.001732/1.156, allocations: 1.659 MB / 1.008 GB, free: 8.184 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008837/1.157, allocations: 0.6206 MB / 1.008 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/1.157, allocations: 3.219 kB / 1.008 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000298/1.158, allocations: 273.8 kB / 1.009 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001928/1.16, allocations: 436.6 kB / 1.009 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008953/1.169, allocations: 7.203 MB / 1.016 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006709/1.169, allocations: 1.119 MB / 1.017 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0009035/1.17, allocations: 271.4 kB / 1.018 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004467/1.171, allocations: 364.7 kB / 1.018 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of SimCode: time 7.62e-07/1.171, allocations: 0 / 1.018 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04952/1.22, allocations: 22.9 MB / 1.04 GB, free: 9.363 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.557/9.777, allocations: 7.75 kB / 1.04 GB, free: 9.355 MB / 0.7481 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)