Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.426/1.426, allocations: 288.4 MB / 303.6 MB, free: 8.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008674/0.0008675, allocations: 174.2 kB / 372.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.142/1.142, allocations: 205.4 MB / 0.631 GB, free: 9.879 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006834/0.0006835, allocations: 103.4 kB / 0.7444 GB, free: 5.777 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003285/0.0003285, allocations: 16.16 kB / 0.8676 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1523, allocations: 115.3 MB / 0.9802 GB, free: 27.23 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.5444/0.6967, allocations: 278.7 MB / 1.252 GB, free: 3.672 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.02718/0.7239, allocations: 23.98 MB / 1.276 GB, free: 11.65 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002843/0.7268, allocations: 95.31 kB / 1.276 GB, free: 11.56 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.003267/0.7301, allocations: 1.387 MB / 1.277 GB, free: 10.16 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.01116/0.7413, allocations: 5.193 MB / 1.282 GB, free: 4.953 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.004938/0.7462, allocations: 2.011 MB / 1.284 GB, free: 2.961 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.01008/0.7563, allocations: 10.43 MB / 1.294 GB, free: 8.504 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003942/0.7603, allocations: 2.971 MB / 1.297 GB, free: 5.461 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006494/0.7668, allocations: 3.323 MB / 1.301 GB, free: 2.125 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005077/0.7719, allocations: 2.823 MB / 1.303 GB, free: 15.29 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 0.0008268/0.7727, allocations: 152 kB / 1.304 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009209/0.7819, allocations: 5.198 MB / 1.309 GB, free: 9.934 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.002032/0.784, allocations: 1.433 MB / 1.31 GB, free: 8.496 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.003601/0.7876, allocations: 1.806 MB / 1.312 GB, free: 6.676 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.00622/0.7938, allocations: 4.996 MB / 1.317 GB, free: 1.668 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.7938, allocations: 0 / 1.317 GB, free: 1.668 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.453e-06/0.7938, allocations: 0 / 1.317 GB, free: 1.668 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 0.0001518/0.794, allocations: 0 / 1.317 GB, free: 1.668 MB / 0.8386 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.005835/0.7998, allocations: 3.433 MB / 1.32 GB, free: 14.17 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.7999, allocations: 12.03 kB / 1.32 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007289/0.8006, allocations: 383.7 kB / 1.32 GB, free: 13.77 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004899/0.8055, allocations: 0.94 MB / 1.321 GB, free: 12.83 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004042/0.8096, allocations: 2.447 MB / 1.324 GB, free: 10.3 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002013/0.8098, allocations: 281.3 kB / 1.324 GB, free: 10.02 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003421/0.8102, allocations: 299.9 kB / 1.324 GB, free: 9.723 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004774/0.8149, allocations: 3.339 MB / 1.327 GB, free: 6.297 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.049e-05/0.815, allocations: 7.938 kB / 1.328 GB, free: 6.289 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002271/0.8152, allocations: 116 kB / 1.328 GB, free: 6.176 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.299e-05/0.8153, allocations: 113.3 kB / 1.328 GB, free: 6.062 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003858/0.8192, allocations: 2.792 MB / 1.33 GB, free: 3.258 MB / 0.8542 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.0125/0.8317, allocations: 13.25 MB / 1.343 GB, free: 4.816 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002282/0.834, allocations: 1.868 MB / 1.345 GB, free: 2.949 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001332/0.8354, allocations: 1.118 MB / 1.346 GB, free: 1.832 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004018/0.8358, allocations: 325.2 kB / 1.347 GB, free: 1.457 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4e-05/0.8358, allocations: 60.56 kB / 1.347 GB, free: 1.391 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=186): time 3.767e-06/0.8358, allocations: 0 / 1.347 GB, free: 1.391 MB / 0.8698 GB Notification: Performance of matching and sorting (n=186): time 0.004111/0.8399, allocations: 2.763 MB / 1.349 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.84, allocations: 77.34 kB / 1.349 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002133/0.8421, allocations: 1.964 MB / 1.351 GB, free: 12.55 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001286/0.8423, allocations: 65.7 kB / 1.351 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009008/0.8432, allocations: 1.391 MB / 1.353 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004863/0.8437, allocations: 0.6585 MB / 1.353 GB, free: 10.4 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.306e-05/0.8438, allocations: 48 kB / 1.353 GB, free: 10.36 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.8439, allocations: 385.9 kB / 1.354 GB, free: 9.973 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/0.8451, allocations: 0.7965 MB / 1.355 GB, free: 9.172 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001533/0.8466, allocations: 1.466 MB / 1.356 GB, free: 7.43 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002679/0.8493, allocations: 2.238 MB / 1.358 GB, free: 5.02 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.8493, allocations: 8 kB / 1.358 GB, free: 5.012 MB / 0.8855 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.003307/0.8527, allocations: 2.486 MB / 1.361 GB, free: 2.516 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002346/0.8529, allocations: 475.7 kB / 1.361 GB, free: 1.875 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.8529, allocations: 12 kB / 1.361 GB, free: 1.863 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/0.853, allocations: 20 kB / 1.361 GB, free: 1.844 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002337/0.8553, allocations: 0.5656 MB / 1.362 GB, free: 1.277 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001818/0.8571, allocations: 4.161 MB / 1.366 GB, free: 12.95 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002597/0.8597, allocations: 385.2 kB / 1.366 GB, free: 12.58 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.8599, allocations: 87.98 kB / 1.366 GB, free: 12.49 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 7.093e-06/0.8599, allocations: 4 kB / 1.366 GB, free: 12.49 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003022/0.8629, allocations: 2.23 MB / 1.368 GB, free: 10.26 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.863, allocations: 12 kB / 1.368 GB, free: 10.25 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.863, allocations: 24 kB / 1.368 GB, free: 10.22 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001566/0.8646, allocations: 483.7 kB / 1.369 GB, free: 9.75 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.795e-05/0.8646, allocations: 31.94 kB / 1.369 GB, free: 9.719 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002274/0.8669, allocations: 356.8 kB / 1.369 GB, free: 9.371 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001323/0.867, allocations: 83.98 kB / 1.369 GB, free: 9.289 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (261): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00124/0.8683, allocations: 0.8712 MB / 1.37 GB, free: 8.406 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003117/0.8686, allocations: 268.8 kB / 1.37 GB, free: 8.141 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002956/0.8715, allocations: 2.134 MB / 1.373 GB, free: 5.996 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.8716, allocations: 20 kB / 1.373 GB, free: 5.977 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.8716, allocations: 4 kB / 1.373 GB, free: 5.973 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00236/0.8739, allocations: 1.914 MB / 1.374 GB, free: 4.008 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006988/0.8809, allocations: 5.208 MB / 1.38 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.862e-06/0.881, allocations: 4 kB / 1.38 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002162/0.8831, allocations: 0.5149 MB / 1.38 GB, free: 14.18 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-05/0.8832, allocations: 11.98 kB / 1.38 GB, free: 14.17 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001114/0.8833, allocations: 56.02 kB / 1.38 GB, free: 14.11 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001645/0.8849, allocations: 4.13 MB / 1.384 GB, free: 9.82 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.8849, allocations: 0 / 1.384 GB, free: 9.82 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004118/0.8891, allocations: 3.414 MB / 1.387 GB, free: 6.352 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009117/0.89, allocations: 0.5715 MB / 1.388 GB, free: 5.758 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002457/0.8902, allocations: 47.92 kB / 1.388 GB, free: 5.711 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001884/0.8921, allocations: 246.3 kB / 1.388 GB, free: 5.473 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.8923, allocations: 113.8 kB / 1.388 GB, free: 5.363 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/0.8925, allocations: 75.95 kB / 1.388 GB, free: 5.289 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.00154/0.894, allocations: 1.298 MB / 1.39 GB, free: 3.98 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.7e-07/0.894, allocations: 0 / 1.39 GB, free: 3.98 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.002979/0.897, allocations: 1.729 MB / 1.391 GB, free: 2.246 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mXi[1],vol1.dynBal.mC[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mXi[1],vol2.dynBal.mC[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mXi[1],vol3.dynBal.mC[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mXi[1],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 (186): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004776/0.9018, allocations: 4.238 MB / 1.396 GB, free: 13.95 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.005113/0.9069, allocations: 3.337 MB / 1.399 GB, free: 10.62 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.9069, allocations: 3.938 kB / 1.399 GB, free: 10.62 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.9084, allocations: 1.046 MB / 1.4 GB, free: 9.574 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007181/0.9156, allocations: 1.583 MB / 1.401 GB, free: 8 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0247/0.9404, allocations: 19.16 MB / 1.42 GB, free: 3.414 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001568/0.9419, allocations: 2.185 MB / 1.422 GB, free: 1.195 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.003367/0.9453, allocations: 1.107 MB / 1.423 GB, free: 84 kB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001466/0.9468, allocations: 1.261 MB / 1.425 GB, free: 14.82 MB / 0.9636 GB Notification: Performance of SimCode: time 1.032e-06/0.9468, allocations: 0 / 1.425 GB, free: 14.82 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.313/2.26, allocations: 79.01 MB / 1.502 GB, free: 331.6 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000171/2.26, allocations: 260.5 kB / 1.502 GB, free: 331.2 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.208/6.468, allocations: 4 kB / 1.502 GB, free: 331.2 MB / 0.9636 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)