Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_latest_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.001578/0.001578, allocations: 108 kB / 15.6 MB, free: 132 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.001887/0.001887, allocations: 193.3 kB / 16.53 MB, free: 6.391 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.384/1.384, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.87/2.87, allocations: 461.9 MB / 0.7346 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001519, allocations: 67.23 kB / 0.8992 GB, free: 36.92 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3401, allocations: 157.4 MB / 1.053 GB, free: 8.285 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2065/0.5467, allocations: 195.1 MB / 1.243 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6748/1.222, allocations: 14.31 MB / 1.257 GB, free: 2.246 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001821/1.223, allocations: 36.66 kB / 1.257 GB, free: 2.246 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001649/1.225, allocations: 0.4942 MB / 1.258 GB, free: 2.246 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00521/1.23, allocations: 1.882 MB / 1.26 GB, free: 2.203 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002479/1.233, allocations: 0.8595 MB / 1.261 GB, free: 2.188 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004124/1.237, allocations: 2.581 MB / 1.263 GB, free: 2.184 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001684/1.239, allocations: 1.105 MB / 1.264 GB, free: 2.113 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004284/1.243, allocations: 1.602 MB / 1.266 GB, free: 2.09 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001717/1.245, allocations: 0.9154 MB / 1.267 GB, free: 2.09 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001684/1.245, allocations: 105.6 kB / 1.267 GB, free: 2.09 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002446/1.247, allocations: 1.097 MB / 1.268 GB, free: 2.078 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006528/1.248, allocations: 0.4949 MB / 1.268 GB, free: 2.078 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001073/1.249, allocations: 0.6373 MB / 1.269 GB, free: 2.078 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003766/1.253, allocations: 1.882 MB / 1.271 GB, free: 1.973 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/1.253, allocations: 1.625 kB / 1.271 GB, free: 1.973 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.673e-06/1.253, allocations: 1 kB / 1.271 GB, free: 1.973 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.231e-05/1.253, allocations: 0 / 1.271 GB, free: 1.973 MB / 0.9981 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.002619/1.256, allocations: 1.447 MB / 1.272 GB, free: 17.2 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/1.256, allocations: 10.06 kB / 1.272 GB, free: 17.2 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001986/1.256, allocations: 149.1 kB / 1.272 GB, free: 17.16 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00144/1.257, allocations: 254.2 kB / 1.273 GB, free: 17.1 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/1.259, allocations: 0.7556 MB / 1.273 GB, free: 16.79 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.648e-05/1.259, allocations: 72.41 kB / 1.273 GB, free: 16.78 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001575/1.259, allocations: 90.78 kB / 1.273 GB, free: 16.78 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002103/1.261, allocations: 1.171 MB / 1.275 GB, free: 16.56 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/1.261, allocations: 5.969 kB / 1.275 GB, free: 16.56 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.359e-05/1.261, allocations: 40.48 kB / 1.275 GB, free: 16.55 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.439e-05/1.261, allocations: 37.28 kB / 1.275 GB, free: 16.55 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001835/1.263, allocations: 0.9027 MB / 1.276 GB, free: 16.55 MB / 1.014 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.006124/1.269, allocations: 5.785 MB / 1.281 GB, free: 12.77 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008163/1.27, allocations: 0.531 MB / 1.282 GB, free: 12.74 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003976/1.27, allocations: 316.4 kB / 1.282 GB, free: 12.73 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005835/1.271, allocations: 313.2 kB / 1.282 GB, free: 12.45 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/1.271, allocations: 37.5 kB / 1.282 GB, free: 12.41 MB / 1.014 GB Notification: Performance of pre-optimization done (n=49): time 2.535e-06/1.271, allocations: 0.9688 kB / 1.282 GB, free: 12.41 MB / 1.014 GB Notification: Performance of matching and sorting (n=49): time 0.001493/1.272, allocations: 0.8023 MB / 1.283 GB, free: 12.32 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/1.273, allocations: 57.22 kB / 1.283 GB, free: 12.26 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000885/1.273, allocations: 0.7509 MB / 1.284 GB, free: 12.12 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 5.323e-05/1.273, allocations: 37.36 kB / 1.284 GB, free: 12.09 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003057/1.274, allocations: 0.5118 MB / 1.284 GB, free: 11.84 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/1.274, allocations: 170.8 kB / 1.285 GB, free: 11.74 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002054/1.274, allocations: 148.4 kB / 1.285 GB, free: 11.71 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001436/1.274, allocations: 334.7 kB / 1.285 GB, free: 11.41 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003702/1.275, allocations: 245.5 kB / 1.285 GB, free: 11.41 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006258/1.275, allocations: 0.5538 MB / 1.286 GB, free: 11.06 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/1.276, allocations: 0.8106 MB / 1.287 GB, free: 10.77 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/1.276, allocations: 2.844 kB / 1.287 GB, free: 10.77 MB / 1.014 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001351/1.278, allocations: 0.8391 MB / 1.288 GB, free: 10.68 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/1.278, allocations: 9.312 kB / 1.288 GB, free: 10.68 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/1.278, allocations: 8.5 kB / 1.288 GB, free: 10.68 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.052e-05/1.278, allocations: 13.98 kB / 1.288 GB, free: 10.68 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005485/1.278, allocations: 156.9 kB / 1.288 GB, free: 10.68 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.297e-05/1.278, allocations: 19.58 kB / 1.288 GB, free: 10.68 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008072/1.279, allocations: 90.17 kB / 1.288 GB, free: 10.64 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.214e-05/1.279, allocations: 34.77 kB / 1.288 GB, free: 10.64 MB / 1.014 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.0004509/1.28, allocations: 335.1 kB / 1.288 GB, free: 10.52 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001388/1.28, allocations: 84.69 kB / 1.288 GB, free: 10.47 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009279/1.281, allocations: 0.617 MB / 1.289 GB, free: 10.42 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/1.281, allocations: 5.031 kB / 1.289 GB, free: 10.42 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/1.281, allocations: 0 / 1.289 GB, free: 10.42 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006925/1.282, allocations: 0.5218 MB / 1.289 GB, free: 10.35 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002505/1.284, allocations: 1.67 MB / 1.291 GB, free: 9.969 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/1.284, allocations: 3.094 kB / 1.291 GB, free: 9.969 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005105/1.285, allocations: 112.7 kB / 1.291 GB, free: 9.969 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.358e-06/1.285, allocations: 3.969 kB / 1.291 GB, free: 9.969 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.458e-05/1.285, allocations: 23.33 kB / 1.291 GB, free: 9.961 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/1.285, allocations: 3.281 kB / 1.291 GB, free: 9.961 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.285, allocations: 7.766 kB / 1.291 GB, free: 9.957 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/1.286, allocations: 1.019 MB / 1.292 GB, free: 9.707 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003788/1.287, allocations: 223.8 kB / 1.292 GB, free: 9.566 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/1.287, allocations: 16.75 kB / 1.292 GB, free: 9.562 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000448/1.287, allocations: 22.91 kB / 1.292 GB, free: 9.559 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.417e-05/1.287, allocations: 35.44 kB / 1.292 GB, free: 9.559 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-05/1.287, allocations: 20.06 kB / 1.292 GB, free: 9.559 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0007012/1.288, allocations: 0.511 MB / 1.293 GB, free: 9.465 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.443e-06/1.288, allocations: 1.25 kB / 1.293 GB, free: 9.465 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001194/1.289, allocations: 298.4 kB / 1.293 GB, free: 9.426 MB / 1.014 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.002191/1.291, allocations: 1.667 MB / 1.295 GB, free: 8.641 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001326/1.293, allocations: 0.709 MB / 1.296 GB, free: 8.629 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/1.293, allocations: 1.156 kB / 1.296 GB, free: 8.629 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000379/1.293, allocations: 277.1 kB / 1.296 GB, free: 8.625 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/1.295, allocations: 439.2 kB / 1.296 GB, free: 8.574 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009543/1.305, allocations: 7.504 MB / 1.304 GB, free: 5.484 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007238/1.305, allocations: 1.123 MB / 1.305 GB, free: 4.77 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0009448/1.306, allocations: 269.2 kB / 1.305 GB, free: 4.723 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003909/1.307, allocations: 358.9 kB / 1.305 GB, free: 4.715 MB / 1.014 GB Notification: Performance of SimCode: time 1.182e-06/1.307, allocations: 0 / 1.305 GB, free: 4.715 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0547/1.361, allocations: 22.88 MB / 1.328 GB, free: 1.152 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.994/9.355, allocations: 17.3 kB / 1.328 GB, free: 1.141 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)