Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="IDEAS_dev_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.00108/0.00108, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 198.6 kB / 16.54 MB, free: 6.672 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.27/1.27, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8667/0.8667, allocations: 135.1 MB / 425.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 64.33 kB / 0.5054 GB, free: 5.215 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1466, allocations: 80.92 MB / 0.5845 GB, free: 4.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.2626/0.4092, allocations: 29.32 MB / 0.6131 GB, free: 35.97 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006907/0.4161, allocations: 6.881 MB / 0.6198 GB, free: 34.94 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000658/0.4168, allocations: 44.59 kB / 0.6199 GB, free: 34.92 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.4179, allocations: 0.6986 MB / 0.6205 GB, free: 34.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002206/0.4201, allocations: 1.447 MB / 0.622 GB, free: 33.82 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00188/0.422, allocations: 1.147 MB / 0.6231 GB, free: 33.26 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001432/0.4234, allocations: 2.48 MB / 0.6255 GB, free: 32.15 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006412/0.4241, allocations: 0.7934 MB / 0.6263 GB, free: 31.82 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009101/0.425, allocations: 0.9996 MB / 0.6272 GB, free: 31.38 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005872/0.4256, allocations: 0.8128 MB / 0.628 GB, free: 31.05 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.4257, allocations: 67.62 kB / 0.6281 GB, free: 31.05 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001092/0.4268, allocations: 0.8238 MB / 0.6289 GB, free: 30.73 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001607/0.427, allocations: 277.6 kB / 0.6292 GB, free: 30.59 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003111/0.4273, allocations: 0.5515 MB / 0.6297 GB, free: 30.24 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001174/0.4285, allocations: 1.606 MB / 0.6313 GB, free: 29.62 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.4285, allocations: 7.281 kB / 0.6313 GB, free: 29.61 MB / 0.4981 GB Notification: Performance of FrontEnd: time 9.22e-07/0.4285, allocations: 0 / 0.6313 GB, free: 29.61 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.118e-05/0.4285, allocations: 0 / 0.6313 GB, free: 29.61 MB / 0.4981 GB 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.001829/0.4303, allocations: 1.565 MB / 0.6328 GB, free: 28.55 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.963e-05/0.4304, allocations: 15.41 kB / 0.6328 GB, free: 28.55 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.468e-05/0.4305, allocations: 113 kB / 0.6329 GB, free: 28.47 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003057/0.4335, allocations: 0.5779 MB / 0.6335 GB, free: 28.38 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000898/0.4344, allocations: 0.8039 MB / 0.6343 GB, free: 27.87 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.93e-05/0.4345, allocations: 67.66 kB / 0.6344 GB, free: 27.83 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.4346, allocations: 77.38 kB / 0.6344 GB, free: 27.8 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001889/0.4365, allocations: 1.104 MB / 0.6355 GB, free: 27.29 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.4365, allocations: 3.938 kB / 0.6355 GB, free: 27.29 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.954e-05/0.4366, allocations: 38.56 kB / 0.6355 GB, free: 27.26 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.4366, allocations: 17.44 kB / 0.6356 GB, free: 27.26 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002643/0.4393, allocations: 0.9991 MB / 0.6365 GB, free: 27 MB / 0.4981 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.004131/0.4434, allocations: 4.941 MB / 0.6414 GB, free: 23.16 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002706/0.4461, allocations: 0.9039 MB / 0.6422 GB, free: 22.9 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/0.4474, allocations: 494.6 kB / 0.6427 GB, free: 22.77 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009833/0.4484, allocations: 1.585 MB / 0.6443 GB, free: 20.96 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001488/0.4499, allocations: 0.5819 MB / 0.6448 GB, free: 20.77 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=61): time 3.567e-06/0.45, allocations: 7.047 kB / 0.6448 GB, free: 20.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=61): time 0.004447/0.4544, allocations: 1.477 MB / 0.6463 GB, free: 20.34 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/0.4545, allocations: 65.12 kB / 0.6463 GB, free: 20.27 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001176/0.4556, allocations: 1.113 MB / 0.6474 GB, free: 19.86 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.949e-05/0.4557, allocations: 39.17 kB / 0.6475 GB, free: 19.82 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003012/0.456, allocations: 0.5463 MB / 0.648 GB, free: 19.38 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.4562, allocations: 208.8 kB / 0.6482 GB, free: 19.22 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000235/0.4564, allocations: 161.1 kB / 0.6484 GB, free: 19.15 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.354e-05/0.4565, allocations: 335.4 kB / 0.6487 GB, free: 18.84 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001452/0.4579, allocations: 449 kB / 0.6491 GB, free: 18.72 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00163/0.4596, allocations: 0.7136 MB / 0.6498 GB, free: 18.29 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003025/0.4626, allocations: 1.118 MB / 0.6509 GB, free: 17.71 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.4626, allocations: 2.688 kB / 0.6509 GB, free: 17.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003679/0.4663, allocations: 1.279 MB / 0.6521 GB, free: 17.28 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.4663, allocations: 13.48 kB / 0.6522 GB, free: 17.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.4664, allocations: 7.781 kB / 0.6522 GB, free: 17.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.797e-05/0.4664, allocations: 12.06 kB / 0.6522 GB, free: 17.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00123/0.4676, allocations: 271.2 kB / 0.6524 GB, free: 17.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.005e-05/0.4677, allocations: 17.28 kB / 0.6525 GB, free: 17.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.4688, allocations: 184.8 kB / 0.6526 GB, free: 17.17 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.071e-05/0.4689, allocations: 43.67 kB / 0.6527 GB, free: 17.17 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.setHeaHigPow.nextTimeEvent,$whenCondition3,$PRE.setCooLimPow.nextTimeEvent,$whenCondition2,$PRE.setHeaCooUnl.nextTimeEvent,$whenCondition1,setHeaCooUnl.nextTimeEventScaled,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setCooLimPow.nextTimeEventScaled,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004242/0.4694, allocations: 292.5 kB / 0.6529 GB, free: 16.97 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001763/0.4695, allocations: 123.3 kB / 0.6531 GB, free: 16.9 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003792/0.4733, allocations: 1.36 MB / 0.6544 GB, free: 16.49 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.148e-05/0.4734, allocations: 14.23 kB / 0.6544 GB, free: 16.48 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.4734, allocations: 0 / 0.6544 GB, free: 16.48 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.4734, allocations: 4.719 kB / 0.6544 GB, free: 16.48 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005038/0.4785, allocations: 2.377 MB / 0.6567 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.4785, allocations: 1.188 kB / 0.6567 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001295/0.4798, allocations: 192 kB / 0.6569 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.026e-05/0.4798, allocations: 3.656 kB / 0.6569 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.808e-05/0.4799, allocations: 24.92 kB / 0.6569 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.246e-06/0.4799, allocations: 10.39 kB / 0.657 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.4799, allocations: 5.344 kB / 0.657 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005005/0.4849, allocations: 1.971 MB / 0.6589 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003911/0.4853, allocations: 274.7 kB / 0.6591 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001514/0.4855, allocations: 20.12 kB / 0.6592 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009595/0.4864, allocations: 105.5 kB / 0.6593 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.4866, allocations: 61.22 kB / 0.6593 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.439e-05/0.4867, allocations: 32.89 kB / 0.6594 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009343/0.4876, allocations: 0.7637 MB / 0.6601 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.71e-07/0.4876, allocations: 4 kB / 0.6601 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001057/0.4887, allocations: 347.4 kB / 0.6604 GB, free: 14.05 MB / 0.4981 GB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006387/0.4951, allocations: 3.061 MB / 0.6634 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00372/0.4988, allocations: 1.183 MB / 0.6646 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.4988, allocations: 0 / 0.6646 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001656/0.5005, allocations: 0.5815 MB / 0.6652 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002016/0.5025, allocations: 468.8 kB / 0.6656 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01765/0.5202, allocations: 10.2 MB / 0.6756 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006045/0.5208, allocations: 1.112 MB / 0.6766 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001149/0.522, allocations: 241.4 kB / 0.6769 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000543/0.5225, allocations: 460.3 kB / 0.6773 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of SimCode: time 6.81e-07/0.5225, allocations: 0 / 0.6773 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2176/0.7401, allocations: 30.32 MB / 0.7069 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.469/9.209, allocations: 7.484 kB / 0.7069 GB, free: 14.52 MB / 0.5294 GB (rm -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)