Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.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.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="IDEAS_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="IDEAS_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",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.009268/0.009268, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.00209/0.00209, allocations: 190.1 kB / 16.67 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.109/2.109, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.296/1.296, allocations: 132.2 MB / 422.7 MB, free: 6.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002958/0.002958, allocations: 64.22 kB / 0.5808 GB, free: 24.05 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2554, allocations: 80.22 MB / 0.6592 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.1229/0.3783, allocations: 70.43 MB / 0.728 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.04289/0.4213, allocations: 18.91 MB / 0.7464 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005082/0.4264, allocations: 67.56 kB / 0.7465 GB, free: 1.023 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004056/0.4306, allocations: 0.8345 MB / 0.7473 GB, free: 188 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.6815/1.112, allocations: 2.831 MB / 0.7501 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.007973/1.12, allocations: 1.656 MB / 0.7517 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01055/1.131, allocations: 4.038 MB / 0.7556 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004404/1.135, allocations: 1.459 MB / 0.7571 GB, free: 17.69 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00777/1.143, allocations: 1.776 MB / 0.7588 GB, free: 17.68 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004671/1.148, allocations: 1.176 MB / 0.7599 GB, free: 17.5 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0009546/1.149, allocations: 175.5 kB / 0.7601 GB, free: 17.5 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005959/1.155, allocations: 1.417 MB / 0.7615 GB, free: 17.48 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0009536/1.156, allocations: 390.9 kB / 0.7619 GB, free: 17.42 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002531/1.158, allocations: 0.9136 MB / 0.7628 GB, free: 17.18 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.008698/1.167, allocations: 3.128 MB / 0.7658 GB, free: 16.82 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 1.055e-05/1.167, allocations: 1.688 kB / 0.7658 GB, free: 16.82 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.204e-06/1.167, allocations: 5.094 kB / 0.7658 GB, free: 16.81 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.333e-05/1.167, allocations: 0 / 0.7658 GB, free: 16.81 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 257 * Number of variables: 257 Notification: Performance of Generate backend data structure: time 0.006467/1.174, allocations: 2.088 MB / 0.7679 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/1.174, allocations: 8.688 kB / 0.7679 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002294/1.174, allocations: 153.5 kB / 0.768 GB, free: 15.69 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003311/1.177, allocations: 456 kB / 0.7685 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003865/1.181, allocations: 1.562 MB / 0.77 GB, free: 15.15 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/1.181, allocations: 84.53 kB / 0.7701 GB, free: 15.15 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002494/1.182, allocations: 107.2 kB / 0.7702 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003574/1.185, allocations: 1.307 MB / 0.7714 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.31e-05/1.185, allocations: 4.531 kB / 0.7714 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001582/1.185, allocations: 44.31 kB / 0.7715 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-05/1.185, allocations: 29.61 kB / 0.7715 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003903/1.189, allocations: 1.104 MB / 0.7726 GB, free: 14.83 MB / 0.5762 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.01125/1.201, allocations: 7.507 MB / 0.7799 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004296/1.205, allocations: 0.8083 MB / 0.7807 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009327/1.206, allocations: 279.6 kB / 0.781 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001061/1.207, allocations: 1.721 MB / 0.7827 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/1.207, allocations: 40.11 kB / 0.7827 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 4.068e-06/1.207, allocations: 1.375 kB / 0.7827 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.006477/1.213, allocations: 1.346 MB / 0.784 GB, free: 8.086 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/1.214, allocations: 63.12 kB / 0.7841 GB, free: 8.023 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004973/1.219, allocations: 1.545 MB / 0.7856 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001415/1.219, allocations: 43.73 kB / 0.7856 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009125/1.22, allocations: 0.6813 MB / 0.7863 GB, free: 7.574 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000283/1.22, allocations: 175.9 kB / 0.7865 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006225/1.221, allocations: 175.5 kB / 0.7866 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001063/1.221, allocations: 331.7 kB / 0.7869 GB, free: 7.133 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001416/1.222, allocations: 373 kB / 0.7873 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001536/1.224, allocations: 0.6616 MB / 0.7879 GB, free: 6.566 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00245/1.226, allocations: 0.8824 MB / 0.7888 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.545e-05/1.226, allocations: 1.75 kB / 0.7888 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.004651/1.231, allocations: 1.209 MB / 0.79 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/1.231, allocations: 8.438 kB / 0.79 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.475e-05/1.231, allocations: 8.719 kB / 0.79 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001251/1.232, allocations: 222.2 kB / 0.7902 GB, free: 5.523 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/1.233, allocations: 189 kB / 0.7904 GB, free: 5.52 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009954/1.234, allocations: 0.7246 MB / 0.7911 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002826/1.237, allocations: 218.1 kB / 0.7913 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001877/1.237, allocations: 42.66 kB / 0.7914 GB, free: 4.828 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.001115/1.238, allocations: 355.5 kB / 0.7917 GB, free: 4.578 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000581/1.239, allocations: 153.5 kB / 0.7918 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003351/1.242, allocations: 1.139 MB / 0.7929 GB, free: 4.086 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.679e-05/1.242, allocations: 9.703 kB / 0.793 GB, free: 4.086 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/1.242, allocations: 15.84 kB / 0.793 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/1.242, allocations: 2.297 kB / 0.793 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007585/1.25, allocations: 2.509 MB / 0.7954 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/1.25, allocations: 6.406 kB / 0.7954 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005172/1.251, allocations: 90.97 kB / 0.7955 GB, free: 2.523 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001072/1.252, allocations: 212.8 kB / 0.7957 GB, free: 2.414 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.019e-05/1.252, allocations: 13.78 kB / 0.7957 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001619/1.253, allocations: 0.7758 MB / 0.7965 GB, free: 1.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/1.253, allocations: 6.406 kB / 0.7965 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004935/1.258, allocations: 1.209 MB / 0.7977 GB, free: 1.035 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/1.26, allocations: 352.8 kB / 0.798 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007593/1.26, allocations: 21.84 kB / 0.798 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001936/1.262, allocations: 73.72 kB / 0.7981 GB, free: 0.6719 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/1.263, allocations: 40.2 kB / 0.7981 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001191/1.263, allocations: 28.98 kB / 0.7982 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002972/1.266, allocations: 1.082 MB / 0.7992 GB, free: 56 kB / 0.5762 GB Notification: Performance of sort global known variables: time 3.41e-07/1.266, allocations: 0 / 0.7992 GB, free: 56 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008379/1.274, allocations: 451.5 kB / 0.7997 GB, free: 15.94 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (52): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01991/1.294, allocations: 2.133 MB / 0.8017 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003824/1.298, allocations: 0.8506 MB / 0.8026 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/1.298, allocations: 0 / 0.8026 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001976/1.3, allocations: 445.5 kB / 0.803 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01636/1.316, allocations: 0.7251 MB / 0.8037 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08613/1.403, allocations: 10.5 MB / 0.814 GB, free: 5.816 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005854/1.409, allocations: 1.172 MB / 0.8151 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002868/1.411, allocations: 270.6 kB / 0.8154 GB, free: 4.359 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00552/1.417, allocations: 0.55 MB / 0.8159 GB, free: 3.809 MB / 0.5919 GB Notification: Performance of SimCode: time 3.527e-06/1.417, allocations: 0 / 0.8159 GB, free: 3.809 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4826/1.9, allocations: 43.71 MB / 0.8586 GB, free: 8.621 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.76/25.66, allocations: 7.922 kB / 0.8586 GB, free: 8.613 MB / 0.6387 GB (rm -f IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)