Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",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.001069/0.001069, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008421/0.008422, allocations: 170 kB / 16.26 MB, free: 6.613 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.335/1.335, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.391/2.391, allocations: 462.6 MB / 0.7364 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003606, allocations: 9.125 kB / 0.9029 GB, free: 36.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2547, allocations: 159.6 MB / 1.059 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.7836/1.038, allocations: 298.8 MB / 1.351 GB, free: 1.082 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02621/1.065, allocations: 25.73 MB / 1.376 GB, free: 448 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003874/1.069, allocations: 112 kB / 1.376 GB, free: 448 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.004063/1.073, allocations: 1.536 MB / 1.377 GB, free: 416 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01275/1.085, allocations: 5.625 MB / 1.383 GB, free: 108 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006032/1.091, allocations: 2.392 MB / 1.385 GB, free: 15.78 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0127/1.104, allocations: 12.4 MB / 1.397 GB, free: 11.02 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004535/1.109, allocations: 2.981 MB / 1.4 GB, free: 9.375 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01026/1.119, allocations: 3.562 MB / 1.404 GB, free: 7.656 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005841/1.125, allocations: 2.93 MB / 1.406 GB, free: 6.32 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.000785/1.126, allocations: 152.2 kB / 1.407 GB, free: 6.32 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009698/1.135, allocations: 5.282 MB / 1.412 GB, free: 3.883 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.00208/1.137, allocations: 1.417 MB / 1.413 GB, free: 3.039 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0038/1.141, allocations: 1.888 MB / 1.415 GB, free: 1.91 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01098/1.152, allocations: 6.737 MB / 1.422 GB, free: 13.97 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/1.152, allocations: 0 / 1.422 GB, free: 13.97 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.768e-06/1.152, allocations: 0 / 1.422 GB, free: 13.97 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0001568/1.152, allocations: 7.125 kB / 1.422 GB, free: 13.96 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 0.006437/1.159, allocations: 3.433 MB / 1.425 GB, free: 10.86 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/1.159, allocations: 15.91 kB / 1.425 GB, free: 10.84 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005546/1.159, allocations: 391.7 kB / 1.425 GB, free: 10.45 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005326/1.165, allocations: 0.9467 MB / 1.426 GB, free: 9.508 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003625/1.168, allocations: 2.258 MB / 1.428 GB, free: 7.227 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002598/1.169, allocations: 274.9 kB / 1.429 GB, free: 6.945 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000402/1.169, allocations: 297.6 kB / 1.429 GB, free: 6.656 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005073/1.174, allocations: 3.364 MB / 1.432 GB, free: 3.211 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.996e-05/1.174, allocations: 0 / 1.432 GB, free: 3.211 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002456/1.175, allocations: 116 kB / 1.432 GB, free: 3.098 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001164/1.175, allocations: 117.2 kB / 1.433 GB, free: 2.98 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004246/1.179, allocations: 2.808 MB / 1.435 GB, free: 164 kB / 1.029 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.01378/1.193, allocations: 13.25 MB / 1.448 GB, free: 1.852 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002383/1.195, allocations: 1.7 MB / 1.45 GB, free: 148 kB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001498/1.197, allocations: 1.102 MB / 1.451 GB, free: 15.04 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004403/1.197, allocations: 330.8 kB / 1.451 GB, free: 14.67 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/1.197, allocations: 60.55 kB / 1.451 GB, free: 14.61 MB / 1.061 GB Notification: Performance of pre-optimization done (n=182): time 3.116e-06/1.197, allocations: 0 / 1.451 GB, free: 14.61 MB / 1.061 GB Notification: Performance of matching and sorting (n=182): time 0.004542/1.202, allocations: 2.735 MB / 1.454 GB, free: 11.87 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/1.202, allocations: 73.34 kB / 1.454 GB, free: 11.78 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002307/1.204, allocations: 1.998 MB / 1.456 GB, free: 9.766 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0001491/1.204, allocations: 69.7 kB / 1.456 GB, free: 9.691 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009802/1.205, allocations: 1.406 MB / 1.457 GB, free: 8.273 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005354/1.206, allocations: 0.6423 MB / 1.458 GB, free: 7.637 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002105/1.206, allocations: 169.6 kB / 1.458 GB, free: 7.465 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001026/1.206, allocations: 305.1 kB / 1.459 GB, free: 7.164 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/1.207, allocations: 0.8004 MB / 1.459 GB, free: 6.359 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001654/1.209, allocations: 1.41 MB / 1.461 GB, free: 4.695 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002873/1.212, allocations: 2.264 MB / 1.463 GB, free: 2.254 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/1.212, allocations: 4 kB / 1.463 GB, free: 2.25 MB / 1.061 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003708/1.216, allocations: 2.502 MB / 1.465 GB, free: 15.74 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002926/1.216, allocations: 497 kB / 1.466 GB, free: 15.07 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.881e-05/1.216, allocations: 16 kB / 1.466 GB, free: 15.05 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.845e-05/1.216, allocations: 20 kB / 1.466 GB, free: 15.03 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002455/1.218, allocations: 0.5578 MB / 1.466 GB, free: 14.47 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002086/1.22, allocations: 4.157 MB / 1.47 GB, free: 10.15 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002949/1.223, allocations: 394 kB / 1.471 GB, free: 9.766 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001483/1.224, allocations: 95.92 kB / 1.471 GB, free: 9.672 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 9.528e-06/1.224, allocations: 6.344 kB / 1.471 GB, free: 9.668 MB / 1.076 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003258/1.227, allocations: 2.226 MB / 1.473 GB, free: 7.441 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/1.227, allocations: 19.94 kB / 1.473 GB, free: 7.422 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/1.227, allocations: 24 kB / 1.473 GB, free: 7.398 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001674/1.229, allocations: 475.3 kB / 1.474 GB, free: 6.934 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.934e-05/1.229, allocations: 35.86 kB / 1.474 GB, free: 6.898 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002776/1.231, allocations: 378.2 kB / 1.474 GB, free: 6.527 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/1.232, allocations: 83.98 kB / 1.474 GB, free: 6.445 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (257): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001401/1.233, allocations: 0.8562 MB / 1.475 GB, free: 5.578 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003706/1.233, allocations: 272.7 kB / 1.475 GB, free: 5.309 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003274/1.237, allocations: 2.115 MB / 1.477 GB, free: 3.18 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.5e-05/1.237, allocations: 20 kB / 1.477 GB, free: 3.16 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/1.237, allocations: 0 / 1.477 GB, free: 3.16 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002533/1.239, allocations: 1.898 MB / 1.479 GB, free: 1.211 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007394/1.247, allocations: 5.182 MB / 1.484 GB, free: 11.98 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/1.247, allocations: 4 kB / 1.484 GB, free: 11.98 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002235/1.249, allocations: 0.4958 MB / 1.485 GB, free: 11.48 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.139e-05/1.249, allocations: 15.94 kB / 1.485 GB, free: 11.46 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/1.249, allocations: 47.98 kB / 1.485 GB, free: 11.42 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/1.251, allocations: 4.122 MB / 1.489 GB, free: 7.133 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.251, allocations: 4.312 kB / 1.489 GB, free: 7.129 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00424/1.255, allocations: 3.242 MB / 1.492 GB, free: 3.832 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/1.256, allocations: 0.5716 MB / 1.492 GB, free: 3.238 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002744/1.256, allocations: 43.98 kB / 1.492 GB, free: 3.195 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002066/1.258, allocations: 248.1 kB / 1.493 GB, free: 2.953 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/1.259, allocations: 117.7 kB / 1.493 GB, free: 2.84 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/1.259, allocations: 75.91 kB / 1.493 GB, free: 2.766 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.001666/1.26, allocations: 1.334 MB / 1.494 GB, free: 1.422 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.5e-07/1.26, allocations: 0 / 1.494 GB, free: 1.422 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.003332/1.264, allocations: 1.714 MB / 1.496 GB, free: 15.7 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1],vol1.dynBal.medium.Xi[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mC[1],vol2.dynBal.medium.Xi[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mC[1],vol3.dynBal.medium.Xi[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mC[1],vol4.dynBal.medium.Xi[1],vol4.dynBal.U,vol4.dynBal.m,vol4.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 (182): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005006/1.269, allocations: 4.025 MB / 1.5 GB, free: 11.62 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.005543/1.274, allocations: 3.323 MB / 1.503 GB, free: 8.312 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/1.274, allocations: 4 kB / 1.503 GB, free: 8.309 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0016/1.276, allocations: 1.036 MB / 1.504 GB, free: 7.277 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008506/1.285, allocations: 1.595 MB / 1.506 GB, free: 5.691 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03375/1.318, allocations: 24.77 MB / 1.53 GB, free: 10.98 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001748/1.32, allocations: 2.19 MB / 1.532 GB, free: 8.762 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.003484/1.324, allocations: 1.096 MB / 1.533 GB, free: 7.66 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001499/1.325, allocations: 1.257 MB / 1.534 GB, free: 6.402 MB / 1.139 GB Notification: Performance of SimCode: time 7.41e-07/1.325, allocations: 4 kB / 1.534 GB, free: 6.398 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9953/2.32, allocations: 73.67 MB / 1.606 GB, free: 13.58 MB / 1.217 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002709/2.321, allocations: 295.9 kB / 1.606 GB, free: 13.19 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.115/6.435, allocations: 0 / 1.606 GB, free: 13.19 MB / 1.217 GB (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)