Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.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.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_PrescribedOutlet_Water",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.0009145/0.0009145, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001095/0.001095, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7336/0.7336, allocations: 132.3 MB / 423.4 MB, free: 2.113 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003268/0.000327, allocations: 16.59 kB / 0.5035 GB, free: 4.168 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3935/0.3939, allocations: 81.57 MB / 0.5832 GB, free: 4 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02848/0.4224, allocations: 26.93 MB / 0.6094 GB, free: 348 kB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.009437/0.4319, allocations: 6.479 MB / 0.6158 GB, free: 11.07 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001106/0.433, allocations: 39.91 kB / 0.6158 GB, free: 11.05 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001292/0.4343, allocations: 0.5499 MB / 0.6164 GB, free: 10.66 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002782/0.4371, allocations: 1.195 MB / 0.6175 GB, free: 9.738 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002375/0.4395, allocations: 0.9319 MB / 0.6184 GB, free: 9.09 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00316/0.4427, allocations: 2.763 MB / 0.6211 GB, free: 7.445 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009523/0.4436, allocations: 0.6412 MB / 0.6218 GB, free: 7.043 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001535/0.4452, allocations: 0.8956 MB / 0.6226 GB, free: 6.555 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000909/0.4461, allocations: 0.7525 MB / 0.6234 GB, free: 6.137 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.532e-05/0.4462, allocations: 35.94 kB / 0.6234 GB, free: 6.137 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001366/0.4476, allocations: 0.4927 MB / 0.6239 GB, free: 5.898 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002362/0.4478, allocations: 242.3 kB / 0.6241 GB, free: 5.734 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00023/0.4481, allocations: 233.9 kB / 0.6243 GB, free: 5.598 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.4492, allocations: 1.027 MB / 0.6253 GB, free: 4.949 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.4492, allocations: 0 / 0.6253 GB, free: 4.949 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4492, allocations: 4 kB / 0.6253 GB, free: 4.945 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.461e-05/0.4492, allocations: 0.75 kB / 0.6253 GB, free: 4.945 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.002168/0.4514, allocations: 1.375 MB / 0.6267 GB, free: 3.812 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.4514, allocations: 8.031 kB / 0.6267 GB, free: 3.805 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001211/0.4516, allocations: 118.5 kB / 0.6268 GB, free: 3.68 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002945/0.4545, allocations: 0.6344 MB / 0.6274 GB, free: 3.043 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.4557, allocations: 0.7584 MB / 0.6282 GB, free: 2.23 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.106e-05/0.4557, allocations: 62 kB / 0.6282 GB, free: 2.168 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.4559, allocations: 75.98 kB / 0.6283 GB, free: 2.094 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002081/0.4579, allocations: 1.103 MB / 0.6294 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.458, allocations: 0 / 0.6294 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.054e-05/0.4581, allocations: 39.94 kB / 0.6294 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.4581, allocations: 20 kB / 0.6294 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002616/0.4607, allocations: 1.02 MB / 0.6304 GB, free: 15.83 MB / 478.1 MB 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.004839/0.4655, allocations: 4.971 MB / 0.6353 GB, free: 10.57 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002533/0.4681, allocations: 0.9498 MB / 0.6362 GB, free: 9.609 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.4693, allocations: 494.2 kB / 0.6367 GB, free: 9.121 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00124/0.4706, allocations: 1.6 MB / 0.6382 GB, free: 7.172 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001412/0.472, allocations: 0.5923 MB / 0.6388 GB, free: 6.57 MB / 478.1 MB Notification: Performance of pre-optimization done (n=61): time 2.285e-06/0.472, allocations: 0 / 0.6388 GB, free: 6.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=61): time 0.004119/0.4762, allocations: 1.516 MB / 0.6403 GB, free: 5.051 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.4762, allocations: 59.97 kB / 0.6404 GB, free: 4.98 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001168/0.4774, allocations: 1.104 MB / 0.6414 GB, free: 3.863 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.237e-05/0.4775, allocations: 45.69 kB / 0.6415 GB, free: 3.812 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004012/0.4779, allocations: 0.5434 MB / 0.642 GB, free: 3.262 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/0.4781, allocations: 209.1 kB / 0.6422 GB, free: 3.055 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.042e-05/0.4781, allocations: 20 kB / 0.6422 GB, free: 3.035 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.4782, allocations: 333.9 kB / 0.6425 GB, free: 2.703 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.4795, allocations: 457.6 kB / 0.643 GB, free: 2.254 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/0.481, allocations: 0.7242 MB / 0.6437 GB, free: 1.422 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/0.4824, allocations: 0.49 MB / 0.6442 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.4824, allocations: 4 kB / 0.6442 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003014/0.4854, allocations: 1.286 MB / 0.6454 GB, free: 15.63 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.4855, allocations: 8 kB / 0.6454 GB, free: 15.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/0.4855, allocations: 11.95 kB / 0.6454 GB, free: 15.61 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.4855, allocations: 16.69 kB / 0.6455 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/0.4866, allocations: 275.6 kB / 0.6457 GB, free: 15.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.03e-05/0.4867, allocations: 19.92 kB / 0.6457 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/0.4877, allocations: 202.9 kB / 0.6459 GB, free: 15.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.682e-05/0.4878, allocations: 47.97 kB / 0.646 GB, free: 15.06 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$PRE.setHeaHigPow.nextTimeEvent,$whenCondition2,$PRE.setCooLimPow.nextTimeEvent,$whenCondition1,$PRE.setHeaCooUnl.nextTimeEvent,setHeaHigPow.nextTimeEvent,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003908/0.4882, allocations: 291.8 kB / 0.6463 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.4884, allocations: 122.5 kB / 0.6464 GB, free: 14.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003256/0.4916, allocations: 1.378 MB / 0.6477 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.888e-05/0.4917, allocations: 15.94 kB / 0.6477 GB, free: 13.26 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.4917, allocations: 0 / 0.6477 GB, free: 13.26 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.4917, allocations: 7.984 kB / 0.6477 GB, free: 13.25 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004337/0.496, allocations: 2.39 MB / 0.6501 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.4961, allocations: 0 / 0.6501 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008947/0.497, allocations: 195.8 kB / 0.6503 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.775e-06/0.497, allocations: 4 kB / 0.6503 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.945e-05/0.4971, allocations: 23.97 kB / 0.6503 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.523e-06/0.4971, allocations: 8 kB / 0.6503 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4971, allocations: 4 kB / 0.6503 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004317/0.5014, allocations: 2.001 MB / 0.6523 GB, free: 8.523 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003942/0.5018, allocations: 291.2 kB / 0.6525 GB, free: 8.219 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001352/0.502, allocations: 12 kB / 0.6525 GB, free: 8.207 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008497/0.5028, allocations: 131.8 kB / 0.6527 GB, free: 8.078 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.5029, allocations: 56.39 kB / 0.6527 GB, free: 8.023 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.157e-05/0.503, allocations: 43.91 kB / 0.6528 GB, free: 7.98 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008615/0.5039, allocations: 0.756 MB / 0.6535 GB, free: 7.219 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5039, allocations: 0 / 0.6535 GB, free: 7.219 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001031/0.5049, allocations: 335.6 kB / 0.6538 GB, free: 6.891 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (heaHigPow.T,cooLimPow.T,heaCooUnl.T) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005999/0.5109, allocations: 3.086 MB / 0.6568 GB, free: 3.961 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002912/0.5139, allocations: 1.126 MB / 0.6579 GB, free: 2.832 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.5139, allocations: 0 / 0.6579 GB, free: 2.832 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.5153, allocations: 0.5892 MB / 0.6585 GB, free: 2.242 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002004/0.5173, allocations: 436.2 kB / 0.6589 GB, free: 1.824 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.5307, allocations: 7.638 MB / 0.6664 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007658/0.5315, allocations: 1.104 MB / 0.6675 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00113/0.5326, allocations: 247.1 kB / 0.6677 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000613/0.5333, allocations: 455.2 kB / 0.6681 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of SimCode: time 5.21e-07/0.5333, allocations: 0 / 0.6681 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08013/0.6134, allocations: 29.1 MB / 0.6966 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001862/0.6136, allocations: 228.6 kB / 0.6968 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.437/3.051, allocations: 4 kB / 0.6968 GB, free: 11.09 MB / 0.5294 GB (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1) Environment - environmentSimulation: