Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.FlowJunction.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.FixedResistances.Examples.FlowJunction,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_FixedResistances_Examples_FlowJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_FixedResistances_Examples_FlowJunction",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.007191/0.007191, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001094/0.001094, allocations: 193.6 kB / 16.67 MB, free: 5.934 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.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7894/0.7894, allocations: 135.1 MB / 425.7 MB, free: 4.047 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 83.05 kB / 0.5851 GB, free: 21.91 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1201, allocations: 80.92 MB / 0.6641 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FixedResistances.Examples.FlowJunction): time 0.5031/0.6232, allocations: 239.9 MB / 0.8984 GB, free: 15.43 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.01051/0.6338, allocations: 7.193 MB / 0.9054 GB, free: 8.227 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001189/0.635, allocations: 55.69 kB / 0.9055 GB, free: 8.172 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.001722/0.6368, allocations: 0.7144 MB / 0.9062 GB, free: 7.453 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.004587/0.6414, allocations: 2.17 MB / 0.9083 GB, free: 5.277 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.00425/0.6456, allocations: 2.054 MB / 0.9103 GB, free: 3.23 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.00356/0.6492, allocations: 3.273 MB / 0.9135 GB, free: 15.95 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001559/0.6508, allocations: 1.145 MB / 0.9146 GB, free: 14.78 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003224/0.654, allocations: 1.86 MB / 0.9164 GB, free: 12.91 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001668/0.6557, allocations: 0.9628 MB / 0.9174 GB, free: 11.95 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0002315/0.6559, allocations: 127.9 kB / 0.9175 GB, free: 11.82 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003922/0.6599, allocations: 2.498 MB / 0.9199 GB, free: 9.32 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0005003/0.6604, allocations: 454.7 kB / 0.9204 GB, free: 8.875 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0009827/0.6614, allocations: 0.7194 MB / 0.9211 GB, free: 8.152 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.00371/0.6651, allocations: 2.706 MB / 0.9237 GB, free: 5.438 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.6651, allocations: 0 / 0.9237 GB, free: 5.438 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.272e-06/0.6651, allocations: 0 / 0.9237 GB, free: 5.438 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 5.031e-05/0.6652, allocations: 0 / 0.9237 GB, free: 5.438 MB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.003194/0.6684, allocations: 1.761 MB / 0.9254 GB, free: 3.621 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.6684, allocations: 13.05 kB / 0.9254 GB, free: 3.609 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001851/0.6686, allocations: 126.8 kB / 0.9256 GB, free: 3.477 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002763/0.6714, allocations: 426.8 kB / 0.926 GB, free: 3.059 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001796/0.6732, allocations: 1.035 MB / 0.927 GB, free: 1.98 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.926e-05/0.6732, allocations: 67.12 kB / 0.927 GB, free: 1.914 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/0.6734, allocations: 84 kB / 0.9271 GB, free: 1.832 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/0.675, allocations: 0.8623 MB / 0.928 GB, free: 0.9609 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.675, allocations: 4 kB / 0.928 GB, free: 0.957 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.15e-05/0.6751, allocations: 28 kB / 0.928 GB, free: 0.9297 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.357e-05/0.6751, allocations: 34 kB / 0.928 GB, free: 0.8984 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.6766, allocations: 0.8003 MB / 0.9288 GB, free: 100 kB / 0.6856 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.004591/0.6812, allocations: 3.655 MB / 0.9324 GB, free: 12.15 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/0.6827, allocations: 1.083 MB / 0.9334 GB, free: 10.95 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000609/0.6833, allocations: 378.3 kB / 0.9338 GB, free: 10.58 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006998/0.684, allocations: 408.9 kB / 0.9342 GB, free: 10.11 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/0.6841, allocations: 44 kB / 0.9342 GB, free: 10.06 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=60): time 2.144e-06/0.6841, allocations: 3.938 kB / 0.9342 GB, free: 10.05 MB / 0.7012 GB Notification: Performance of matching and sorting (n=60): time 0.002122/0.6862, allocations: 0.959 MB / 0.9352 GB, free: 9.09 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.6862, allocations: 59.97 kB / 0.9352 GB, free: 9.02 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.6873, allocations: 0.8322 MB / 0.936 GB, free: 8.164 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 5.889e-05/0.6874, allocations: 37.7 kB / 0.9361 GB, free: 8.121 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003595/0.6877, allocations: 492.8 kB / 0.9365 GB, free: 7.633 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.6879, allocations: 218.1 kB / 0.9367 GB, free: 7.418 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000189/0.6881, allocations: 118.2 kB / 0.9369 GB, free: 7.293 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.6882, allocations: 333.9 kB / 0.9372 GB, free: 6.961 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005274/0.6888, allocations: 251 kB / 0.9374 GB, free: 6.715 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006035/0.6894, allocations: 380.2 kB / 0.9378 GB, free: 6.305 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.6905, allocations: 0.5852 MB / 0.9384 GB, free: 5.707 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.6905, allocations: 4 kB / 0.9384 GB, free: 5.703 MB / 0.7012 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001385/0.6919, allocations: 0.7326 MB / 0.9391 GB, free: 4.961 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.6919, allocations: 4 kB / 0.9391 GB, free: 4.957 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.6919, allocations: 4 kB / 0.9391 GB, free: 4.953 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.692, allocations: 4 kB / 0.9391 GB, free: 4.949 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006113/0.6926, allocations: 127.9 kB / 0.9392 GB, free: 4.824 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.6926, allocations: 7.938 kB / 0.9392 GB, free: 4.816 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007647/0.6934, allocations: 74.16 kB / 0.9393 GB, free: 4.746 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.095e-05/0.6934, allocations: 28 kB / 0.9393 GB, free: 4.719 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008336/0.6943, allocations: 497 kB / 0.9398 GB, free: 4.23 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005806/0.6949, allocations: 368.3 kB / 0.9401 GB, free: 3.832 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001034/0.6959, allocations: 0.5774 MB / 0.9407 GB, free: 3.242 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.827e-06/0.6959, allocations: 3.938 kB / 0.9407 GB, free: 3.238 MB / 0.7012 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001305/0.6972, allocations: 0.7325 MB / 0.9414 GB, free: 2.496 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.6972, allocations: 5.719 kB / 0.9414 GB, free: 2.492 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.6973, allocations: 4 kB / 0.9414 GB, free: 2.488 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.458e-06/0.6973, allocations: 4.125 kB / 0.9414 GB, free: 2.484 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005668/0.6978, allocations: 127.8 kB / 0.9416 GB, free: 2.359 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.6979, allocations: 4 kB / 0.9416 GB, free: 2.355 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007502/0.6986, allocations: 63.62 kB / 0.9416 GB, free: 2.293 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.353e-05/0.6987, allocations: 20 kB / 0.9416 GB, free: 2.273 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (69): * Single equations (assignments): 69 * 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.0001752/0.6988, allocations: 220.1 kB / 0.9418 GB, free: 2.051 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.699, allocations: 111.3 kB / 0.942 GB, free: 1.941 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001409/0.7004, allocations: 0.7378 MB / 0.9427 GB, free: 1.203 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.7005, allocations: 4 kB / 0.9427 GB, free: 1.199 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.7005, allocations: 0 / 0.9427 GB, free: 1.199 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001189/0.7017, allocations: 0.9111 MB / 0.9436 GB, free: 208 kB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003321/0.705, allocations: 2.248 MB / 0.9458 GB, free: 13.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.705, allocations: 3.984 kB / 0.9458 GB, free: 13.82 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006843/0.7057, allocations: 139.8 kB / 0.9459 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.7057, allocations: 4 kB / 0.9459 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.71e-05/0.7058, allocations: 16 kB / 0.9459 GB, free: 13.66 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/0.7058, allocations: 8 kB / 0.9459 GB, free: 13.65 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.7058, allocations: 7.984 kB / 0.9459 GB, free: 13.64 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001914/0.7077, allocations: 1.27 MB / 0.9472 GB, free: 12.31 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003915/0.7081, allocations: 264.3 kB / 0.9474 GB, free: 12.04 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.7083, allocations: 19.94 kB / 0.9474 GB, free: 12.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007207/0.709, allocations: 39.95 kB / 0.9475 GB, free: 11.98 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.716e-05/0.7091, allocations: 48.33 kB / 0.9475 GB, free: 11.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.867e-05/0.7092, allocations: 27.98 kB / 0.9476 GB, free: 11.9 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0007805/0.7099, allocations: 0.5823 MB / 0.9481 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.71, allocations: 0 / 0.9481 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.001184/0.7111, allocations: 0.5419 MB / 0.9487 GB, free: 10.77 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (spl.vol.dynBal.U,spl.vol.dynBal.m,spl.vol.dynBal.mXi[1],senTem1.T,senTem2.T,senTem3.T) * 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 (60): * Single equations (assignments): 60 * 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 Backend phase and start with SimCode phase: time 0.002586/0.7137, allocations: 1.935 MB / 0.9505 GB, free: 8.77 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001758/0.7155, allocations: 0.9429 MB / 0.9515 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.7155, allocations: 0 / 0.9515 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0005991/0.7161, allocations: 343.3 kB / 0.9518 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00268/0.7188, allocations: 0.606 MB / 0.9524 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.7291, allocations: 7.622 MB / 0.9598 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000656/0.7298, allocations: 1.124 MB / 0.9609 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0008834/0.7307, allocations: 300.1 kB / 0.9612 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005436/0.7313, allocations: 411.3 kB / 0.9616 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of SimCode: time 4e-07/0.7313, allocations: 0 / 0.9616 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05272/0.784, allocations: 29.38 MB / 0.9903 GB, free: 204 kB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.096/9.88, allocations: 16.55 kB / 0.9903 GB, free: 188 kB / 0.7481 GB (rm -f IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.FlowJunction.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.FlowJunction_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 IDEAS_dev_IDEAS_Fluid_FixedResistances_Examples_FlowJunction.fmu > IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)