Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8367/0.8367, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.89e-05/1.911e-05, allocations: 4 kB / 204.9 MB, free: 9.961 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.1749, allocations: 31.99 MB / 236.9 MB, free: 5.18 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend): time 1.793/1.968, allocations: 294.7 MB / 0.5191 GB, free: 13 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5482/2.517, allocations: 189.3 MB / 0.7039 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004399/2.517, allocations: 9.719 kB / 0.7039 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005242/2.518, allocations: 187.3 kB / 0.7041 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0007239/2.518, allocations: 263.3 kB / 0.7043 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03311/2.551, allocations: 9.663 MB / 0.7138 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008531/2.552, allocations: 0.5137 MB / 0.7143 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002973/2.553, allocations: 236.4 kB / 0.7145 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002639/2.553, allocations: 207.5 kB / 0.7147 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003177/2.553, allocations: 321.9 kB / 0.715 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.758e-05/2.553, allocations: 18.38 kB / 0.715 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04206/2.595, allocations: 21.19 MB / 0.7357 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002995/2.596, allocations: 176.8 kB / 0.7359 GB, free: 3.074 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003856/2.596, allocations: 311.6 kB / 0.7362 GB, free: 3.027 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03134/2.627, allocations: 10.78 MB / 0.7467 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/2.627, allocations: 0 / 0.7467 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.487e-06/2.627, allocations: 0 / 0.7467 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.689e-05/2.627, allocations: 1.594 kB / 0.7467 GB, free: 14.9 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.006447/2.634, allocations: 2.099 MB / 0.7488 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/2.634, allocations: 17.5 kB / 0.7488 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.776e-05/2.634, allocations: 79.86 kB / 0.7489 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001131/2.634, allocations: 79.56 kB / 0.7489 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006996/2.635, allocations: 0.5459 MB / 0.7495 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.771e-05/2.635, allocations: 30.69 kB / 0.7495 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.388e-05/2.635, allocations: 36.94 kB / 0.7495 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006256/2.636, allocations: 499.4 kB / 0.75 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/2.636, allocations: 0 / 0.75 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/2.636, allocations: 14.59 kB / 0.75 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/2.636, allocations: 11.22 kB / 0.75 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007222/2.636, allocations: 417.4 kB / 0.7504 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008715/2.645, allocations: 6.704 MB / 0.757 GB, free: 7.441 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005033/2.646, allocations: 128 kB / 0.7571 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.365e-05/2.646, allocations: 44.34 kB / 0.7571 GB, free: 7.383 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.33/2.976, allocations: 156 MB / 0.9095 GB, free: 3.773 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/2.976, allocations: 30.56 kB / 0.9095 GB, free: 3.734 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 1.894e-06/2.976, allocations: 0 / 0.9095 GB, free: 3.734 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002312/2.978, allocations: 483.5 kB / 0.91 GB, free: 3.289 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.59e-05/2.978, allocations: 102.8 kB / 0.9101 GB, free: 3.164 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001344/2.98, allocations: 1.067 MB / 0.9111 GB, free: 2.352 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/2.98, allocations: 31.2 kB / 0.9112 GB, free: 2.32 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002699/2.98, allocations: 386.6 kB / 0.9115 GB, free: 2.074 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.519e-05/2.98, allocations: 49.67 kB / 0.9116 GB, free: 2.035 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.907e-05/2.98, allocations: 36.77 kB / 0.9116 GB, free: 2.004 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001662/2.98, allocations: 380.5 kB / 0.912 GB, free: 1.648 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/2.98, allocations: 132.6 kB / 0.9121 GB, free: 1.555 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002586/2.981, allocations: 257.3 kB / 0.9124 GB, free: 1.285 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003673/2.981, allocations: 313 kB / 0.9127 GB, free: 1.012 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/2.981, allocations: 4 kB / 0.9127 GB, free: 1.008 MB / 0.7481 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00137/2.982, allocations: 0.5555 MB / 0.9132 GB, free: 0.5703 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/2.982, allocations: 9.969 kB / 0.9132 GB, free: 0.5625 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/2.982, allocations: 4 kB / 0.9132 GB, free: 0.5586 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/2.984, allocations: 220.3 kB / 0.9134 GB, free: 372 kB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/2.984, allocations: 53.8 kB / 0.9135 GB, free: 324 kB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000593/2.985, allocations: 0.6285 MB / 0.9141 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002777/2.985, allocations: 51.2 kB / 0.9141 GB, free: 15.66 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.487e-05/2.985, allocations: 18.53 kB / 0.9142 GB, free: 15.65 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,SinkP1.fluid,Bend.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Bend.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002833/2.985, allocations: 266.8 kB / 0.9144 GB, free: 15.44 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.368e-05/2.986, allocations: 71.14 kB / 0.9145 GB, free: 15.37 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007056/2.986, allocations: 257.1 kB / 0.9147 GB, free: 15.16 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/2.986, allocations: 3.938 kB / 0.9147 GB, free: 15.16 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/2.986, allocations: 0 / 0.9147 GB, free: 15.16 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/2.986, allocations: 4 kB / 0.9147 GB, free: 15.15 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/2.988, allocations: 0.8403 MB / 0.9156 GB, free: 14.41 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/2.988, allocations: 0 / 0.9156 GB, free: 14.41 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.055e-05/2.988, allocations: 8 kB / 0.9156 GB, free: 14.41 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001282/2.989, allocations: 194 kB / 0.9157 GB, free: 14.23 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/2.989, allocations: 7.562 kB / 0.9158 GB, free: 14.23 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005225/2.99, allocations: 0.6333 MB / 0.9164 GB, free: 13.62 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/2.99, allocations: 0 / 0.9164 GB, free: 13.62 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/2.991, allocations: 414.8 kB / 0.9168 GB, free: 13.24 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001731/2.992, allocations: 166.6 kB / 0.9169 GB, free: 13.08 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.769e-05/2.992, allocations: 8 kB / 0.9169 GB, free: 13.07 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001827/2.992, allocations: 11.8 kB / 0.9169 GB, free: 13.06 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.013e-05/2.992, allocations: 11.98 kB / 0.917 GB, free: 13.05 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/2.992, allocations: 4 kB / 0.917 GB, free: 13.05 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0008521/2.993, allocations: 0.7817 MB / 0.9177 GB, free: 12.48 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.11e-07/2.993, allocations: 4 kB / 0.9177 GB, free: 12.47 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004597/2.997, allocations: 1.638 MB / 0.9193 GB, free: 10.94 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 2 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008396/3.006, allocations: 3.317 MB / 0.9226 GB, free: 7.988 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.000636/3.006, allocations: 234.3 kB / 0.9228 GB, free: 7.824 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/3.006, allocations: 5.984 kB / 0.9228 GB, free: 7.82 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001744/3.007, allocations: 53.75 kB / 0.9228 GB, free: 7.781 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006814/3.007, allocations: 92.94 kB / 0.9229 GB, free: 7.723 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01105/3.018, allocations: 6.634 MB / 0.9294 GB, free: 1.863 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005392/3.019, allocations: 0.9349 MB / 0.9303 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002269/3.019, allocations: 72.2 kB / 0.9304 GB, free: 0.8633 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000269/3.019, allocations: 219.1 kB / 0.9306 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of SimCode: time 6.31e-07/3.019, allocations: 0 / 0.9306 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.714/3.733, allocations: 59.11 MB / 0.9883 GB, free: 454.6 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001769/3.734, allocations: 299.1 kB / 0.9886 GB, free: 454.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.463/8.197, allocations: 0 / 0.9886 GB, free: 454.2 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)