Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.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.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatPumps_Examples_Carnot_TCon",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.005823/0.005823, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.00126/0.00126, allocations: 186.3 kB / 16.67 MB, free: 5.977 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9741/0.9741, allocations: 135.1 MB / 425.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002442/0.002442, allocations: 63.89 kB / 0.5851 GB, free: 3.809 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4506/0.453, allocations: 80.91 MB / 0.6642 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06041/0.5135, allocations: 61.17 MB / 0.7239 GB, free: 4.223 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01822/0.5317, allocations: 11.97 MB / 0.7356 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002647/0.5344, allocations: 55.69 kB / 0.7356 GB, free: 8.16 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002582/0.5371, allocations: 0.6869 MB / 0.7363 GB, free: 7.469 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006345/0.5435, allocations: 1.958 MB / 0.7382 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003593/0.5471, allocations: 1.217 MB / 0.7394 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004806/0.552, allocations: 3.079 MB / 0.7424 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001925/0.5539, allocations: 1.104 MB / 0.7435 GB, free: 80 kB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003622/0.5575, allocations: 1.363 MB / 0.7448 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001882/0.5594, allocations: 0.8906 MB / 0.7457 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003673/0.5598, allocations: 116 kB / 0.7458 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002989/0.5628, allocations: 1.431 MB / 0.7472 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004887/0.5633, allocations: 298.8 kB / 0.7475 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001261/0.5646, allocations: 0.6881 MB / 0.7481 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004057/0.5687, allocations: 2.306 MB / 0.7504 GB, free: 8.977 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.5687, allocations: 4 kB / 0.7504 GB, free: 8.973 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.664e-06/0.5687, allocations: 0 / 0.7504 GB, free: 8.973 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.35e-05/0.5688, allocations: 0 / 0.7504 GB, free: 8.973 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003976/0.5728, allocations: 1.722 MB / 0.7521 GB, free: 7.188 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.5728, allocations: 8.031 kB / 0.7521 GB, free: 7.18 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002215/0.573, allocations: 130.9 kB / 0.7522 GB, free: 7.043 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002235/0.5753, allocations: 410.4 kB / 0.7526 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00264/0.5779, allocations: 1.159 MB / 0.7537 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.063e-05/0.578, allocations: 62 kB / 0.7538 GB, free: 5.363 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.5782, allocations: 80 kB / 0.7539 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00219/0.5804, allocations: 0.9976 MB / 0.7549 GB, free: 4.23 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.5804, allocations: 4 kB / 0.7549 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-05/0.5805, allocations: 32 kB / 0.7549 GB, free: 4.195 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.364e-05/0.5806, allocations: 20 kB / 0.7549 GB, free: 4.176 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002378/0.583, allocations: 0.8663 MB / 0.7558 GB, free: 3.305 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.00759/0.5906, allocations: 5.216 MB / 0.7608 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003435/0.594, allocations: 0.791 MB / 0.7616 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007207/0.5948, allocations: 296.6 kB / 0.7619 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000698/0.5955, allocations: 0.9064 MB / 0.7628 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/0.5955, allocations: 38.56 kB / 0.7628 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=43): time 2.955e-06/0.5956, allocations: 0 / 0.7628 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of matching and sorting (n=43): time 0.008464/0.604, allocations: 1.846 MB / 0.7646 GB, free: 9.594 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.6041, allocations: 55.41 kB / 0.7647 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002006/0.6061, allocations: 1.079 MB / 0.7657 GB, free: 8.434 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.863e-05/0.6063, allocations: 37.7 kB / 0.7658 GB, free: 8.391 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004588/0.6067, allocations: 0.5234 MB / 0.7663 GB, free: 7.863 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.6069, allocations: 149.8 kB / 0.7664 GB, free: 7.715 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002517/0.6071, allocations: 138.1 kB / 0.7666 GB, free: 7.574 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.6073, allocations: 333.9 kB / 0.7669 GB, free: 7.242 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008994/0.6082, allocations: 307.3 kB / 0.7672 GB, free: 6.938 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001093/0.6093, allocations: 0.5385 MB / 0.7677 GB, free: 6.305 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001685/0.611, allocations: 0.7097 MB / 0.7684 GB, free: 5.523 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.611, allocations: 8 kB / 0.7684 GB, free: 5.516 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002847/0.6139, allocations: 1.016 MB / 0.7694 GB, free: 4.488 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.6139, allocations: 8 kB / 0.7694 GB, free: 4.48 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.6139, allocations: 4 kB / 0.7694 GB, free: 4.477 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001253/0.6152, allocations: 308.6 kB / 0.7697 GB, free: 4.172 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005654/0.6158, allocations: 127.8 kB / 0.7698 GB, free: 4.047 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001453/0.6172, allocations: 0.9073 MB / 0.7707 GB, free: 3.113 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.6185, allocations: 143.3 kB / 0.7708 GB, free: 2.973 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.6186, allocations: 39.92 kB / 0.7709 GB, free: 2.934 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001218/0.6198, allocations: 0.5051 MB / 0.7714 GB, free: 2.422 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001077/0.6209, allocations: 0.5269 MB / 0.7719 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001657/0.6226, allocations: 0.7098 MB / 0.7726 GB, free: 1.02 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.619e-06/0.6226, allocations: 0 / 0.7726 GB, free: 1.02 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002818/0.6254, allocations: 1.008 MB / 0.7736 GB, free: 0 / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.521e-05/0.6255, allocations: 8.047 kB / 0.7736 GB, free: 15.99 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.6255, allocations: 7.938 kB / 0.7736 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.6266, allocations: 307.4 kB / 0.7739 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005424/0.6272, allocations: 127.8 kB / 0.774 GB, free: 15.56 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/0.6285, allocations: 0.8956 MB / 0.7749 GB, free: 14.64 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.6298, allocations: 143.5 kB / 0.775 GB, free: 14.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.266e-05/0.6299, allocations: 31.98 kB / 0.775 GB, free: 14.46 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 56 * 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,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0002541/0.6302, allocations: 216.1 kB / 0.7752 GB, free: 14.25 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000293/0.6305, allocations: 110.6 kB / 0.7753 GB, free: 14.14 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003843/0.6343, allocations: 1.09 MB / 0.7764 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.6344, allocations: 4 kB / 0.7764 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.6344, allocations: 0 / 0.7764 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.6344, allocations: 7.984 kB / 0.7764 GB, free: 13.01 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005333/0.6397, allocations: 2.15 MB / 0.7785 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.6398, allocations: 0 / 0.7785 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000283/0.6401, allocations: 60.17 kB / 0.7786 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009957/0.6411, allocations: 302.9 kB / 0.7789 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.322e-05/0.6411, allocations: 12 kB / 0.7789 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001434/0.6426, allocations: 0.9307 MB / 0.7798 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.6426, allocations: 0 / 0.7798 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003683/0.6463, allocations: 1.152 MB / 0.7809 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005992/0.6469, allocations: 263.5 kB / 0.7812 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002353/0.6471, allocations: 12 kB / 0.7812 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008836/0.648, allocations: 75.91 kB / 0.7812 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.827e-05/0.6481, allocations: 39.77 kB / 0.7813 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.531e-05/0.6482, allocations: 23.98 kB / 0.7813 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001362/0.6496, allocations: 0.7512 MB / 0.782 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6496, allocations: 4 kB / 0.782 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001876/0.6515, allocations: 0.5653 MB / 0.7826 GB, free: 6.508 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004802/0.6563, allocations: 1.965 MB / 0.7845 GB, free: 4.492 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003324/0.6596, allocations: 1.121 MB / 0.7856 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.6596, allocations: 0 / 0.7856 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0009133/0.6606, allocations: 347.2 kB / 0.7859 GB, free: 3.035 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002776/0.6634, allocations: 0.5038 MB / 0.7864 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01741/0.6808, allocations: 8.244 MB / 0.7945 GB, free: 9.977 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007255/0.6816, allocations: 1.061 MB / 0.7955 GB, free: 8.887 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0008862/0.6825, allocations: 220.8 kB / 0.7957 GB, free: 8.668 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005634/0.683, allocations: 411.3 kB / 0.7961 GB, free: 8.266 MB / 0.6231 GB Notification: Performance of SimCode: time 8.21e-07/0.6831, allocations: 4 kB / 0.7961 GB, free: 8.262 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06807/0.7511, allocations: 34.23 MB / 0.8296 GB, free: 6.43 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/14.02, allocations: 11.7 kB / 0.8296 GB, free: 6.418 MB / 0.6544 GB (rm -f IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_HeatPumps_Examples_Carnot_TCon_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)