Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8461/0.8461, allocations: 133.6 MB / 141.6 MB, free: 2.859 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.707/1.707, allocations: 221.5 MB / 395.4 MB, free: 10.78 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.001231/0.001232, allocations: 101.8 kB / 478.2 MB, free: 1.297 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.943e-05/2.956e-05, allocations: 4 kB / 0.5536 GB, free: 8.93 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6325/0.6326, allocations: 82.3 MB / 0.6339 GB, free: 40.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.902/6.535, allocations: 1.863 GB / 2.497 GB, free: 174.3 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/6.535, allocations: 91.95 kB / 2.497 GB, free: 174.3 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 12.35/18.88, allocations: 2.807 GB / 5.304 GB, free: 53.97 MB / 0.7917 GB Notification: Performance of FrontEnd: time 4.429e-06/18.88, allocations: 0 / 5.304 GB, free: 53.97 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 0.0004932/18.88, allocations: 80.52 kB / 5.304 GB, free: 53.96 MB / 0.7917 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.01827/18.9, allocations: 3.492 MB / 5.308 GB, free: 52.34 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 6.14e-05/18.9, allocations: 10.59 kB / 5.308 GB, free: 52.34 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01497/18.92, allocations: 1.194 MB / 5.309 GB, free: 52.18 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01151/18.93, allocations: 2.579 MB / 5.312 GB, free: 51.64 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002047/18.93, allocations: 353.6 kB / 5.312 GB, free: 51.64 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001326/18.93, allocations: 134.5 kB / 5.312 GB, free: 51.64 MB / 0.7917 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008124/18.94, allocations: 2.435 MB / 5.314 GB, free: 51.62 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007186/18.95, allocations: 2.377 MB / 5.317 GB, free: 51.22 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.559e-05/18.95, allocations: 5.562 kB / 5.317 GB, free: 51.22 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003889/18.95, allocations: 7.344 kB / 5.317 GB, free: 51.22 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001417/18.95, allocations: 91.66 kB / 5.317 GB, free: 51.21 MB / 0.7917 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.03437/18.98, allocations: 13.59 MB / 5.33 GB, free: 43.84 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003454/18.98, allocations: 1.486 MB / 5.331 GB, free: 43.62 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00142/18.99, allocations: 0.6057 MB / 5.332 GB, free: 43.61 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007645/18.99, allocations: 330.3 kB / 5.332 GB, free: 43.32 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.041e-05/18.99, allocations: 51.19 kB / 5.332 GB, free: 43.28 MB / 0.7917 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002518/18.99, allocations: 156.3 kB / 5.333 GB, free: 43.22 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=110): time 6.562e-06/18.99, allocations: 0 / 5.333 GB, free: 43.22 MB / 0.7917 GB Notification: Performance of matching and sorting (n=110): time 0.005194/18.99, allocations: 1.526 MB / 5.334 GB, free: 43.04 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/18.99, allocations: 63.25 kB / 5.334 GB, free: 42.98 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004019/19, allocations: 1.553 MB / 5.336 GB, free: 42.76 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 0.000486/19, allocations: 32.14 kB / 5.336 GB, free: 42.73 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.001403/19, allocations: 1.297 MB / 5.337 GB, free: 42.16 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005589/19, allocations: 377.3 kB / 5.337 GB, free: 41.91 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001746/19, allocations: 3.969 kB / 5.337 GB, free: 41.91 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001565/19, allocations: 370.1 kB / 5.338 GB, free: 41.61 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001572/19, allocations: 0.6732 MB / 5.338 GB, free: 41.61 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002093/19.01, allocations: 1.324 MB / 5.34 GB, free: 40.84 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003699/19.01, allocations: 1.16 MB / 5.341 GB, free: 40.82 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.587e-05/19.01, allocations: 5.156 kB / 5.341 GB, free: 40.82 MB / 0.7917 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.007655/19.02, allocations: 2.374 MB / 5.343 GB, free: 40.65 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 0.001432/19.02, allocations: 5.628 MB / 5.349 GB, free: 34.78 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.684e-05/19.02, allocations: 13.94 kB / 5.349 GB, free: 34.78 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.783e-05/19.02, allocations: 22.44 kB / 5.349 GB, free: 34.78 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004568/19.02, allocations: 0.5698 MB / 5.349 GB, free: 34.78 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/19.02, allocations: 2.402 MB / 5.352 GB, free: 32.44 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006306/19.03, allocations: 383.5 kB / 5.352 GB, free: 32.43 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007127/19.03, allocations: 96.23 kB / 5.352 GB, free: 32.43 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/19.03, allocations: 2.625 kB / 5.352 GB, free: 32.43 MB / 0.7917 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006877/19.04, allocations: 2.13 MB / 5.354 GB, free: 32.39 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-05/19.04, allocations: 14.25 kB / 5.354 GB, free: 32.39 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.77e-05/19.04, allocations: 27.59 kB / 5.354 GB, free: 32.39 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003424/19.04, allocations: 0.5282 MB / 5.355 GB, free: 32.39 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.018e-05/19.04, allocations: 31.97 kB / 5.355 GB, free: 32.39 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004965/19.05, allocations: 319.7 kB / 5.355 GB, free: 32.38 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003755/19.05, allocations: 92.52 kB / 5.355 GB, free: 32.38 MB / 0.7917 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.0007992/19.05, allocations: 164.1 kB / 5.355 GB, free: 32.26 MB / 0.7917 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004405/19.05, allocations: 1.471 MB / 5.357 GB, free: 32.09 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007443/19.05, allocations: 220.7 kB / 5.357 GB, free: 31.98 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004535/19.06, allocations: 1.625 MB / 5.358 GB, free: 31.86 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-05/19.06, allocations: 13.61 kB / 5.358 GB, free: 31.86 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/19.06, allocations: 1.969 kB / 5.358 GB, free: 31.86 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.876e-05/19.06, allocations: 8.906 kB / 5.358 GB, free: 31.86 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01115/19.07, allocations: 3.918 MB / 5.362 GB, free: 31.34 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-05/19.07, allocations: 3.219 kB / 5.362 GB, free: 31.34 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002523/19.07, allocations: 314 kB / 5.363 GB, free: 31.34 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-05/19.07, allocations: 14.25 kB / 5.363 GB, free: 31.34 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001225/19.07, allocations: 21.31 kB / 5.363 GB, free: 31.34 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009943/19.07, allocations: 2.371 MB / 5.365 GB, free: 29 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.16e-05/19.07, allocations: 9.406 kB / 5.365 GB, free: 29 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004664/19.08, allocations: 2.2 MB / 5.367 GB, free: 27.92 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002028/19.08, allocations: 497.9 kB / 5.368 GB, free: 27.71 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005688/19.08, allocations: 11.34 kB / 5.368 GB, free: 27.71 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003746/19.08, allocations: 252.4 kB / 5.368 GB, free: 27.7 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/19.08, allocations: 79.72 kB / 5.368 GB, free: 27.69 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002451/19.08, allocations: 62.36 kB / 5.368 GB, free: 27.69 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.00283/19.09, allocations: 1.154 MB / 5.369 GB, free: 27.54 MB / 0.7917 GB Notification: Performance of sort global known variables: time 3.2e-07/19.09, allocations: 0 / 5.369 GB, free: 27.54 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.01007/19.1, allocations: 1.72 MB / 5.371 GB, free: 27.37 MB / 0.7917 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.02274/19.12, allocations: 12.4 MB / 5.383 GB, free: 20.14 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.00809/19.13, allocations: 2.833 MB / 5.386 GB, free: 19.76 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 1.776e-05/19.13, allocations: 7.969 kB / 5.386 GB, free: 19.76 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.00169/19.13, allocations: 0.6288 MB / 5.386 GB, free: 19.71 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006484/19.14, allocations: 0.737 MB / 5.387 GB, free: 19.66 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01353/19.15, allocations: 3.577 MB / 5.39 GB, free: 18.52 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001653/19.15, allocations: 1.747 MB / 5.392 GB, free: 17.74 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.007217/19.16, allocations: 0.8195 MB / 5.393 GB, free: 17.57 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002336/19.16, allocations: 0.9516 MB / 5.394 GB, free: 17.57 MB / 0.7917 GB Notification: Performance of SimCode: time 1.693e-06/19.16, allocations: 3.938 kB / 5.394 GB, free: 17.56 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.148/20.31, allocations: 99.56 MB / 5.491 GB, free: 87.31 MB / 0.823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/20.31, allocations: 169.7 kB / 5.491 GB, free: 87.12 MB / 0.823 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.512/26.82, allocations: 0 / 5.491 GB, free: 87.12 MB / 0.823 GB (rm -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)