Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.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.SimpleExamples.TestRefP1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestRefP1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestRefP1",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.7678/0.7678, allocations: 150.9 MB / 166 MB, free: 14.65 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002948/0.0002949, allocations: 19.97 kB / 204.1 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.145, allocations: 31.33 MB / 235.4 MB, free: 5.441 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.SimpleExamples.TestRefP1): time 1.518/1.663, allocations: 295 MB / 0.518 GB, free: 12.34 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4991/2.162, allocations: 195 MB / 0.7085 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004775/2.163, allocations: 8.469 kB / 0.7085 GB, free: 3.496 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/RefP.mo:10:3-11: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/BoundaryConditions/RefP.mo:12:3-13:65:writable] Warning: Connector C2 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/Machines/StaticCentrifugalPump.mo:63:3-64: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/Machines/StaticCentrifugalPump.mo:65:3-66:65:writable] Warning: Connector C2 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/LumpedStraightPipe.mo:54:3-55: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/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 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/Source.mo:53:3-54:52: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/Sink.mo:39:3-40: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/BoundaryConditions/RefQ.mo:10:3-11: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/BoundaryConditions/RefQ.mo:12:3-13: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.000245/2.163, allocations: 63.92 kB / 0.7085 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005192/2.164, allocations: 193.8 kB / 0.7087 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02755/2.191, allocations: 10.2 MB / 0.7187 GB, free: 3.297 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001092/2.192, allocations: 0.7997 MB / 0.7195 GB, free: 3.293 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005167/2.193, allocations: 473.9 kB / 0.7199 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003667/2.193, allocations: 321.5 kB / 0.7202 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003277/2.194, allocations: 379.6 kB / 0.7206 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.35e-05/2.194, allocations: 60.06 kB / 0.7206 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03136/2.225, allocations: 19.09 MB / 0.7393 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003434/2.225, allocations: 159.3 kB / 0.7394 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006419/2.226, allocations: 398.4 kB / 0.7398 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02414/2.25, allocations: 10.58 MB / 0.7502 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/2.25, allocations: 0 / 0.7502 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.653e-06/2.25, allocations: 0 / 0.7502 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.062e-05/2.25, allocations: 2.375 kB / 0.7502 GB, free: 15.4 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.0059/2.256, allocations: 2.219 MB / 0.7523 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/2.256, allocations: 8.281 kB / 0.7523 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001229/2.256, allocations: 129.2 kB / 0.7525 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/2.257, allocations: 87.75 kB / 0.7525 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000479/2.257, allocations: 434.3 kB / 0.753 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/2.257, allocations: 58.69 kB / 0.753 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.264e-05/2.257, allocations: 75.41 kB / 0.7531 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/2.258, allocations: 0.7353 MB / 0.7538 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/2.258, allocations: 0 / 0.7538 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.081e-05/2.258, allocations: 30.25 kB / 0.7538 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/2.258, allocations: 25.66 kB / 0.7539 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009026/2.259, allocations: 0.5507 MB / 0.7544 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06906/2.328, allocations: 33.13 MB / 0.7867 GB, free: 308 kB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006742/2.329, allocations: 306.6 kB / 0.787 GB, free: 96 kB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/2.329, allocations: 116.1 kB / 0.7871 GB, free: 16 kB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.626/2.955, allocations: 250.2 MB / 1.031 GB, free: 423.4 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/2.955, allocations: 40.36 kB / 1.031 GB, free: 423.3 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=27): time 2.023e-06/2.955, allocations: 4 kB / 1.031 GB, free: 423.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=27): time 0.004602/2.96, allocations: 1.11 MB / 1.033 GB, free: 422.3 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.036e-05/2.96, allocations: 55.23 kB / 1.033 GB, free: 422.3 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004069/2.96, allocations: 489.9 kB / 1.033 GB, free: 421.9 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/2.96, allocations: 29.08 kB / 1.033 GB, free: 421.9 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/2.961, allocations: 361.3 kB / 1.033 GB, free: 421.7 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.4e-05/2.961, allocations: 103.6 kB / 1.034 GB, free: 421.6 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/2.961, allocations: 92.39 kB / 1.034 GB, free: 421.5 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 5.953e-05/2.961, allocations: 358.2 kB / 1.034 GB, free: 421.2 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001886/2.961, allocations: 99.58 kB / 1.034 GB, free: 421.1 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/2.961, allocations: 223.7 kB / 1.034 GB, free: 420.9 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003956/2.962, allocations: 328.4 kB / 1.035 GB, free: 420.6 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/2.962, allocations: 0 / 1.035 GB, free: 420.6 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001993/2.964, allocations: 0.6642 MB / 1.035 GB, free: 420.1 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/2.964, allocations: 4 kB / 1.035 GB, free: 420.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/2.964, allocations: 4.562 kB / 1.035 GB, free: 420.1 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008506/2.964, allocations: 212.3 kB / 1.035 GB, free: 419.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001753/2.965, allocations: 53.98 kB / 1.036 GB, free: 419.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006761/2.965, allocations: 1.249 MB / 1.037 GB, free: 418.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/2.966, allocations: 60.06 kB / 1.037 GB, free: 418.6 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.568e-05/2.966, allocations: 23.73 kB / 1.037 GB, free: 418.6 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 7 (source.C.ftype,pump.fluid,lumpedStraightPipe.fluid,sink.fluid,source.fluid1,refQ.C1.diff_on_2,lumpedStraightPipe.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001744/2.966, allocations: 185.2 kB / 1.037 GB, free: 418.4 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.306e-05/2.966, allocations: 48.61 kB / 1.037 GB, free: 418.4 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001937/2.968, allocations: 0.5822 MB / 1.038 GB, free: 417.9 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/2.968, allocations: 4 kB / 1.038 GB, free: 417.9 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/2.968, allocations: 0 / 1.038 GB, free: 417.9 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/2.968, allocations: 3.984 kB / 1.038 GB, free: 417.9 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004487/2.968, allocations: 0.5313 MB / 1.038 GB, free: 417.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/2.968, allocations: 3.875 kB / 1.038 GB, free: 417.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.228e-05/2.968, allocations: 23.86 kB / 1.038 GB, free: 417.4 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007391/2.969, allocations: 195.6 kB / 1.038 GB, free: 417.3 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/2.969, allocations: 11.73 kB / 1.038 GB, free: 417.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006246/2.97, allocations: 1.237 MB / 1.04 GB, free: 416.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/2.97, allocations: 0 / 1.04 GB, free: 416.1 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001795/2.972, allocations: 0.6293 MB / 1.04 GB, free: 415.5 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/2.972, allocations: 149.5 kB / 1.04 GB, free: 415.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.672e-05/2.972, allocations: 7.938 kB / 1.04 GB, free: 415.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/2.972, allocations: 7.938 kB / 1.04 GB, free: 415.4 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.92e-05/2.972, allocations: 19.95 kB / 1.04 GB, free: 415.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.554e-05/2.972, allocations: 15.88 kB / 1.04 GB, free: 415.3 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002639/2.972, allocations: 330.9 kB / 1.041 GB, free: 415.1 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.8e-07/2.972, allocations: 0 / 1.041 GB, free: 415.1 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003503/2.976, allocations: 1.687 MB / 1.042 GB, free: 413.7 MB / 0.8106 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007329/2.983, allocations: 3.623 MB / 1.046 GB, free: 410.7 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005996/2.984, allocations: 291.3 kB / 1.046 GB, free: 410.5 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/2.984, allocations: 4.125 kB / 1.046 GB, free: 410.5 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002808/2.984, allocations: 146.1 kB / 1.046 GB, free: 410.4 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005252/2.985, allocations: 92.98 kB / 1.046 GB, free: 410.3 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007765/2.992, allocations: 5.434 MB / 1.052 GB, free: 405.4 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002295/2.993, allocations: 0.8777 MB / 1.053 GB, free: 404.5 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002017/2.993, allocations: 69.62 kB / 1.053 GB, free: 404.4 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/2.993, allocations: 214.6 kB / 1.053 GB, free: 404.4 MB / 0.8106 GB Notification: Performance of SimCode: time 1.473e-06/2.993, allocations: 0 / 1.053 GB, free: 404.4 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.553/4.546, allocations: 58.43 MB / 1.11 GB, free: 346.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001381/4.546, allocations: 280.7 kB / 1.11 GB, free: 346.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.928/9.474, allocations: 4.562 kB / 1.11 GB, free: 346.5 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestRefP1_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestRefP1.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe 2>&1)