Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",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.8011/0.8011, allocations: 150.9 MB / 166 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003216/0.0003214, allocations: 15.97 kB / 204.1 MB, free: 10.01 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1651, allocations: 31.33 MB / 235.4 MB, free: 5.434 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss): time 1.618/1.783, allocations: 293.6 MB / 0.5167 GB, free: 13.67 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1875/1.97, allocations: 188.3 MB / 0.7006 GB, free: 0.9375 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003299/1.971, allocations: 7.938 kB / 0.7006 GB, free: 0.9297 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/PipePressureLoss.mo:33:3-34:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/PipePressureLoss.mo:35:3-36:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001444/1.971, allocations: 27.77 kB / 0.7006 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003411/1.971, allocations: 107.2 kB / 0.7007 GB, free: 0.7969 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3393/2.311, allocations: 8.631 MB / 0.7092 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005174/2.311, allocations: 369.3 kB / 0.7095 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002557/2.311, allocations: 184.1 kB / 0.7097 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001831/2.312, allocations: 138.9 kB / 0.7098 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001934/2.312, allocations: 162.2 kB / 0.71 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.461e-05/2.312, allocations: 24.88 kB / 0.71 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03697/2.349, allocations: 19.91 MB / 0.7294 GB, free: 4 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001797/2.349, allocations: 65.23 kB / 0.7295 GB, free: 4 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003648/2.35, allocations: 174.5 kB / 0.7297 GB, free: 4 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02903/2.379, allocations: 9.866 MB / 0.7393 GB, free: 1.66 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/2.379, allocations: 0 / 0.7393 GB, free: 1.66 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.005e-06/2.379, allocations: 0 / 0.7393 GB, free: 1.66 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.496e-05/2.379, allocations: 3.75 kB / 0.7393 GB, free: 1.66 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.006346/2.385, allocations: 1.746 MB / 0.741 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/2.385, allocations: 11.03 kB / 0.741 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.712e-05/2.385, allocations: 70 kB / 0.7411 GB, free: 496 kB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/2.385, allocations: 43.89 kB / 0.7411 GB, free: 472 kB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003432/2.386, allocations: 289.8 kB / 0.7414 GB, free: 216 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.168e-05/2.386, allocations: 27.5 kB / 0.7414 GB, free: 216 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.426e-05/2.386, allocations: 33.06 kB / 0.7415 GB, free: 216 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000571/2.386, allocations: 360.8 kB / 0.7418 GB, free: 68 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/2.386, allocations: 1.031 kB / 0.7418 GB, free: 68 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.787e-05/2.386, allocations: 15.56 kB / 0.7418 GB, free: 68 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/2.386, allocations: 8.531 kB / 0.7418 GB, free: 68 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003992/2.387, allocations: 228.1 kB / 0.7421 GB, free: 36 kB / 0.5762 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.008827/2.396, allocations: 6.106 MB / 0.748 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002423/2.396, allocations: 77 kB / 0.7481 GB, free: 10.79 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.285e-05/2.396, allocations: 37.25 kB / 0.7481 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2209/2.617, allocations: 118.3 MB / 0.8636 GB, free: 1.711 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/2.617, allocations: 31.77 kB / 0.8637 GB, free: 1.672 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=7): time 2.625e-06/2.617, allocations: 4 kB / 0.8637 GB, free: 1.668 MB / 0.7012 GB Notification: Performance of matching and sorting (n=7): time 0.0009037/2.618, allocations: 273.9 kB / 0.8639 GB, free: 1.402 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.411e-05/2.618, allocations: 54.31 kB / 0.864 GB, free: 1.34 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000322/2.618, allocations: 283.5 kB / 0.8642 GB, free: 1.105 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/2.618, allocations: 32.95 kB / 0.8643 GB, free: 1.07 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/2.618, allocations: 225.5 kB / 0.8645 GB, free: 0.8789 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/2.618, allocations: 22.78 kB / 0.8645 GB, free: 0.8594 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.09e-05/2.619, allocations: 63.28 kB / 0.8646 GB, free: 0.8086 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001245/2.619, allocations: 334.2 kB / 0.8649 GB, free: 496 kB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.532e-05/2.619, allocations: 42.86 kB / 0.8649 GB, free: 468 kB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/2.619, allocations: 141.2 kB / 0.8651 GB, free: 304 kB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/2.619, allocations: 194.4 kB / 0.8652 GB, free: 116 kB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/2.619, allocations: 0 / 0.8652 GB, free: 116 kB / 0.7012 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005224/2.62, allocations: 279.9 kB / 0.8655 GB, free: 15.91 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/2.62, allocations: 9.094 kB / 0.8655 GB, free: 15.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/2.62, allocations: 4 kB / 0.8655 GB, free: 15.89 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008907/2.621, allocations: 138.9 kB / 0.8657 GB, free: 15.77 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/2.621, allocations: 34.89 kB / 0.8657 GB, free: 15.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004168/2.621, allocations: 0.5818 MB / 0.8663 GB, free: 15.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/2.621, allocations: 35.58 kB / 0.8663 GB, free: 15.13 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/2.621, allocations: 11.25 kB / 0.8663 GB, free: 15.12 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,pipePressureLoss.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,pipePressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001288/2.622, allocations: 151 kB / 0.8665 GB, free: 14.98 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.446e-05/2.622, allocations: 19.81 kB / 0.8665 GB, free: 14.96 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003807/2.622, allocations: 160.5 kB / 0.8666 GB, free: 14.83 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/2.622, allocations: 7 kB / 0.8666 GB, free: 14.83 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/2.622, allocations: 3.984 kB / 0.8666 GB, free: 14.82 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/2.622, allocations: 0 / 0.8666 GB, free: 14.82 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002661/2.622, allocations: 290.5 kB / 0.8669 GB, free: 14.54 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/2.622, allocations: 0 / 0.8669 GB, free: 14.54 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.57e-05/2.622, allocations: 8.062 kB / 0.8669 GB, free: 14.53 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004943/2.623, allocations: 90.89 kB / 0.867 GB, free: 14.45 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/2.623, allocations: 7.938 kB / 0.867 GB, free: 14.44 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003705/2.623, allocations: 0.5853 MB / 0.8676 GB, free: 13.87 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/2.623, allocations: 3.672 kB / 0.8676 GB, free: 13.87 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002919/2.623, allocations: 165 kB / 0.8677 GB, free: 13.71 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.547e-05/2.624, allocations: 104.4 kB / 0.8678 GB, free: 13.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.463e-05/2.624, allocations: 7.375 kB / 0.8679 GB, free: 13.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.796e-05/2.624, allocations: 3.984 kB / 0.8679 GB, free: 13.59 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.153e-05/2.624, allocations: 4 kB / 0.8679 GB, free: 13.58 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/2.624, allocations: 0 / 0.8679 GB, free: 13.58 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002012/2.624, allocations: 216.2 kB / 0.8681 GB, free: 13.41 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/2.624, allocations: 0 / 0.8681 GB, free: 13.41 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003806/2.628, allocations: 1.438 MB / 0.8695 GB, free: 12.07 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 1 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00685/2.635, allocations: 2.867 MB / 0.8723 GB, free: 9.547 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003581/2.635, allocations: 126.5 kB / 0.8724 GB, free: 9.461 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/2.635, allocations: 0 / 0.8724 GB, free: 9.461 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.661e-05/2.635, allocations: 34.98 kB / 0.8724 GB, free: 9.438 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/2.636, allocations: 67.41 kB / 0.8725 GB, free: 9.391 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004743/2.64, allocations: 3.098 MB / 0.8755 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/2.641, allocations: 0.7596 MB / 0.8763 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001534/2.641, allocations: 38.22 kB / 0.8763 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/2.641, allocations: 97.97 kB / 0.8764 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of SimCode: time 8.02e-07/2.641, allocations: 0 / 0.8764 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07991/2.721, allocations: 51 MB / 0.9262 GB, free: 2.844 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002276/2.721, allocations: 317.6 kB / 0.9265 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.174/6.895, allocations: 0 / 0.9265 GB, free: 2.461 MB / 0.7637 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)