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.868/0.868, allocations: 141.8 MB / 149.3 MB, free: 9.215 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 180.6 kB / 182.2 MB, free: 9.445 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.703/1.703, allocations: 221.5 MB / 436.4 MB, free: 13.36 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.001198/0.001198, allocations: 100 kB / 0.5074 GB, free: 10.19 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001958/0.001958, allocations: 274.9 kB / 0.5889 GB, free: 54.69 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.88e-05/2.89e-05, allocations: 8 kB / 0.6766 GB, free: 12.76 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5489/0.5489, allocations: 82.78 MB / 0.7575 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.747/6.296, allocations: 1.861 GB / 2.618 GB, free: 157.8 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/6.297, allocations: 95.75 kB / 2.618 GB, free: 157.7 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 11.51/17.81, allocations: 2.807 GB / 5.426 GB, free: 59.12 MB / 0.8073 GB Notification: Performance of FrontEnd: time 3.046e-06/17.81, allocations: 0 / 5.426 GB, free: 59.12 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 0.0002908/17.81, allocations: 69.77 kB / 5.426 GB, free: 59.12 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.01338/17.82, allocations: 3.498 MB / 5.429 GB, free: 57.71 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/17.82, allocations: 12.06 kB / 5.429 GB, free: 57.71 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01027/17.83, allocations: 1.193 MB / 5.43 GB, free: 57.55 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008633/17.84, allocations: 2.569 MB / 5.433 GB, free: 57.05 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001244/17.84, allocations: 351.5 kB / 5.433 GB, free: 57.04 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001003/17.84, allocations: 136.6 kB / 5.433 GB, free: 57.04 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00521/17.85, allocations: 2.433 MB / 5.436 GB, free: 57.02 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004634/17.85, allocations: 2.379 MB / 5.438 GB, free: 56.63 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.504e-05/17.85, allocations: 0 / 5.438 GB, free: 56.63 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000237/17.85, allocations: 3.875 kB / 5.438 GB, free: 56.63 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.987e-05/17.85, allocations: 94.78 kB / 5.438 GB, free: 56.62 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.02336/17.88, allocations: 13.59 MB / 5.451 GB, free: 49.24 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002157/17.88, allocations: 1.49 MB / 5.453 GB, free: 49.01 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008648/17.88, allocations: 0.6094 MB / 5.453 GB, free: 49 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000571/17.88, allocations: 328.5 kB / 5.454 GB, free: 48.72 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/17.88, allocations: 47.53 kB / 5.454 GB, free: 48.68 MB / 0.8073 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001813/17.88, allocations: 164.8 kB / 5.454 GB, free: 48.62 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=110): time 4.509e-06/17.88, allocations: 0 / 5.454 GB, free: 48.62 MB / 0.8073 GB Notification: Performance of matching and sorting (n=110): time 0.003001/17.89, allocations: 1.516 MB / 5.455 GB, free: 48.44 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/17.89, allocations: 64.53 kB / 5.455 GB, free: 48.38 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002486/17.89, allocations: 1.551 MB / 5.457 GB, free: 48.16 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.0002216/17.89, allocations: 37.2 kB / 5.457 GB, free: 48.12 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009492/17.89, allocations: 1.296 MB / 5.458 GB, free: 47.56 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003113/17.89, allocations: 372.7 kB / 5.459 GB, free: 47.32 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/17.89, allocations: 3.438 kB / 5.459 GB, free: 47.32 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001288/17.89, allocations: 376.1 kB / 5.459 GB, free: 47.01 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001013/17.89, allocations: 0.6698 MB / 5.46 GB, free: 47.01 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/17.89, allocations: 1.321 MB / 5.461 GB, free: 46.25 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002376/17.89, allocations: 1.155 MB / 5.462 GB, free: 46.23 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.534e-05/17.89, allocations: 5.5 kB / 5.462 GB, free: 46.23 MB / 0.8073 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005104/17.9, allocations: 2.377 MB / 5.464 GB, free: 46.07 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.001424/17.9, allocations: 5.625 MB / 5.47 GB, free: 40.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.275e-05/17.9, allocations: 15.31 kB / 5.47 GB, free: 40.2 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.302e-05/17.9, allocations: 26.41 kB / 5.47 GB, free: 40.2 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002906/17.9, allocations: 0.573 MB / 5.47 GB, free: 40.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/17.91, allocations: 2.4 MB / 5.473 GB, free: 37.86 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004337/17.91, allocations: 390.2 kB / 5.473 GB, free: 37.84 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003369/17.91, allocations: 95.08 kB / 5.473 GB, free: 37.84 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/17.91, allocations: 7.156 kB / 5.473 GB, free: 37.84 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004373/17.91, allocations: 2.123 MB / 5.475 GB, free: 37.81 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.472e-05/17.91, allocations: 23.23 kB / 5.475 GB, free: 37.8 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.664e-05/17.91, allocations: 26.78 kB / 5.475 GB, free: 37.8 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002412/17.92, allocations: 0.5315 MB / 5.476 GB, free: 37.8 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.088e-05/17.92, allocations: 33.39 kB / 5.476 GB, free: 37.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003532/17.92, allocations: 312.5 kB / 5.476 GB, free: 37.79 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002384/17.92, allocations: 91.44 kB / 5.476 GB, free: 37.79 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.000661/17.92, allocations: 162 kB / 5.476 GB, free: 37.68 MB / 0.8073 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003292/17.93, allocations: 1.474 MB / 5.478 GB, free: 37.5 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003901/17.93, allocations: 224 kB / 5.478 GB, free: 37.39 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003072/17.93, allocations: 1.62 MB / 5.48 GB, free: 37.28 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/17.93, allocations: 14.05 kB / 5.48 GB, free: 37.28 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/17.93, allocations: 2.203 kB / 5.48 GB, free: 37.28 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/17.93, allocations: 3.328 kB / 5.48 GB, free: 37.28 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007189/17.94, allocations: 3.916 MB / 5.484 GB, free: 36.76 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.439e-05/17.94, allocations: 10.84 kB / 5.484 GB, free: 36.76 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001656/17.94, allocations: 311.7 kB / 5.484 GB, free: 36.76 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-05/17.94, allocations: 10.34 kB / 5.484 GB, free: 36.76 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.322e-05/17.94, allocations: 25.27 kB / 5.484 GB, free: 36.76 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008346/17.94, allocations: 2.372 MB / 5.486 GB, free: 34.41 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/17.94, allocations: 8.406 kB / 5.486 GB, free: 34.41 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003503/17.94, allocations: 2.199 MB / 5.488 GB, free: 33.34 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001508/17.94, allocations: 0.4919 MB / 5.489 GB, free: 33.12 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004277/17.94, allocations: 7.625 kB / 5.489 GB, free: 33.12 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002471/17.95, allocations: 253.4 kB / 5.489 GB, free: 33.11 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/17.95, allocations: 76.14 kB / 5.489 GB, free: 33.11 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001444/17.95, allocations: 61.59 kB / 5.489 GB, free: 33.11 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.002311/17.95, allocations: 1.151 MB / 5.49 GB, free: 32.96 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.413e-06/17.95, allocations: 1.594 kB / 5.49 GB, free: 32.96 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.007666/17.96, allocations: 1.73 MB / 5.492 GB, free: 32.79 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.01733/17.97, allocations: 12.42 MB / 5.504 GB, free: 25.62 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.00627/17.98, allocations: 2.843 MB / 5.507 GB, free: 25.34 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.557e-05/17.98, allocations: 3.094 kB / 5.507 GB, free: 25.34 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.001205/17.98, allocations: 0.6249 MB / 5.508 GB, free: 25.33 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004613/17.99, allocations: 0.7345 MB / 5.508 GB, free: 25.3 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009191/18, allocations: 3.568 MB / 5.512 GB, free: 24.2 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001328/18, allocations: 1.754 MB / 5.513 GB, free: 23.45 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.00436/18, allocations: 0.8219 MB / 5.514 GB, free: 23.42 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001331/18, allocations: 0.9469 MB / 5.515 GB, free: 23.41 MB / 0.8073 GB Notification: Performance of SimCode: time 1.383e-06/18, allocations: 3.156 kB / 5.515 GB, free: 23.41 MB / 0.8073 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1851/18.19, allocations: 99.64 MB / 5.612 GB, free: 11.56 MB / 0.823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00029/18.19, allocations: 193.6 kB / 5.613 GB, free: 11.37 MB / 0.823 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.092/24.28, allocations: 0 / 5.613 GB, free: 11.37 MB / 0.823 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)