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: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7143/0.7143, 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.0009306/0.0009306, allocations: 178.1 kB / 187.3 MB, free: 11.9 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.262/1.262, allocations: 221.3 MB / 441.4 MB, free: 4.621 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.0009421/0.0009421, allocations: 85.75 kB / 0.5124 GB, free: 24.26 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001673/0.001673, allocations: 272.3 kB / 0.5939 GB, free: 7.984 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.258e-05/3.262e-05, allocations: 4 kB / 0.6835 GB, free: 12.17 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3861/0.3862, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.692/4.078, allocations: 1.861 GB / 2.626 GB, free: 145.3 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/4.078, allocations: 99.09 kB / 2.626 GB, free: 145.3 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 9.035/13.11, allocations: 2.838 GB / 5.463 GB, free: 50.32 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.483e-06/13.11, allocations: 0 / 5.463 GB, free: 50.32 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 0.0001814/13.11, allocations: 70.47 kB / 5.464 GB, free: 50.31 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.009073/13.12, allocations: 3.5 MB / 5.467 GB, free: 48.64 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/13.12, allocations: 10.19 kB / 5.467 GB, free: 48.64 MB / 0.8073 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005303/13.12, allocations: 292.7 kB / 5.467 GB, free: 48.59 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008907/13.13, allocations: 1.2 MB / 5.468 GB, free: 48.43 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006571/13.14, allocations: 2.577 MB / 5.471 GB, free: 47.89 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001242/13.14, allocations: 438 kB / 5.471 GB, free: 47.88 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006599/13.14, allocations: 228.2 kB / 5.472 GB, free: 47.88 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004428/13.15, allocations: 2.824 MB / 5.474 GB, free: 47.47 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.739e-05/13.15, allocations: 2.5 kB / 5.474 GB, free: 47.47 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002564/13.15, allocations: 101.2 kB / 5.474 GB, free: 47.47 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-05/13.15, allocations: 94.67 kB / 5.474 GB, free: 47.46 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00396/13.15, allocations: 2.642 MB / 5.477 GB, free: 47.43 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.01914/13.17, allocations: 14.07 MB / 5.491 GB, free: 39.93 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002205/13.17, allocations: 1.425 MB / 5.492 GB, free: 39.89 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008019/13.17, allocations: 0.6432 MB / 5.493 GB, free: 39.88 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004974/13.17, allocations: 327.5 kB / 5.493 GB, free: 39.59 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/13.17, allocations: 50.91 kB / 5.493 GB, free: 39.55 MB / 0.8073 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001645/13.17, allocations: 210.2 kB / 5.493 GB, free: 39.47 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=110): time 3.406e-06/13.17, allocations: 0 / 5.493 GB, free: 39.47 MB / 0.8073 GB Notification: Performance of matching and sorting (n=110): time 0.002317/13.18, allocations: 1.447 MB / 5.495 GB, free: 39.29 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.563e-05/13.18, allocations: 65.19 kB / 5.495 GB, free: 39.22 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002675/13.18, allocations: 2.087 MB / 5.497 GB, free: 38.97 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.0001601/13.18, allocations: 60.95 kB / 5.497 GB, free: 38.94 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007912/13.18, allocations: 1.269 MB / 5.498 GB, free: 38.48 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002497/13.18, allocations: 391.5 kB / 5.499 GB, free: 38.23 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/13.18, allocations: 35.88 kB / 5.499 GB, free: 38.23 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.7e-05/13.18, allocations: 374.2 kB / 5.499 GB, free: 37.93 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001012/13.18, allocations: 0.7088 MB / 5.5 GB, free: 37.93 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001373/13.18, allocations: 1.386 MB / 5.501 GB, free: 37.16 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001222/13.18, allocations: 0.9359 MB / 5.502 GB, free: 37.07 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/13.18, allocations: 3.406 kB / 5.502 GB, free: 37.07 MB / 0.8073 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003343/13.19, allocations: 2.321 MB / 5.504 GB, free: 36.8 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009697/13.19, allocations: 5.781 MB / 5.51 GB, free: 30.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/13.19, allocations: 13.84 kB / 5.51 GB, free: 30.7 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.603e-05/13.19, allocations: 25.22 kB / 5.51 GB, free: 30.7 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002692/13.19, allocations: 0.563 MB / 5.51 GB, free: 30.66 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/13.19, allocations: 2.396 MB / 5.513 GB, free: 28.31 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004637/13.2, allocations: 470.1 kB / 5.513 GB, free: 28.28 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003032/13.2, allocations: 90.22 kB / 5.513 GB, free: 28.28 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/13.2, allocations: 4.688 kB / 5.513 GB, free: 28.28 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003084/13.2, allocations: 2.081 MB / 5.515 GB, free: 28.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/13.2, allocations: 10.53 kB / 5.515 GB, free: 28.1 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/13.2, allocations: 25.81 kB / 5.515 GB, free: 28.1 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002228/13.2, allocations: 0.5321 MB / 5.516 GB, free: 28.08 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.538e-05/13.2, allocations: 33.19 kB / 5.516 GB, free: 28.07 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003417/13.21, allocations: 406 kB / 5.516 GB, free: 28.04 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001868/13.21, allocations: 90.53 kB / 5.516 GB, free: 28.04 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.0005481/13.21, allocations: 217.8 kB / 5.517 GB, free: 27.9 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006663/13.21, allocations: 263 kB / 5.517 GB, free: 27.77 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002972/13.21, allocations: 1.581 MB / 5.518 GB, free: 27.66 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/13.21, allocations: 11.53 kB / 5.518 GB, free: 27.66 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/13.21, allocations: 0 / 5.518 GB, free: 27.66 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/13.21, allocations: 9.422 kB / 5.518 GB, free: 27.66 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007463/13.22, allocations: 4.195 MB / 5.523 GB, free: 27.05 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/13.22, allocations: 10.91 kB / 5.523 GB, free: 27.05 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001562/13.22, allocations: 311.2 kB / 5.523 GB, free: 27.03 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.297e-05/13.22, allocations: 13 kB / 5.523 GB, free: 27.03 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.921e-05/13.22, allocations: 35.56 kB / 5.523 GB, free: 27.03 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006944/13.22, allocations: 2.365 MB / 5.525 GB, free: 24.68 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/13.22, allocations: 11.03 kB / 5.525 GB, free: 24.68 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002682/13.22, allocations: 2.208 MB / 5.527 GB, free: 23.48 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00153/13.22, allocations: 0.5385 MB / 5.528 GB, free: 23.25 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008056/13.23, allocations: 22.56 kB / 5.528 GB, free: 23.25 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002975/13.23, allocations: 287.2 kB / 5.528 GB, free: 23.24 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/13.23, allocations: 77.66 kB / 5.528 GB, free: 23.23 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001814/13.23, allocations: 66.84 kB / 5.528 GB, free: 23.23 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.003208/13.23, allocations: 1.59 MB / 5.53 GB, free: 23.07 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.31e-07/13.23, allocations: 0 / 5.53 GB, free: 23.07 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.00754/13.24, allocations: 1.925 MB / 5.532 GB, free: 22.94 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.01323/13.25, allocations: 11.74 MB / 5.543 GB, free: 15.52 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.006124/13.26, allocations: 3.048 MB / 5.546 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/13.26, allocations: 2.562 kB / 5.546 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.001289/13.26, allocations: 0.6612 MB / 5.547 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006576/13.27, allocations: 1.191 MB / 5.548 GB, free: 14.99 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01039/13.28, allocations: 3.763 MB / 5.552 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001595/13.28, allocations: 1.754 MB / 5.553 GB, free: 13.06 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.005324/13.28, allocations: 0.9737 MB / 5.554 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001385/13.29, allocations: 0.9681 MB / 5.555 GB, free: 12.87 MB / 0.8073 GB Notification: Performance of SimCode: time 1.854e-06/13.29, allocations: 0 / 5.555 GB, free: 12.87 MB / 0.8073 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7614/14.05, allocations: 170 MB / 5.721 GB, free: 78.07 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001721/14.05, allocations: 246.2 kB / 5.722 GB, free: 77.76 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.381/21.43, allocations: 0 / 5.722 GB, free: 77.76 MB / 0.8386 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)