Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.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.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",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.007457/0.007457, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001695/0.001695, allocations: 190.4 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9175/0.9175, allocations: 135.1 MB / 425.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 63.91 kB / 0.5852 GB, free: 3.844 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4276/0.4291, allocations: 80.91 MB / 0.6642 GB, free: 7.242 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1735/0.6027, allocations: 161.6 MB / 0.822 GB, free: 15.36 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.003033/0.6057, allocations: 1.758 MB / 0.8237 GB, free: 13.6 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003527/0.6061, allocations: 15.88 kB / 0.8237 GB, free: 13.59 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0006476/0.6068, allocations: 163 kB / 0.8239 GB, free: 13.43 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.001356/0.6082, allocations: 0.5557 MB / 0.8244 GB, free: 12.87 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.001141/0.6094, allocations: 388.7 kB / 0.8248 GB, free: 12.49 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.002587/0.6119, allocations: 2.541 MB / 0.8273 GB, free: 9.945 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/0.6132, allocations: 0.9255 MB / 0.8282 GB, free: 9.008 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00183/0.615, allocations: 1.028 MB / 0.8292 GB, free: 7.977 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001281/0.6163, allocations: 0.7156 MB / 0.8299 GB, free: 7.258 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0001481/0.6165, allocations: 56 kB / 0.8299 GB, free: 7.203 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001834/0.6183, allocations: 0.7445 MB / 0.8307 GB, free: 6.457 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0004071/0.6188, allocations: 306.9 kB / 0.831 GB, free: 6.156 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.000742/0.6195, allocations: 0.5401 MB / 0.8315 GB, free: 5.613 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.001624/0.6211, allocations: 1.41 MB / 0.8329 GB, free: 4.199 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.6212, allocations: 0 / 0.8329 GB, free: 4.199 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.453e-06/0.6212, allocations: 0 / 0.8329 GB, free: 4.199 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.733e-05/0.6212, allocations: 0 / 0.8329 GB, free: 4.199 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002371/0.6236, allocations: 1.451 MB / 0.8343 GB, free: 2.684 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.6236, allocations: 8.031 kB / 0.8343 GB, free: 2.676 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001051/0.6237, allocations: 90.52 kB / 0.8344 GB, free: 2.578 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000753/0.6245, allocations: 194.5 kB / 0.8346 GB, free: 2.387 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001307/0.6258, allocations: 0.8567 MB / 0.8354 GB, free: 1.473 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.124e-05/0.6259, allocations: 45 kB / 0.8354 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.192e-05/0.626, allocations: 60 kB / 0.8355 GB, free: 1.371 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/0.627, allocations: 0.7849 MB / 0.8363 GB, free: 0.5156 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.6271, allocations: 7.938 kB / 0.8363 GB, free: 0.5078 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.923e-05/0.6271, allocations: 20 kB / 0.8363 GB, free: 500 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.6271, allocations: 23.88 kB / 0.8363 GB, free: 476 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008476/0.628, allocations: 0.5384 MB / 0.8368 GB, free: 15.92 MB / 0.67 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.003967/0.632, allocations: 4.587 MB / 0.8413 GB, free: 10.95 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000684/0.6327, allocations: 410.8 kB / 0.8417 GB, free: 10.54 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003568/0.633, allocations: 246.2 kB / 0.8419 GB, free: 10.3 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003378/0.6334, allocations: 202.2 kB / 0.8421 GB, free: 10.07 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000512/0.6339, allocations: 293.1 kB / 0.8424 GB, free: 9.762 MB / 0.67 GB Notification: Performance of pre-optimization done (n=31): time 2.475e-06/0.6339, allocations: 0 / 0.8424 GB, free: 9.762 MB / 0.67 GB Notification: Performance of matching and sorting (n=31): time 0.001408/0.6353, allocations: 0.636 MB / 0.843 GB, free: 9.121 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/0.6354, allocations: 81.11 kB / 0.8431 GB, free: 9.023 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001275/0.6367, allocations: 1.121 MB / 0.8442 GB, free: 7.883 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 5.398e-05/0.6368, allocations: 37.75 kB / 0.8443 GB, free: 7.844 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003651/0.6371, allocations: 492.1 kB / 0.8447 GB, free: 7.359 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 8.516e-05/0.6372, allocations: 114.5 kB / 0.8448 GB, free: 7.246 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.6374, allocations: 109.9 kB / 0.8449 GB, free: 7.133 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.6375, allocations: 326 kB / 0.8452 GB, free: 6.809 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003543/0.6379, allocations: 214.4 kB / 0.8454 GB, free: 6.594 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000549/0.6384, allocations: 0.5174 MB / 0.846 GB, free: 5.941 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008299/0.6393, allocations: 0.6346 MB / 0.8466 GB, free: 5.227 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.6393, allocations: 4 kB / 0.8466 GB, free: 5.223 MB / 0.67 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001143/0.6404, allocations: 0.7203 MB / 0.8473 GB, free: 4.488 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 4.226e-05/0.6405, allocations: 33.7 kB / 0.8473 GB, free: 4.449 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.6405, allocations: 4.656 kB / 0.8473 GB, free: 4.445 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.6405, allocations: 12 kB / 0.8473 GB, free: 4.434 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004056/0.6409, allocations: 111.8 kB / 0.8474 GB, free: 4.324 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/0.641, allocations: 11.94 kB / 0.8474 GB, free: 4.312 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005616/0.6415, allocations: 75.47 kB / 0.8475 GB, free: 4.238 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.382e-05/0.6416, allocations: 24 kB / 0.8475 GB, free: 4.215 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006242/0.6422, allocations: 0.5006 MB / 0.848 GB, free: 3.707 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004898/0.6427, allocations: 489.9 kB / 0.8485 GB, free: 3.098 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006704/0.6434, allocations: 0.5566 MB / 0.849 GB, free: 2.461 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.04e-06/0.6434, allocations: 4 kB / 0.849 GB, free: 2.457 MB / 0.67 GB Notification: Performance of matching and sorting (n=54) (initialization_lambda0): time 0.0009548/0.6444, allocations: 0.6382 MB / 0.8497 GB, free: 1.805 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.6444, allocations: 37.69 kB / 0.8497 GB, free: 1.762 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.6444, allocations: 4 kB / 0.8497 GB, free: 1.758 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.183e-06/0.6444, allocations: 8 kB / 0.8497 GB, free: 1.75 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003356/0.6448, allocations: 108.4 kB / 0.8498 GB, free: 1.645 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.6448, allocations: 8 kB / 0.8498 GB, free: 1.637 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005269/0.6453, allocations: 67.97 kB / 0.8499 GB, free: 1.57 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/0.6454, allocations: 31.92 kB / 0.8499 GB, free: 1.539 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 (pulse_p.count,$PRE.pulse_p.count,pulse_p.T_start,$PRE.pulse_p.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 1 * 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.0001923/0.6456, allocations: 215.4 kB / 0.8501 GB, free: 1.324 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.6457, allocations: 102.8 kB / 0.8502 GB, free: 1.223 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009363/0.6467, allocations: 498.9 kB / 0.8507 GB, free: 0.7266 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.6467, allocations: 4 kB / 0.8507 GB, free: 0.7227 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.6467, allocations: 3.938 kB / 0.8507 GB, free: 0.7188 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.6467, allocations: 4 kB / 0.8507 GB, free: 0.7148 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001805/0.6485, allocations: 1.376 MB / 0.8521 GB, free: 15.26 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.6485, allocations: 8 kB / 0.8521 GB, free: 15.25 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002244/0.6488, allocations: 67.83 kB / 0.8521 GB, free: 15.19 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.6488, allocations: 4.219 kB / 0.8521 GB, free: 15.18 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.492e-05/0.6488, allocations: 8 kB / 0.8521 GB, free: 15.18 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.6488, allocations: 4 kB / 0.8521 GB, free: 15.17 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.6488, allocations: 4 kB / 0.8521 GB, free: 15.17 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007847/0.6496, allocations: 0.6022 MB / 0.8527 GB, free: 14.53 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002546/0.6499, allocations: 211.8 kB / 0.8529 GB, free: 14.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.344e-05/0.65, allocations: 11.98 kB / 0.853 GB, free: 14.29 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003448/0.6503, allocations: 19.98 kB / 0.853 GB, free: 14.27 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.278e-05/0.6504, allocations: 35.89 kB / 0.853 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.6505, allocations: 19.94 kB / 0.853 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0009051/0.6514, allocations: 0.7836 MB / 0.8538 GB, free: 13.42 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6514, allocations: 0 / 0.8538 GB, free: 13.42 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001107/0.6525, allocations: 411.4 kB / 0.8542 GB, free: 13.02 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse_p.T_start,pulse_p.count) * Number of discrete states: 1 (pulse_p.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001358/0.6539, allocations: 1.211 MB / 0.8554 GB, free: 11.77 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.001304/0.6552, allocations: 0.8239 MB / 0.8562 GB, free: 10.92 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.6552, allocations: 0 / 0.8562 GB, free: 10.92 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0003432/0.6555, allocations: 208.5 kB / 0.8564 GB, free: 10.72 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/0.6573, allocations: 458.6 kB / 0.8568 GB, free: 10.28 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/0.6674, allocations: 8.151 MB / 0.8648 GB, free: 1.797 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006606/0.6681, allocations: 1.176 MB / 0.8659 GB, free: 0.5898 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0009577/0.6691, allocations: 415.7 kB / 0.8663 GB, free: 184 kB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.341/1.01, allocations: 316.5 kB / 0.8666 GB, free: 190.9 MB / 0.6856 GB Notification: Performance of SimCode: time 1.623e-06/1.01, allocations: 0.5938 kB / 0.8666 GB, free: 190.9 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05683/1.067, allocations: 26.1 MB / 0.8921 GB, free: 180.2 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.241/10.31, allocations: 9.625 kB / 0.8921 GB, free: 180.2 MB / 0.6856 GB (rm -f IDEAS_dev_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.fmu > IDEAS_dev_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1)