Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_maint_7_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 7.0.3-maint.7.0.x/package.mo): time 1.463/1.463, allocations: 251.9 MB / 266.9 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 181.5 kB / 326.5 MB, free: 2.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.808/1.808, allocations: 205.4 MB / 0.5775 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000912/0.0009121, allocations: 86.38 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003421/0.0003423, allocations: 8.969 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2183, allocations: 106.3 MB / 0.9001 GB, free: 63.85 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.7362/0.9545, allocations: 247.8 MB / 1.142 GB, free: 2.488 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.03549/0.99, allocations: 23.95 MB / 1.166 GB, free: 212 kB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006026/0.9961, allocations: 90.19 kB / 1.166 GB, free: 212 kB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.007834/1.004, allocations: 1.767 MB / 1.167 GB, free: 15.58 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.02096/1.025, allocations: 5.8 MB / 1.173 GB, free: 12.52 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.009944/1.035, allocations: 2.829 MB / 1.176 GB, free: 11.4 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.01055/1.046, allocations: 5.226 MB / 1.181 GB, free: 8.539 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004607/1.05, allocations: 2.623 MB / 1.183 GB, free: 7.062 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008122/1.058, allocations: 2.693 MB / 1.186 GB, free: 5.836 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004847/1.063, allocations: 1.923 MB / 1.188 GB, free: 5.086 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 0.001133/1.064, allocations: 151.5 kB / 1.188 GB, free: 5.086 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007112/1.072, allocations: 2.088 MB / 1.19 GB, free: 4.316 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 0.002113/1.074, allocations: 1.345 MB / 1.191 GB, free: 3.648 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.001887/1.076, allocations: 0.771 MB / 1.192 GB, free: 3.242 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.007622/1.083, allocations: 4.583 MB / 1.197 GB, free: 14.65 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/1.083, allocations: 0 / 1.197 GB, free: 14.65 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.374e-06/1.083, allocations: 0 / 1.197 GB, free: 14.65 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.0001806/1.083, allocations: 4 kB / 1.197 GB, free: 14.65 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 703 * Number of variables: 703 Notification: Performance of Generate backend data structure: time 0.006539/1.09, allocations: 3.418 MB / 1.2 GB, free: 11.18 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/1.09, allocations: 8.031 kB / 1.2 GB, free: 11.17 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008552/1.091, allocations: 395.9 kB / 1.2 GB, free: 10.77 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005471/1.096, allocations: 0.9438 MB / 1.201 GB, free: 9.824 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005503/1.102, allocations: 2.216 MB / 1.203 GB, free: 7.551 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002828/1.102, allocations: 277.5 kB / 1.204 GB, free: 7.266 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005697/1.103, allocations: 300 kB / 1.204 GB, free: 6.973 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006175/1.109, allocations: 3.368 MB / 1.207 GB, free: 3.52 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.156e-05/1.109, allocations: 11.84 kB / 1.207 GB, free: 3.508 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002847/1.109, allocations: 116 kB / 1.207 GB, free: 3.395 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001203/1.11, allocations: 113.4 kB / 1.208 GB, free: 3.281 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005099/1.115, allocations: 2.808 MB / 1.21 GB, free: 472 kB / 0.7292 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.01864/1.133, allocations: 13.28 MB / 1.223 GB, free: 1.988 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002605/1.136, allocations: 1.826 MB / 1.225 GB, free: 164 kB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001839/1.136, allocations: 57.94 kB / 1.225 GB, free: 108 kB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.625e-05/1.136, allocations: 68.5 kB / 1.225 GB, free: 32 kB / 0.7448 GB Notification: Performance of pre-optimization done (n=186): time 4.959e-06/1.136, allocations: 7.984 kB / 1.225 GB, free: 24 kB / 0.7448 GB Notification: Performance of matching and sorting (n=186): time 0.005106/1.141, allocations: 2.746 MB / 1.228 GB, free: 13.27 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/1.141, allocations: 73.41 kB / 1.228 GB, free: 13.19 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0028/1.144, allocations: 1.969 MB / 1.23 GB, free: 11.2 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0003657/1.145, allocations: 69.7 kB / 1.23 GB, free: 11.12 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.001206/1.146, allocations: 1.402 MB / 1.231 GB, free: 9.707 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008338/1.147, allocations: 0.6507 MB / 1.232 GB, free: 9.047 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.761e-05/1.147, allocations: 40 kB / 1.232 GB, free: 9.008 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.000193/1.147, allocations: 393.9 kB / 1.232 GB, free: 8.617 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/1.148, allocations: 0.7926 MB / 1.233 GB, free: 7.82 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001756/1.15, allocations: 1.416 MB / 1.234 GB, free: 6.137 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/1.152, allocations: 1.04 MB / 1.235 GB, free: 5.094 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/1.152, allocations: 8 kB / 1.236 GB, free: 5.086 MB / 0.7605 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.004225/1.156, allocations: 2.47 MB / 1.238 GB, free: 2.605 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.002058/1.158, allocations: 5.225 MB / 1.243 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.955e-05/1.158, allocations: 16 kB / 1.243 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.231e-05/1.158, allocations: 24 kB / 1.243 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003154/1.161, allocations: 0.5616 MB / 1.244 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002573/1.164, allocations: 4.157 MB / 1.248 GB, free: 7.961 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003798/1.168, allocations: 389.5 kB / 1.248 GB, free: 7.582 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003809/1.168, allocations: 83.98 kB / 1.248 GB, free: 7.5 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/1.168, allocations: 4 kB / 1.248 GB, free: 7.496 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003733/1.172, allocations: 2.21 MB / 1.25 GB, free: 5.285 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.571e-05/1.172, allocations: 12.88 kB / 1.25 GB, free: 5.273 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.18e-05/1.172, allocations: 24 kB / 1.25 GB, free: 5.25 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001847/1.174, allocations: 487.3 kB / 1.251 GB, free: 4.773 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.341e-05/1.174, allocations: 27.94 kB / 1.251 GB, free: 4.746 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003688/1.178, allocations: 367.6 kB / 1.251 GB, free: 4.391 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002745/1.178, allocations: 83.98 kB / 1.251 GB, free: 4.309 MB / 0.7761 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.001954/1.18, allocations: 0.8686 MB / 1.252 GB, free: 3.43 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000842/1.181, allocations: 276.8 kB / 1.252 GB, free: 3.156 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003688/1.185, allocations: 2.119 MB / 1.254 GB, free: 1.02 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.928e-05/1.185, allocations: 23.94 kB / 1.254 GB, free: 0.9961 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/1.185, allocations: 3.938 kB / 1.254 GB, free: 0.9922 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002561/1.187, allocations: 1.89 MB / 1.256 GB, free: 15.05 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009447/1.197, allocations: 5.212 MB / 1.261 GB, free: 9.738 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/1.197, allocations: 0 / 1.261 GB, free: 9.738 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002314/1.199, allocations: 0.5115 MB / 1.262 GB, free: 9.227 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.925e-05/1.199, allocations: 12 kB / 1.262 GB, free: 9.215 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001418/1.199, allocations: 47.98 kB / 1.262 GB, free: 9.168 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002068/1.201, allocations: 4.13 MB / 1.266 GB, free: 4.875 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/1.201, allocations: 8 kB / 1.266 GB, free: 4.867 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005274/1.207, allocations: 3.614 MB / 1.27 GB, free: 1.125 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002117/1.209, allocations: 0.595 MB / 1.27 GB, free: 0.5078 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006035/1.209, allocations: 43.98 kB / 1.27 GB, free: 476 kB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002944/1.212, allocations: 261.3 kB / 1.27 GB, free: 216 kB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002959/1.213, allocations: 121.9 kB / 1.27 GB, free: 92 kB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001876/1.213, allocations: 75.95 kB / 1.271 GB, free: 16 kB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.002278/1.215, allocations: 1.314 MB / 1.272 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5.11e-07/1.215, allocations: 0 / 1.272 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.005342/1.22, allocations: 1.741 MB / 1.274 GB, free: 12.95 MB / 0.8073 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.007094/1.228, allocations: 5.196 MB / 1.279 GB, free: 7.66 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.00682/1.234, allocations: 3.302 MB / 1.282 GB, free: 4.363 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/1.235, allocations: 4.875 kB / 1.282 GB, free: 4.359 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.001925/1.236, allocations: 1.038 MB / 1.283 GB, free: 3.324 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008433/1.245, allocations: 1.586 MB / 1.284 GB, free: 1.75 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02187/1.267, allocations: 18.74 MB / 1.303 GB, free: 14.24 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00233/1.269, allocations: 2.256 MB / 1.305 GB, free: 11.96 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.00459/1.274, allocations: 1.107 MB / 1.306 GB, free: 10.84 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002191/1.276, allocations: 1.269 MB / 1.307 GB, free: 9.578 MB / 0.8386 GB Notification: Performance of SimCode: time 8.82e-07/1.276, allocations: 0 / 1.307 GB, free: 9.578 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1275/1.404, allocations: 76.82 MB / 1.382 GB, free: 13.36 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002147/1.404, allocations: 267.1 kB / 1.383 GB, free: 13 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.339/5.743, allocations: 4 kB / 1.383 GB, free: 12.99 MB / 0.9167 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)