Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") translateModel(BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8279/0.8279, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 182.2 kB / 187.3 MB, free: 11.88 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.615/1.615, allocations: 221.3 MB / 441.4 MB, free: 4.609 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 97.41 kB / 0.5124 GB, free: 24.21 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002006/0.002006, allocations: 275 kB / 0.5939 GB, free: 7.965 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.007e-05/5.009e-05, allocations: 4 kB / 0.6834 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4905/0.4905, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.999/5.49, allocations: 1.861 GB / 2.626 GB, free: 145 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/5.49, allocations: 99.62 kB / 2.626 GB, free: 145 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 11.66/17.15, allocations: 2.838 GB / 5.463 GB, free: 50.33 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.923e-06/17.15, allocations: 0 / 5.463 GB, free: 50.33 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 0.0002571/17.15, allocations: 72.73 kB / 5.463 GB, free: 50.32 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01307/17.16, allocations: 3.495 MB / 5.467 GB, free: 48.64 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/17.16, allocations: 12.41 kB / 5.467 GB, free: 48.64 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01016/17.17, allocations: 1.198 MB / 5.468 GB, free: 48.47 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00832/17.18, allocations: 2.577 MB / 5.471 GB, free: 47.94 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001582/17.18, allocations: 437.5 kB / 5.471 GB, free: 47.93 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001073/17.18, allocations: 221.5 kB / 5.471 GB, free: 47.93 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005558/17.19, allocations: 2.826 MB / 5.474 GB, free: 47.52 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.689e-05/17.19, allocations: 3.844 kB / 5.474 GB, free: 47.52 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00031/17.19, allocations: 92.25 kB / 5.474 GB, free: 47.52 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001045/17.19, allocations: 92.45 kB / 5.474 GB, free: 47.51 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0047/17.19, allocations: 2.653 MB / 5.477 GB, free: 47.48 MB / 0.8073 GB Warning: The model contains alias variables with conflicting start and/or 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.02452/17.22, allocations: 14.06 MB / 5.49 GB, free: 39.99 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002438/17.22, allocations: 1.421 MB / 5.492 GB, free: 39.95 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008601/17.22, allocations: 0.644 MB / 5.492 GB, free: 39.93 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005095/17.22, allocations: 329.4 kB / 5.493 GB, free: 39.65 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/17.22, allocations: 48.56 kB / 5.493 GB, free: 39.61 MB / 0.8073 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00192/17.22, allocations: 218.6 kB / 5.493 GB, free: 39.53 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=110): time 4.779e-06/17.22, allocations: 0 / 5.493 GB, free: 39.53 MB / 0.8073 GB Notification: Performance of matching and sorting (n=110): time 0.00268/17.22, allocations: 1.437 MB / 5.494 GB, free: 39.34 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.481e-05/17.22, allocations: 66.19 kB / 5.495 GB, free: 39.27 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002942/17.23, allocations: 2.089 MB / 5.497 GB, free: 39.03 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.0001849/17.23, allocations: 58.67 kB / 5.497 GB, free: 39 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008943/17.23, allocations: 1.271 MB / 5.498 GB, free: 38.53 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002623/17.23, allocations: 388.5 kB / 5.498 GB, free: 38.29 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/17.23, allocations: 35 kB / 5.498 GB, free: 38.29 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001019/17.23, allocations: 372.7 kB / 5.499 GB, free: 37.99 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001084/17.23, allocations: 0.7198 MB / 5.499 GB, free: 37.98 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/17.23, allocations: 1.385 MB / 5.501 GB, free: 37.21 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/17.23, allocations: 0.933 MB / 5.502 GB, free: 37.13 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.124e-05/17.23, allocations: 3.625 kB / 5.502 GB, free: 37.13 MB / 0.8073 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004742/17.24, allocations: 2.32 MB / 5.504 GB, free: 36.87 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.00167/17.24, allocations: 5.782 MB / 5.509 GB, free: 30.76 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.91e-05/17.24, allocations: 18.3 kB / 5.51 GB, free: 30.76 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.567e-05/17.24, allocations: 23.69 kB / 5.51 GB, free: 30.76 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002768/17.24, allocations: 0.5676 MB / 5.51 GB, free: 30.73 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/17.24, allocations: 2.387 MB / 5.512 GB, free: 28.38 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004224/17.25, allocations: 472.2 kB / 5.513 GB, free: 28.34 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002258/17.25, allocations: 94.91 kB / 5.513 GB, free: 28.34 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/17.25, allocations: 4.781 kB / 5.513 GB, free: 28.34 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003133/17.25, allocations: 2.083 MB / 5.515 GB, free: 28.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/17.25, allocations: 11.31 kB / 5.515 GB, free: 28.16 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/17.25, allocations: 28.81 kB / 5.515 GB, free: 28.16 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002266/17.25, allocations: 0.5319 MB / 5.516 GB, free: 28.13 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.44e-05/17.25, allocations: 29.67 kB / 5.516 GB, free: 28.13 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003734/17.26, allocations: 406.3 kB / 5.516 GB, free: 28.1 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002192/17.26, allocations: 89.11 kB / 5.516 GB, free: 28.1 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 4 (masExcFor.i1_w,masExcFor.i2_w,masExcRev.i1_w,masExcRev.i2_w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006304/17.26, allocations: 226.7 kB / 5.516 GB, free: 27.95 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006743/17.26, allocations: 260.5 kB / 5.517 GB, free: 27.82 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003125/17.26, allocations: 1.571 MB / 5.518 GB, free: 27.71 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/17.26, allocations: 11.16 kB / 5.518 GB, free: 27.71 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/17.26, allocations: 0 / 5.518 GB, free: 27.71 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/17.26, allocations: 3.516 kB / 5.518 GB, free: 27.71 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007238/17.27, allocations: 4.199 MB / 5.522 GB, free: 27.11 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/17.27, allocations: 11 kB / 5.522 GB, free: 27.11 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001566/17.27, allocations: 314 kB / 5.522 GB, free: 27.09 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.564e-05/17.27, allocations: 13.31 kB / 5.522 GB, free: 27.09 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.603e-05/17.27, allocations: 31.08 kB / 5.523 GB, free: 27.09 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007404/17.27, allocations: 2.368 MB / 5.525 GB, free: 24.74 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/17.27, allocations: 11.5 kB / 5.525 GB, free: 24.74 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002795/17.27, allocations: 2.203 MB / 5.527 GB, free: 23.54 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001392/17.28, allocations: 0.5426 MB / 5.528 GB, free: 23.31 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003153/17.28, allocations: 26.16 kB / 5.528 GB, free: 23.31 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002391/17.28, allocations: 285.7 kB / 5.528 GB, free: 23.3 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/17.28, allocations: 87.41 kB / 5.528 GB, free: 23.28 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/17.28, allocations: 61.72 kB / 5.528 GB, free: 23.28 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.002389/17.28, allocations: 1.593 MB / 5.53 GB, free: 23.12 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.61e-07/17.28, allocations: 9.609 kB / 5.53 GB, free: 23.12 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.007144/17.29, allocations: 1.916 MB / 5.531 GB, free: 22.99 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01237/17.3, allocations: 7.663 MB / 5.539 GB, free: 18.53 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.006487/17.31, allocations: 3.037 MB / 5.542 GB, free: 18.13 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/17.31, allocations: 0 / 5.542 GB, free: 18.13 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.001167/17.31, allocations: 0.6677 MB / 5.543 GB, free: 18.09 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007247/17.32, allocations: 1.198 MB / 5.544 GB, free: 18 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008502/17.32, allocations: 3.216 MB / 5.547 GB, free: 16.96 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002422/17.33, allocations: 1.752 MB / 5.549 GB, free: 16.18 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.007117/17.33, allocations: 0.967 MB / 5.549 GB, free: 16 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007969/17.34, allocations: 164.7 kB / 5.55 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of SimCode: time 1.262e-06/17.34, allocations: 0 / 5.55 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of Templates: time 0.9598/18.29, allocations: 129 MB / 5.676 GB, free: 91.44 MB / 0.8386 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)