Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/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.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_9_Buildings_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.001621/0.001621, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001926/0.001926, allocations: 200 kB / 16.26 MB, free: 6.625 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.325/1.325, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.065/2.065, allocations: 390.2 MB / 0.6644 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.00118, allocations: 63.91 kB / 0.8122 GB, free: 14.71 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4921/0.4933, allocations: 140.4 MB / 0.9492 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.1705/0.6638, allocations: 192.6 MB / 1.137 GB, free: 0.7773 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01436/0.6782, allocations: 14.22 MB / 1.151 GB, free: 2.52 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000837/0.6791, allocations: 35.81 kB / 1.151 GB, free: 2.484 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.6803, allocations: 437.7 kB / 1.152 GB, free: 2.055 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.003523/0.6838, allocations: 1.774 MB / 1.153 GB, free: 280 kB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001801/0.6856, allocations: 0.7758 MB / 1.154 GB, free: 15.5 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.00252/0.6881, allocations: 2.579 MB / 1.157 GB, free: 12.91 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001236/0.6894, allocations: 1.06 MB / 1.158 GB, free: 11.83 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003617/0.693, allocations: 1.592 MB / 1.159 GB, free: 10.25 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001373/0.6944, allocations: 0.9866 MB / 1.16 GB, free: 9.266 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001742/0.6946, allocations: 104 kB / 1.16 GB, free: 9.164 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001647/0.6962, allocations: 1.153 MB / 1.161 GB, free: 8.008 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0004445/0.6967, allocations: 0.4987 MB / 1.162 GB, free: 7.508 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0007038/0.6974, allocations: 0.6378 MB / 1.163 GB, free: 6.867 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.001947/0.6994, allocations: 1.959 MB / 1.164 GB, free: 4.902 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/0.6994, allocations: 0 / 1.164 GB, free: 4.902 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.825e-06/0.6994, allocations: 3.984 kB / 1.164 GB, free: 4.898 MB / 0.92 GB Notification: Performance of Transformations before backend: time 2.66e-05/0.6994, allocations: 4 kB / 1.164 GB, free: 4.895 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002005/0.7014, allocations: 1.445 MB / 1.166 GB, free: 3.395 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.7015, allocations: 8.031 kB / 1.166 GB, free: 3.387 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001615/0.7016, allocations: 143.6 kB / 1.166 GB, free: 3.238 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/0.7029, allocations: 266.2 kB / 1.166 GB, free: 2.977 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.704, allocations: 0.7492 MB / 1.167 GB, free: 2.184 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.469e-05/0.704, allocations: 70 kB / 1.167 GB, free: 2.113 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.7042, allocations: 99.98 kB / 1.167 GB, free: 2.016 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/0.7057, allocations: 1.165 MB / 1.168 GB, free: 0.7812 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.273e-05/0.7058, allocations: 0 / 1.168 GB, free: 0.7812 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.768e-05/0.7058, allocations: 47.92 kB / 1.168 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.504e-05/0.7059, allocations: 30 kB / 1.168 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.7071, allocations: 0.9054 MB / 1.169 GB, free: 15.8 MB / 0.9356 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.004929/0.7121, allocations: 5.727 MB / 1.175 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007644/0.7128, allocations: 0.5316 MB / 1.175 GB, free: 9.074 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003927/0.7132, allocations: 322.6 kB / 1.176 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005326/0.7138, allocations: 311.7 kB / 1.176 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.7138, allocations: 42.94 kB / 1.176 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=49): time 1.563e-06/0.7138, allocations: 4 kB / 1.176 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of matching and sorting (n=49): time 0.001305/0.7151, allocations: 0.7987 MB / 1.177 GB, free: 7.539 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.61e-05/0.7152, allocations: 55.84 kB / 1.177 GB, free: 7.473 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007766/0.716, allocations: 0.7471 MB / 1.178 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.716, allocations: 37.7 kB / 1.178 GB, free: 6.676 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003136/0.7163, allocations: 0.5103 MB / 1.178 GB, free: 6.156 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.7165, allocations: 177.5 kB / 1.178 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001829/0.7167, allocations: 142.6 kB / 1.178 GB, free: 5.836 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.7168, allocations: 337.9 kB / 1.179 GB, free: 5.5 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003439/0.7171, allocations: 245.8 kB / 1.179 GB, free: 5.258 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005465/0.7177, allocations: 0.5547 MB / 1.18 GB, free: 4.57 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000881/0.7186, allocations: 0.7918 MB / 1.18 GB, free: 3.668 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.7186, allocations: 8 kB / 1.18 GB, free: 3.66 MB / 0.9356 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001127/0.7197, allocations: 0.8423 MB / 1.181 GB, free: 2.809 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.7197, allocations: 8 kB / 1.181 GB, free: 2.801 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.7198, allocations: 8 kB / 1.181 GB, free: 2.793 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.7198, allocations: 15.94 kB / 1.181 GB, free: 2.777 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004836/0.7203, allocations: 156.5 kB / 1.181 GB, free: 2.625 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/0.7203, allocations: 19.94 kB / 1.181 GB, free: 2.605 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007632/0.7211, allocations: 150.9 kB / 1.181 GB, free: 2.457 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.072e-05/0.7211, allocations: 32 kB / 1.181 GB, free: 2.426 MB / 0.9356 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.000339/0.7215, allocations: 336 kB / 1.182 GB, free: 2.09 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.7216, allocations: 90.97 kB / 1.182 GB, free: 2 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008711/0.7225, allocations: 0.6218 MB / 1.183 GB, free: 1.367 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.7225, allocations: 4 kB / 1.183 GB, free: 1.363 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.7225, allocations: 3.984 kB / 1.183 GB, free: 1.359 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006514/0.7232, allocations: 0.5211 MB / 1.183 GB, free: 0.8281 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002171/0.7253, allocations: 1.671 MB / 1.185 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.7254, allocations: 4 kB / 1.185 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004759/0.7258, allocations: 108.1 kB / 1.185 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.7258, allocations: 8 kB / 1.185 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.792e-05/0.7259, allocations: 19.98 kB / 1.185 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.7259, allocations: 7.984 kB / 1.185 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.7259, allocations: 3.938 kB / 1.185 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.7271, allocations: 1.019 MB / 1.186 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002887/0.7274, allocations: 224 kB / 1.186 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.791e-05/0.7275, allocations: 15.92 kB / 1.186 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000525/0.728, allocations: 59.89 kB / 1.186 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.969e-05/0.7281, allocations: 35.95 kB / 1.186 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.34e-05/0.7281, allocations: 23.98 kB / 1.186 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0005532/0.7287, allocations: 0.5068 MB / 1.187 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7287, allocations: 0 / 1.187 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0006892/0.7294, allocations: 303.2 kB / 1.187 GB, free: 12.7 MB / 0.9512 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.001679/0.7311, allocations: 1.663 MB / 1.189 GB, free: 11 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001006/0.7321, allocations: 0.7132 MB / 1.189 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.7321, allocations: 0 / 1.189 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003346/0.7325, allocations: 284.5 kB / 1.19 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/0.7341, allocations: 443.2 kB / 1.19 GB, free: 9.594 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008708/0.7428, allocations: 7.847 MB / 1.198 GB, free: 1.328 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006116/0.7435, allocations: 1.126 MB / 1.199 GB, free: 180 kB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0007129/0.7442, allocations: 263.2 kB / 1.199 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000421/0.7446, allocations: 367.2 kB / 1.199 GB, free: 15.55 MB / 0.9669 GB Notification: Performance of SimCode: time 2.71e-07/0.7446, allocations: 0 / 1.199 GB, free: 15.55 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.992/2.736, allocations: 22.73 MB / 1.221 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002729/2.737, allocations: 244 kB / 1.222 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.451/6.188, allocations: 0 / 1.222 GB, free: 8.945 MB / 0.9825 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)