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.004594/0.004594, allocations: 101.8 kB / 15.73 MB, free: 6.477 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.001132/0.001132, allocations: 192.4 kB / 16.67 MB, free: 6.391 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9661/0.9661, allocations: 135.1 MB / 425.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 59.89 kB / 0.5851 GB, free: 3.875 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4382/0.4395, allocations: 80.92 MB / 0.6642 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05828/0.4978, allocations: 61.17 MB / 0.7239 GB, free: 4.266 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01841/0.5163, allocations: 11.98 MB / 0.7356 GB, free: 8.254 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002289/0.5186, allocations: 59.62 kB / 0.7356 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001912/0.5206, allocations: 0.6987 MB / 0.7363 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005502/0.5261, allocations: 2.064 MB / 0.7383 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00318/0.5293, allocations: 1.209 MB / 0.7395 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004228/0.5335, allocations: 3.091 MB / 0.7425 GB, free: 1.121 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001566/0.5351, allocations: 1.096 MB / 0.7436 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003207/0.5383, allocations: 1.376 MB / 0.745 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001302/0.5397, allocations: 0.8828 MB / 0.7458 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001581/0.5398, allocations: 116 kB / 0.7459 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00301/0.5428, allocations: 1.439 MB / 0.7473 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002853/0.5431, allocations: 294.8 kB / 0.7476 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007193/0.5439, allocations: 0.688 MB / 0.7483 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003419/0.5473, allocations: 2.302 MB / 0.7505 GB, free: 8.887 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.5473, allocations: 0 / 0.7505 GB, free: 8.887 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.503e-06/0.5473, allocations: 0 / 0.7505 GB, free: 8.887 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.548e-05/0.5473, allocations: 4 kB / 0.7505 GB, free: 8.883 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.002985/0.5503, allocations: 1.73 MB / 0.7522 GB, free: 7.09 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.5504, allocations: 15.97 kB / 0.7522 GB, free: 7.074 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001369/0.5505, allocations: 118.9 kB / 0.7524 GB, free: 6.949 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001915/0.5525, allocations: 414.4 kB / 0.7528 GB, free: 6.543 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002077/0.5545, allocations: 1.147 MB / 0.7539 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.208e-05/0.5546, allocations: 69.98 kB / 0.7539 GB, free: 5.27 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.5547, allocations: 80 kB / 0.754 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001846/0.5566, allocations: 1.001 MB / 0.755 GB, free: 4.133 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.5566, allocations: 0 / 0.755 GB, free: 4.133 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.689e-05/0.5567, allocations: 36 kB / 0.755 GB, free: 4.098 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.905e-05/0.5567, allocations: 20 kB / 0.755 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002073/0.5588, allocations: 0.8585 MB / 0.7559 GB, free: 3.215 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.006258/0.5651, allocations: 5.231 MB / 0.761 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00302/0.5681, allocations: 0.7817 MB / 0.7618 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000651/0.5688, allocations: 292.7 kB / 0.762 GB, free: 12.53 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007111/0.5695, allocations: 0.9064 MB / 0.7629 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/0.5696, allocations: 46.5 kB / 0.763 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=43): time 2.575e-06/0.5696, allocations: 0 / 0.763 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of matching and sorting (n=43): time 0.007821/0.5774, allocations: 1.842 MB / 0.7648 GB, free: 9.496 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.5775, allocations: 55.41 kB / 0.7648 GB, free: 9.43 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001766/0.5792, allocations: 1.076 MB / 0.7659 GB, free: 8.34 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.777e-05/0.5793, allocations: 37.7 kB / 0.7659 GB, free: 8.297 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000446/0.5798, allocations: 0.5273 MB / 0.7664 GB, free: 7.766 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.5799, allocations: 153.8 kB / 0.7666 GB, free: 7.613 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002321/0.5802, allocations: 134.1 kB / 0.7667 GB, free: 7.477 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.5803, allocations: 337.9 kB / 0.767 GB, free: 7.141 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007926/0.5811, allocations: 307.3 kB / 0.7673 GB, free: 6.836 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/0.5821, allocations: 0.5346 MB / 0.7678 GB, free: 6.207 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00152/0.5837, allocations: 0.7135 MB / 0.7685 GB, free: 5.422 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.5837, allocations: 0 / 0.7685 GB, free: 5.422 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002431/0.5861, allocations: 1.016 MB / 0.7695 GB, free: 4.395 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.5861, allocations: 8 kB / 0.7695 GB, free: 4.387 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.5862, allocations: 8 kB / 0.7695 GB, free: 4.379 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001148/0.5873, allocations: 312.2 kB / 0.7698 GB, free: 4.074 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005133/0.5878, allocations: 127.8 kB / 0.77 GB, free: 3.949 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/0.5892, allocations: 0.8995 MB / 0.7708 GB, free: 3.023 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.5903, allocations: 155.4 kB / 0.771 GB, free: 2.871 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.96e-05/0.5904, allocations: 27.98 kB / 0.771 GB, free: 2.844 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001049/0.5914, allocations: 0.509 MB / 0.7715 GB, free: 2.328 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009192/0.5924, allocations: 0.5346 MB / 0.772 GB, free: 1.699 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001413/0.5938, allocations: 0.7098 MB / 0.7727 GB, free: 0.918 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.649e-06/0.5938, allocations: 4 kB / 0.7727 GB, free: 0.9141 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002325/0.5961, allocations: 1.004 MB / 0.7737 GB, free: 15.9 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.5962, allocations: 8 kB / 0.7737 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.5962, allocations: 4 kB / 0.7737 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009618/0.5971, allocations: 300.7 kB / 0.774 GB, free: 15.59 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005006/0.5976, allocations: 127.8 kB / 0.7741 GB, free: 15.46 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001223/0.5989, allocations: 0.8988 MB / 0.775 GB, free: 14.54 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.5999, allocations: 143.4 kB / 0.7751 GB, free: 14.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.223e-05/0.6, allocations: 35.98 kB / 0.7752 GB, free: 14.37 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.0002139/0.6002, allocations: 217.6 kB / 0.7754 GB, free: 14.15 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001659/0.6004, allocations: 110.7 kB / 0.7755 GB, free: 14.04 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003312/0.6037, allocations: 1.086 MB / 0.7765 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.905e-05/0.6038, allocations: 11.98 kB / 0.7766 GB, free: 12.92 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.6038, allocations: 0 / 0.7766 GB, free: 12.92 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.6038, allocations: 0 / 0.7766 GB, free: 12.92 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004523/0.6083, allocations: 2.15 MB / 0.7787 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.866e-06/0.6083, allocations: 4 kB / 0.7787 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002588/0.6086, allocations: 63.89 kB / 0.7787 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008835/0.6095, allocations: 291.9 kB / 0.779 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.98e-05/0.6095, allocations: 15.98 kB / 0.779 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001293/0.6108, allocations: 0.9268 MB / 0.7799 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.6109, allocations: 8 kB / 0.7799 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00313/0.614, allocations: 1.148 MB / 0.7811 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004429/0.6145, allocations: 263.5 kB / 0.7813 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001709/0.6146, allocations: 8 kB / 0.7813 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007885/0.6154, allocations: 71.92 kB / 0.7814 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.943e-05/0.6155, allocations: 47.77 kB / 0.7814 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.584e-05/0.6156, allocations: 23.98 kB / 0.7814 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001196/0.6168, allocations: 0.7512 MB / 0.7822 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2e-07/0.6168, allocations: 0 / 0.7822 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001564/0.6184, allocations: 0.577 MB / 0.7827 GB, free: 6.406 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.004137/0.6225, allocations: 1.966 MB / 0.7847 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003008/0.6255, allocations: 1.12 MB / 0.7858 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.6256, allocations: 4 kB / 0.7858 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008445/0.6264, allocations: 339.2 kB / 0.7861 GB, free: 2.934 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002661/0.6291, allocations: 0.5016 MB / 0.7866 GB, free: 2.441 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01861/0.6477, allocations: 8.244 MB / 0.7946 GB, free: 9.883 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006984/0.6484, allocations: 1.065 MB / 0.7957 GB, free: 8.789 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0009577/0.6494, allocations: 220.9 kB / 0.7959 GB, free: 8.57 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000617/0.6501, allocations: 411.2 kB / 0.7963 GB, free: 8.168 MB / 0.6231 GB Notification: Performance of SimCode: time 1.042e-06/0.6501, allocations: 0 / 0.7963 GB, free: 8.168 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06451/0.7146, allocations: 33.56 MB / 0.829 GB, free: 7.008 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.7, allocations: 15.7 kB / 0.8291 GB, free: 6.992 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)