Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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: translateModel(BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 111.6 kB / 16.42 MB, free: 6.488 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.001196/0.001196, allocations: 185.7 kB / 17.35 MB, free: 5.758 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.271/1.271, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002095/0.002095, allocations: 284.5 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9135/0.9135, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 95.86 kB / 0.6821 GB, free: 6.969 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3902/0.3919, allocations: 86.98 MB / 0.7671 GB, free: 4.066 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.6348/1.027, allocations: 305.1 MB / 1.065 GB, free: 212 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.03033/1.057, allocations: 25.85 MB / 1.09 GB, free: 9.203 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004163/1.061, allocations: 126.1 kB / 1.09 GB, free: 9.203 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.004259/1.066, allocations: 1.787 MB / 1.092 GB, free: 8.402 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.01367/1.079, allocations: 5.974 MB / 1.098 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.006379/1.086, allocations: 2.632 MB / 1.101 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.01077/1.097, allocations: 8.916 MB / 1.109 GB, free: 10.77 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004753/1.101, allocations: 3.624 MB / 1.113 GB, free: 7.066 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01055/1.112, allocations: 4.199 MB / 1.117 GB, free: 2.891 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005641/1.118, allocations: 2.959 MB / 1.12 GB, free: 15.94 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0013/1.119, allocations: 360 kB / 1.12 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0101/1.129, allocations: 4.607 MB / 1.125 GB, free: 10.97 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002666/1.132, allocations: 1.644 MB / 1.126 GB, free: 9.32 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.00464/1.136, allocations: 2.135 MB / 1.128 GB, free: 7.176 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.01084/1.147, allocations: 6.754 MB / 1.135 GB, free: 412 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 9.948e-06/1.147, allocations: 4 kB / 1.135 GB, free: 408 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.373e-06/1.147, allocations: 0 / 1.135 GB, free: 408 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.202e-05/1.147, allocations: 0 / 1.135 GB, free: 408 kB / 0.7637 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.005952/1.153, allocations: 4.168 MB / 1.139 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/1.153, allocations: 8.031 kB / 1.139 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005472/1.159, allocations: 0.9361 MB / 1.14 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003636/1.162, allocations: 2.404 MB / 1.142 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000211/1.163, allocations: 273.3 kB / 1.143 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003714/1.163, allocations: 295.9 kB / 1.143 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005078/1.168, allocations: 3.363 MB / 1.146 GB, free: 4.711 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.97e-05/1.168, allocations: 7.906 kB / 1.146 GB, free: 4.703 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002424/1.168, allocations: 116 kB / 1.146 GB, free: 4.59 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001038/1.168, allocations: 109.3 kB / 1.146 GB, free: 4.48 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004224/1.173, allocations: 2.8 MB / 1.149 GB, free: 1.668 MB / 0.7794 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.01408/1.187, allocations: 13.25 MB / 1.162 GB, free: 3.227 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002327/1.189, allocations: 1.697 MB / 1.164 GB, free: 1.531 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001418/1.191, allocations: 1.106 MB / 1.165 GB, free: 444 kB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004438/1.191, allocations: 329.2 kB / 1.165 GB, free: 56 kB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.27e-05/1.191, allocations: 56.56 kB / 1.165 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=182): time 4.288e-06/1.191, allocations: 4 kB / 1.165 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of matching and sorting (n=182): time 0.004747/1.196, allocations: 2.723 MB / 1.168 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/1.196, allocations: 73.39 kB / 1.168 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002302/1.198, allocations: 1.998 MB / 1.17 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001546/1.198, allocations: 69.64 kB / 1.17 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009117/1.199, allocations: 1.414 MB / 1.171 GB, free: 9.656 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005447/1.2, allocations: 0.6314 MB / 1.172 GB, free: 9.016 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005081/1.2, allocations: 391.3 kB / 1.172 GB, free: 8.625 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.445e-05/1.2, allocations: 305.1 kB / 1.172 GB, free: 8.324 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/1.202, allocations: 0.8091 MB / 1.173 GB, free: 7.504 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001584/1.203, allocations: 1.406 MB / 1.175 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002806/1.206, allocations: 2.26 MB / 1.177 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/1.206, allocations: 4 kB / 1.177 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003613/1.21, allocations: 2.497 MB / 1.179 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/1.21, allocations: 13 kB / 1.179 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/1.21, allocations: 12 kB / 1.179 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.918e-05/1.21, allocations: 28 kB / 1.179 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002398/1.212, allocations: 0.5576 MB / 1.18 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001919/1.214, allocations: 4.153 MB / 1.184 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002302/1.216, allocations: 218.3 kB / 1.184 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/1.217, allocations: 87.98 kB / 1.184 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002143/1.219, allocations: 1.468 MB / 1.186 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001548/1.22, allocations: 1.395 MB / 1.187 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002758/1.223, allocations: 2.244 MB / 1.189 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.582e-06/1.223, allocations: 4 kB / 1.189 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of matching and sorting (n=257) (initialization_lambda0): time 0.003471/1.227, allocations: 2.478 MB / 1.192 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/1.227, allocations: 12 kB / 1.192 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/1.227, allocations: 12 kB / 1.192 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/1.227, allocations: 28.77 kB / 1.192 GB, free: 3.57 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001646/1.228, allocations: 475.3 kB / 1.192 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.409e-05/1.228, allocations: 27.94 kB / 1.192 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002153/1.231, allocations: 190.5 kB / 1.192 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/1.231, allocations: 87.98 kB / 1.192 GB, free: 2.805 MB / 0.8262 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.0003964/1.231, allocations: 320.1 kB / 1.193 GB, free: 2.484 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003704/1.231, allocations: 272.7 kB / 1.193 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003154/1.235, allocations: 2.107 MB / 1.195 GB, free: 92 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002424/1.237, allocations: 1.882 MB / 1.197 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/1.237, allocations: 4 kB / 1.197 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008648/1.238, allocations: 0.556 MB / 1.197 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003092/1.238, allocations: 43.98 kB / 1.197 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001656/1.24, allocations: 79.53 kB / 1.198 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001981/1.24, allocations: 109.8 kB / 1.198 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00449/1.245, allocations: 2.355 MB / 1.2 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004358/1.249, allocations: 3.306 MB / 1.203 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00115/1.25, allocations: 0.9174 MB / 1.204 GB, free: 6.738 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001786/1.252, allocations: 1.334 MB / 1.205 GB, free: 5.395 MB / 0.8419 GB Notification: Performance of Backend: time 2.3e-07/1.252, allocations: 0 / 1.205 GB, free: 5.395 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.007458/1.259, allocations: 3.553 MB / 1.209 GB, free: 1.852 MB / 0.8419 GB Notification: Performance of SimCode: time 0.01334/1.273, allocations: 7.434 MB / 1.216 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of Templates: time 0.1032/1.376, allocations: 69.3 MB / 1.284 GB, free: 5.781 MB / 0.92 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)