Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="IDEAS_dev_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.003997/0.003997, allocations: 98.34 kB / 15.73 MB, free: 6.008 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.001142/0.001142, allocations: 195.8 kB / 16.68 MB, free: 5.934 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.312/1.312, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7927/0.7927, allocations: 135.6 MB / 426.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00181/0.00181, allocations: 66.86 kB / 0.5857 GB, free: 21.47 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1356, allocations: 81.02 MB / 0.6648 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.07079/0.2064, allocations: 70.44 MB / 0.7336 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.3172/0.5237, allocations: 18.9 MB / 0.7521 GB, free: 17.3 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001978/0.5257, allocations: 68.03 kB / 0.7522 GB, free: 17.3 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001721/0.5275, allocations: 0.8223 MB / 0.753 GB, free: 17.3 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006163/0.5336, allocations: 2.847 MB / 0.7557 GB, free: 17.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003348/0.537, allocations: 1.654 MB / 0.7574 GB, free: 17.23 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005105/0.5421, allocations: 4.047 MB / 0.7613 GB, free: 17.23 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002486/0.5446, allocations: 1.456 MB / 0.7627 GB, free: 17.06 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004179/0.5488, allocations: 1.771 MB / 0.7645 GB, free: 17 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001916/0.5507, allocations: 1.18 MB / 0.7656 GB, free: 16.78 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.00024/0.551, allocations: 179.8 kB / 0.7658 GB, free: 16.78 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002784/0.5538, allocations: 1.42 MB / 0.7672 GB, free: 16.75 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000313/0.5541, allocations: 384.1 kB / 0.7675 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000833/0.5549, allocations: 0.9175 MB / 0.7684 GB, free: 16.45 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003396/0.5583, allocations: 3.132 MB / 0.7715 GB, free: 16.08 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.5583, allocations: 1.344 kB / 0.7715 GB, free: 16.08 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.402e-06/0.5584, allocations: 4 kB / 0.7715 GB, free: 16.08 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.785e-05/0.5584, allocations: 0 / 0.7715 GB, free: 16.08 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.002843/0.5612, allocations: 2.079 MB / 0.7735 GB, free: 15 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.5613, allocations: 9.953 kB / 0.7735 GB, free: 15 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001566/0.5614, allocations: 157.9 kB / 0.7737 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002161/0.5636, allocations: 455.1 kB / 0.7741 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002118/0.5657, allocations: 1.564 MB / 0.7756 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.183e-05/0.5658, allocations: 81.84 kB / 0.7757 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/0.566, allocations: 108.9 kB / 0.7758 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002243/0.5682, allocations: 1.315 MB / 0.7771 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/0.5682, allocations: 1.344 kB / 0.7771 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.5683, allocations: 47.59 kB / 0.7772 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.139e-05/0.5684, allocations: 26.34 kB / 0.7772 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002871/0.5712, allocations: 1.099 MB / 0.7783 GB, free: 14.1 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.006654/0.5779, allocations: 7.508 MB / 0.7856 GB, free: 9.285 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003076/0.581, allocations: 0.8204 MB / 0.7864 GB, free: 9.016 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005619/0.5816, allocations: 281.8 kB / 0.7867 GB, free: 8.914 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000766/0.5824, allocations: 1.722 MB / 0.7883 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.6e-05/0.5824, allocations: 37.38 kB / 0.7884 GB, free: 6.871 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 2.234e-06/0.5824, allocations: 1.125 kB / 0.7884 GB, free: 6.871 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.004551/0.5869, allocations: 1.349 MB / 0.7897 GB, free: 6.371 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.348e-05/0.587, allocations: 56.88 kB / 0.7898 GB, free: 6.309 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001978/0.589, allocations: 1.541 MB / 0.7913 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.589, allocations: 39.33 kB / 0.7913 GB, free: 5.648 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004414/0.5895, allocations: 0.6859 MB / 0.792 GB, free: 5.082 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.5896, allocations: 182 kB / 0.7921 GB, free: 4.93 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002647/0.5899, allocations: 172.7 kB / 0.7923 GB, free: 4.824 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.248e-05/0.5899, allocations: 333.5 kB / 0.7926 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009424/0.5909, allocations: 367.2 kB / 0.793 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001068/0.5919, allocations: 0.6621 MB / 0.7936 GB, free: 3.762 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001615/0.5936, allocations: 0.8803 MB / 0.7945 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.5936, allocations: 5.375 kB / 0.7945 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002585/0.5962, allocations: 1.204 MB / 0.7957 GB, free: 2.551 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.5962, allocations: 12.34 kB / 0.7957 GB, free: 2.551 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.5962, allocations: 8.219 kB / 0.7957 GB, free: 2.551 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007808/0.597, allocations: 225.2 kB / 0.7959 GB, free: 2.438 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006998/0.5977, allocations: 182 kB / 0.7961 GB, free: 2.402 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006747/0.5984, allocations: 0.7245 MB / 0.7968 GB, free: 1.773 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/0.5999, allocations: 222.9 kB / 0.797 GB, free: 1.645 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.26e-05/0.6, allocations: 42.45 kB / 0.797 GB, free: 1.637 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.0004336/0.6004, allocations: 358 kB / 0.7974 GB, free: 1.379 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001936/0.6006, allocations: 155.2 kB / 0.7975 GB, free: 1.297 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002092/0.6027, allocations: 1.14 MB / 0.7986 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.6027, allocations: 5.438 kB / 0.7986 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.6027, allocations: 0 / 0.7986 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.6028, allocations: 10.48 kB / 0.7986 GB, free: 0.6484 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004931/0.6077, allocations: 2.503 MB / 0.8011 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.6077, allocations: 2.875 kB / 0.8011 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003486/0.6081, allocations: 89.16 kB / 0.8012 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007114/0.6088, allocations: 204.9 kB / 0.8014 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.516e-05/0.6088, allocations: 20.23 kB / 0.8014 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001321/0.6102, allocations: 0.7665 MB / 0.8021 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.6102, allocations: 6.719 kB / 0.8021 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003347/0.6135, allocations: 1.211 MB / 0.8033 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005207/0.6141, allocations: 366.2 kB / 0.8037 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001854/0.6143, allocations: 24.92 kB / 0.8037 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000888/0.6152, allocations: 74.19 kB / 0.8038 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.076e-05/0.6153, allocations: 37.62 kB / 0.8038 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.769e-05/0.6153, allocations: 26.77 kB / 0.8038 GB, free: 13 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001619/0.6169, allocations: 1.088 MB / 0.8049 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.01e-07/0.617, allocations: 0 / 0.8049 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001263/0.6182, allocations: 448.4 kB / 0.8053 GB, free: 12.3 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.004475/0.6227, allocations: 2.135 MB / 0.8074 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002078/0.6248, allocations: 0.8483 MB / 0.8082 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.6248, allocations: 2.938 kB / 0.8082 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001295/0.6261, allocations: 441.3 kB / 0.8087 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002937/0.6291, allocations: 0.7382 MB / 0.8094 GB, free: 9.977 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01767/0.6467, allocations: 10.5 MB / 0.8196 GB, free: 1.047 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008392/0.6476, allocations: 1.176 MB / 0.8208 GB, free: 15.84 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001003/0.6486, allocations: 262.8 kB / 0.821 GB, free: 15.59 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007722/0.6494, allocations: 0.55 MB / 0.8216 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of SimCode: time 7.72e-07/0.6494, allocations: 0 / 0.8216 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6251/1.275, allocations: 43.72 MB / 0.8643 GB, free: 3.863 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.1/15.38, allocations: 2.031 kB / 0.8643 GB, free: 3.863 MB / 0.6387 GB (rm -f IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)