Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_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.7847/0.7847, allocations: 150.9 MB / 166 MB, free: 14.57 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003357/0.0003357, allocations: 15.98 kB / 204.1 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.165, allocations: 31.34 MB / 235.4 MB, free: 5.445 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.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss): time 1.757/1.922, allocations: 293.5 MB / 0.5166 GB, free: 13.78 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04704/1.969, allocations: 37.55 MB / 0.5533 GB, free: 8.375 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000364/1.97, allocations: 0 / 0.5533 GB, free: 8.375 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/PipePressureLoss.mo:35:3-37:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/PipePressureLoss.mo:38:3-40:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004218/1.97, allocations: 95.47 kB / 0.5533 GB, free: 8.281 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002432/1.97, allocations: 83.36 kB / 0.5534 GB, free: 8.199 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02556/1.996, allocations: 7.152 MB / 0.5604 GB, free: 1.043 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006223/1.997, allocations: 330.4 kB / 0.5607 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/1.997, allocations: 102 kB / 0.5608 GB, free: 0.6172 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002261/1.997, allocations: 139.2 kB / 0.561 GB, free: 492 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/1.997, allocations: 99.45 kB / 0.561 GB, free: 392 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.721e-05/1.997, allocations: 12 kB / 0.5611 GB, free: 380 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0365/2.034, allocations: 17.73 MB / 0.5784 GB, free: 14.61 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001307/2.034, allocations: 43.78 kB / 0.5784 GB, free: 14.57 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002304/2.034, allocations: 119.4 kB / 0.5785 GB, free: 14.45 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02673/2.061, allocations: 8.433 MB / 0.5868 GB, free: 6 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/2.061, allocations: 0 / 0.5868 GB, free: 6 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.673e-06/2.061, allocations: 3.938 kB / 0.5868 GB, free: 5.996 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/2.061, allocations: 0 / 0.5868 GB, free: 5.996 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.005695/2.067, allocations: 1.439 MB / 0.5882 GB, free: 4.508 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.927e-05/2.067, allocations: 12.03 kB / 0.5882 GB, free: 4.496 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.616e-05/2.067, allocations: 62.47 kB / 0.5882 GB, free: 4.426 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/2.067, allocations: 31.62 kB / 0.5883 GB, free: 4.395 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003143/2.067, allocations: 235.7 kB / 0.5885 GB, free: 4.125 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.904e-05/2.067, allocations: 12.44 kB / 0.5885 GB, free: 4.109 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.815e-05/2.067, allocations: 20 kB / 0.5885 GB, free: 4.09 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005094/2.068, allocations: 295.3 kB / 0.5888 GB, free: 3.777 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/2.068, allocations: 0.6562 kB / 0.5888 GB, free: 3.777 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/2.068, allocations: 12 kB / 0.5888 GB, free: 3.766 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/2.068, allocations: 11.98 kB / 0.5888 GB, free: 3.754 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002901/2.068, allocations: 169 kB / 0.589 GB, free: 3.59 MB / 478.1 MB 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.03793/2.106, allocations: 18.02 MB / 0.6066 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003834/2.107, allocations: 134.7 kB / 0.6067 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/2.107, allocations: 84.84 kB / 0.6068 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1535/2.26, allocations: 77.27 MB / 0.6823 GB, free: 9.438 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/2.26, allocations: 38.56 kB / 0.6823 GB, free: 9.391 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 1.983e-06/2.26, allocations: 0 / 0.6823 GB, free: 9.391 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001051/2.261, allocations: 443.4 kB / 0.6827 GB, free: 8.93 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/2.262, allocations: 55.41 kB / 0.6828 GB, free: 8.863 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002464/2.262, allocations: 223 kB / 0.683 GB, free: 8.633 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/2.262, allocations: 25.7 kB / 0.683 GB, free: 8.602 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.435e-05/2.262, allocations: 152.5 kB / 0.6832 GB, free: 8.449 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.231e-05/2.262, allocations: 106.4 kB / 0.6833 GB, free: 8.344 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.951e-05/2.262, allocations: 49.69 kB / 0.6833 GB, free: 8.289 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001356/2.262, allocations: 338.8 kB / 0.6836 GB, free: 7.949 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/2.262, allocations: 67.92 kB / 0.6837 GB, free: 7.883 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/2.262, allocations: 116.2 kB / 0.6838 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002661/2.263, allocations: 212.5 kB / 0.684 GB, free: 7.531 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/2.263, allocations: 8 kB / 0.684 GB, free: 7.523 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004287/2.263, allocations: 301.5 kB / 0.6843 GB, free: 7.219 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/2.263, allocations: 4 kB / 0.6843 GB, free: 7.215 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/2.263, allocations: 7.938 kB / 0.6843 GB, free: 7.207 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009087/2.264, allocations: 158.6 kB / 0.6845 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.927e-05/2.264, allocations: 8 kB / 0.6845 GB, free: 7.043 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006216/2.265, allocations: 0.6439 MB / 0.6851 GB, free: 6.375 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/2.265, allocations: 23.69 kB / 0.6851 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/2.265, allocations: 4 kB / 0.6851 GB, free: 6.348 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (pipePressureLoss.C2.b,pipePressureLoss.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001508/2.265, allocations: 137.8 kB / 0.6853 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.365e-05/2.265, allocations: 19.72 kB / 0.6853 GB, free: 6.184 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000766/2.266, allocations: 0.6066 MB / 0.6859 GB, free: 5.512 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003573/2.266, allocations: 222.3 kB / 0.6861 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/2.266, allocations: 0 / 0.6861 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/2.266, allocations: 0 / 0.6861 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009908/2.267, allocations: 0.7349 MB / 0.6868 GB, free: 4.492 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/2.267, allocations: 0 / 0.6868 GB, free: 4.492 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.243e-05/2.267, allocations: 20 kB / 0.6868 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004979/2.268, allocations: 125.6 kB / 0.6869 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/2.268, allocations: 8 kB / 0.6869 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004865/2.268, allocations: 0.6623 MB / 0.6876 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/2.268, allocations: 0 / 0.6876 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000462/2.269, allocations: 341.6 kB / 0.6879 GB, free: 3.301 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.331e-05/2.269, allocations: 104.8 kB / 0.688 GB, free: 3.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.097e-05/2.269, allocations: 15.78 kB / 0.688 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/2.269, allocations: 12 kB / 0.688 GB, free: 3.152 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.117e-05/2.269, allocations: 12.05 kB / 0.6881 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/2.269, allocations: 7.938 kB / 0.6881 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002609/2.27, allocations: 237.9 kB / 0.6883 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.27, allocations: 0 / 0.6883 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004476/2.274, allocations: 1.183 MB / 0.6894 GB, free: 1.719 MB / 0.5762 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 (11): * Single equations (assignments): 10 * 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.2079/2.482, allocations: 2.546 MB / 0.6919 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006341/2.483, allocations: 236.9 kB / 0.6922 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/2.483, allocations: 1.406 kB / 0.6922 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001913/2.483, allocations: 95 kB / 0.6923 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008092/2.484, allocations: 115.5 kB / 0.6924 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004607/2.488, allocations: 3.118 MB / 0.6954 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002088/2.488, allocations: 0.7679 MB / 0.6962 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001174/2.489, allocations: 22.77 kB / 0.6962 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.378e-05/2.489, allocations: 84.77 kB / 0.6963 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of SimCode: time 6.11e-07/2.489, allocations: 0 / 0.6963 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07192/2.561, allocations: 47.55 MB / 0.7427 GB, free: 198.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001821/2.561, allocations: 270.3 kB / 0.743 GB, free: 198.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.13/6.691, allocations: 0 / 0.743 GB, free: 198.4 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)