Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.MassExchangers.Examples.ConstantEffectiveness.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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: "" <> buildModelFMU(IDEAS.Fluid.MassExchangers.Examples.ConstantEffectiveness,fileNamePrefix="IDEAS_IDEAS_Fluid_MassExchangers_Examples_ConstantEffectiveness",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.MassExchangers.Examples.ConstantEffectiveness,fileNamePrefix="IDEAS_IDEAS_Fluid_MassExchangers_Examples_ConstantEffectiveness",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006265/0.006265, allocations: 99.47 kB / 15.73 MB, free: 6.441 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.001295/0.001295, allocations: 199.7 kB / 16.67 MB, free: 6.352 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7698/0.7698, allocations: 132.2 MB / 422.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 59.89 kB / 0.5808 GB, free: 8.078 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3871/0.3884, allocations: 80.21 MB / 0.6592 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.MassExchangers.Examples.ConstantEffectiveness): time 0.5945/0.983, allocations: 214.2 MB / 0.8683 GB, free: 1.98 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.009222/0.9922, allocations: 7.029 MB / 0.8752 GB, free: 1.945 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001536/0.9938, allocations: 46.12 kB / 0.8752 GB, free: 1.945 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.001748/0.9956, allocations: 0.8073 MB / 0.876 GB, free: 1.934 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.005882/1.001, allocations: 2.614 MB / 0.8786 GB, free: 1.844 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.003/1.005, allocations: 1.183 MB / 0.8797 GB, free: 1.809 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.004376/1.009, allocations: 2.82 MB / 0.8825 GB, free: 1.805 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001866/1.011, allocations: 1.089 MB / 0.8836 GB, free: 1.695 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004221/1.015, allocations: 2.052 MB / 0.8856 GB, free: 1.672 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002051/1.017, allocations: 0.9343 MB / 0.8865 GB, free: 1.672 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0002414/1.017, allocations: 119 kB / 0.8866 GB, free: 1.672 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004527/1.022, allocations: 2.459 MB / 0.889 GB, free: 1.645 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0004821/1.022, allocations: 430.5 kB / 0.8894 GB, free: 1.645 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.000998/1.023, allocations: 0.6864 MB / 0.8901 GB, free: 1.645 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.004089/1.027, allocations: 2.516 MB / 0.8925 GB, free: 1.492 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/1.027, allocations: 0 / 0.8925 GB, free: 1.492 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.202e-06/1.028, allocations: 0 / 0.8925 GB, free: 1.492 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 1.592e-05/1.028, allocations: 2 kB / 0.8925 GB, free: 1.492 MB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.004351/1.032, allocations: 1.893 MB / 0.8944 GB, free: 16.54 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/1.032, allocations: 9.688 kB / 0.8944 GB, free: 16.54 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001601/1.032, allocations: 131.8 kB / 0.8945 GB, free: 16.5 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003221/1.035, allocations: 0.5432 MB / 0.895 GB, free: 16.42 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00202/1.037, allocations: 1.014 MB / 0.896 GB, free: 16.07 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.994e-05/1.037, allocations: 64.66 kB / 0.8961 GB, free: 16.07 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001674/1.038, allocations: 90.27 kB / 0.8962 GB, free: 16.07 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002712/1.04, allocations: 1.22 MB / 0.8974 GB, free: 16.01 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/1.04, allocations: 0 / 0.8974 GB, free: 16.01 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001069/1.04, allocations: 39.81 kB / 0.8974 GB, free: 16.01 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-05/1.041, allocations: 48.06 kB / 0.8975 GB, free: 16.01 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003495/1.044, allocations: 1.527 MB / 0.8989 GB, free: 16 MB / 0.7012 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.006681/1.051, allocations: 4.058 MB / 0.9029 GB, free: 14.41 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002353/1.053, allocations: 0.9715 MB / 0.9039 GB, free: 14.39 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00132/1.054, allocations: 0.6494 MB / 0.9045 GB, free: 14.38 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001036/1.056, allocations: 0.6114 MB / 0.9051 GB, free: 13.82 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/1.056, allocations: 41.56 kB / 0.9051 GB, free: 13.78 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=76): time 2.474e-06/1.056, allocations: 0.8125 kB / 0.9051 GB, free: 13.78 MB / 0.7012 GB Notification: Performance of matching and sorting (n=76): time 0.004607/1.06, allocations: 1.788 MB / 0.9069 GB, free: 13.69 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/1.06, allocations: 60 kB / 0.9069 GB, free: 13.63 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008971/1.061, allocations: 0.8229 MB / 0.9077 GB, free: 13.48 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001054/1.061, allocations: 44.55 kB / 0.9078 GB, free: 13.45 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002665/1.062, allocations: 453.8 kB / 0.9082 GB, free: 13.27 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002066/1.062, allocations: 271.6 kB / 0.9085 GB, free: 13.09 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002649/1.062, allocations: 162.4 kB / 0.9086 GB, free: 13.07 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001266/1.062, allocations: 337.4 kB / 0.9089 GB, free: 12.76 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/1.063, allocations: 0.5299 MB / 0.9095 GB, free: 12.75 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001377/1.065, allocations: 0.6513 MB / 0.9101 GB, free: 12.66 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002583/1.067, allocations: 1.135 MB / 0.9112 GB, free: 12.57 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/1.067, allocations: 0 / 0.9112 GB, free: 12.57 MB / 0.7012 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003065/1.071, allocations: 1.345 MB / 0.9125 GB, free: 12.45 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 6.619e-05/1.071, allocations: 38.2 kB / 0.9126 GB, free: 12.41 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/1.071, allocations: 1.812 kB / 0.9126 GB, free: 12.41 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/1.071, allocations: 5.312 kB / 0.9126 GB, free: 12.41 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001462/1.072, allocations: 257.5 kB / 0.9128 GB, free: 12.41 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006527/1.073, allocations: 1.191 MB / 0.914 GB, free: 11.24 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001174/1.074, allocations: 146.3 kB / 0.9141 GB, free: 11.2 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.158e-05/1.074, allocations: 36.78 kB / 0.9141 GB, free: 11.2 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001579/1.076, allocations: 0.7552 MB / 0.9149 GB, free: 11.11 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001328/1.077, allocations: 0.649 MB / 0.9155 GB, free: 11 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00252/1.08, allocations: 1.124 MB / 0.9166 GB, free: 10.9 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.595e-06/1.08, allocations: 0 / 0.9166 GB, free: 10.9 MB / 0.7012 GB Notification: Performance of matching and sorting (n=87) (initialization_lambda0): time 0.003147/1.083, allocations: 1.348 MB / 0.9179 GB, free: 10.74 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/1.083, allocations: 35.34 kB / 0.918 GB, free: 10.71 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/1.083, allocations: 2.469 kB / 0.918 GB, free: 10.71 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.793e-06/1.083, allocations: 4.812 kB / 0.918 GB, free: 10.71 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/1.084, allocations: 231.4 kB / 0.9182 GB, free: 10.7 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.709e-06/1.084, allocations: 10.41 kB / 0.9182 GB, free: 10.7 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/1.085, allocations: 128.9 kB / 0.9183 GB, free: 10.67 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.402e-05/1.085, allocations: 33.77 kB / 0.9184 GB, free: 10.67 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (hex.i2_w,hex.i1_w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002934/1.085, allocations: 223.6 kB / 0.9186 GB, free: 10.49 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001929/1.086, allocations: 111.6 kB / 0.9187 GB, free: 10.43 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00309/1.089, allocations: 1.347 MB / 0.92 GB, free: 10.33 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/1.089, allocations: 7.344 kB / 0.92 GB, free: 10.33 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/1.089, allocations: 0 / 0.92 GB, free: 10.33 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/1.089, allocations: 4.172 kB / 0.92 GB, free: 10.33 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005161/1.094, allocations: 2.848 MB / 0.9228 GB, free: 9.828 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/1.094, allocations: 3.406 kB / 0.9228 GB, free: 9.828 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/1.095, allocations: 232.5 kB / 0.923 GB, free: 9.82 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.316e-05/1.095, allocations: 11.44 kB / 0.923 GB, free: 9.816 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.339e-05/1.095, allocations: 23.62 kB / 0.923 GB, free: 9.816 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005909/1.096, allocations: 1.195 MB / 0.9242 GB, free: 8.641 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.096, allocations: 8.25 kB / 0.9242 GB, free: 8.641 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003137/1.099, allocations: 1.451 MB / 0.9256 GB, free: 8.289 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006113/1.1, allocations: 314.9 kB / 0.9259 GB, free: 8.125 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001494/1.1, allocations: 23.22 kB / 0.926 GB, free: 8.121 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/1.101, allocations: 105.5 kB / 0.9261 GB, free: 8.113 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/1.101, allocations: 63.47 kB / 0.9261 GB, free: 8.105 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.023e-05/1.101, allocations: 36.56 kB / 0.9262 GB, free: 8.105 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.00068/1.102, allocations: 0.5701 MB / 0.9267 GB, free: 7.996 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.4e-07/1.102, allocations: 4 kB / 0.9267 GB, free: 7.992 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.00139/1.103, allocations: 0.5337 MB / 0.9272 GB, free: 7.93 MB / 0.7012 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 simulation (76): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003706/1.107, allocations: 2.158 MB / 0.9293 GB, free: 7.016 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.005039/1.112, allocations: 2.019 MB / 0.9313 GB, free: 6.844 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 6.231e-06/1.112, allocations: 6.656 kB / 0.9313 GB, free: 6.84 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.001492/1.113, allocations: 0.6635 MB / 0.932 GB, free: 6.824 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002454/1.116, allocations: 0.4925 MB / 0.9325 GB, free: 6.746 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01476/1.131, allocations: 8.712 MB / 0.941 GB, free: 4.418 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006166/1.131, allocations: 1.095 MB / 0.942 GB, free: 3.602 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.00145/1.133, allocations: 394.1 kB / 0.9424 GB, free: 3.418 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005575/1.133, allocations: 388.2 kB / 0.9428 GB, free: 3.371 MB / 0.7012 GB Notification: Performance of SimCode: time 6.31e-07/1.133, allocations: 0 / 0.9428 GB, free: 3.371 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05685/1.19, allocations: 28.74 MB / 0.9708 GB, free: 8.93 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/14.09, allocations: 8.344 kB / 0.9708 GB, free: 8.926 MB / 0.7325 GB (rm -f IDEAS_IDEAS.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; mkfifo IDEAS_IDEAS.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe >> ../files/IDEAS_IDEAS.Fluid.MassExchangers.Examples.ConstantEffectiveness.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.MassExchangers.Examples.ConstantEffectiveness_res.csv --start-time 0 --stop-time 360 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.144 IDEAS_IDEAS_Fluid_MassExchangers_Examples_ConstantEffectiveness.fmu > IDEAS_IDEAS.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe 2>&1)