Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2.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.CentrifugalPump.TestCentrifugalPump.Scenario_2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_CentrifugalPump_TestCentrifugalPump_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_CentrifugalPump_TestCentrifugalPump_Scenario_2",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.7723/0.7723, allocations: 150.9 MB / 166 MB, free: 14.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.0003261, allocations: 15.97 kB / 204.1 MB, free: 10.03 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1523, allocations: 31.33 MB / 235.5 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.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2): time 1.592/1.745, allocations: 294 MB / 0.5171 GB, free: 13.28 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5004/2.245, allocations: 188.9 MB / 0.7015 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004136/2.246, allocations: 7.344 kB / 0.7015 GB, free: 3.801 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/CentrifugalPump.mo:120:3-121: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/CentrifugalPump.mo:122:3-123: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/CentrifugalPump.mo:124:3-128:23:writable] Warning: Connector M is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75: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/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/ElectroMechanics/BoundaryConditions/SourceAngularVelocity.mo:11:3-15:24:writable] Warning: Connector M is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002079/2.246, allocations: 38.27 kB / 0.7016 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004302/2.246, allocations: 151 kB / 0.7017 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02487/2.271, allocations: 8.815 MB / 0.7103 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009568/2.272, allocations: 0.5692 MB / 0.7109 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003669/2.272, allocations: 298.5 kB / 0.7112 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003057/2.273, allocations: 243.6 kB / 0.7114 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000289/2.273, allocations: 266.8 kB / 0.7116 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.586e-05/2.273, allocations: 33.22 kB / 0.7117 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02733/2.3, allocations: 16.75 MB / 0.728 GB, free: 3.598 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003903/2.301, allocations: 211.3 kB / 0.7282 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005501/2.301, allocations: 359.5 kB / 0.7286 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02749/2.329, allocations: 9.071 MB / 0.7374 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/2.329, allocations: 0 / 0.7374 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.394e-06/2.329, allocations: 2.469 kB / 0.7374 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.162e-05/2.329, allocations: 0 / 0.7374 GB, free: 1.898 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.006511/2.336, allocations: 2.147 MB / 0.7395 GB, free: 0.5195 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/2.336, allocations: 7.031 kB / 0.7395 GB, free: 0.5195 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.574e-05/2.336, allocations: 89.86 kB / 0.7396 GB, free: 480 kB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/2.336, allocations: 116.2 kB / 0.7397 GB, free: 420 kB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004987/2.336, allocations: 499.9 kB / 0.7402 GB, free: 36 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.861e-05/2.336, allocations: 37.69 kB / 0.7402 GB, free: 36 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.952e-05/2.336, allocations: 49.8 kB / 0.7403 GB, free: 32 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/2.338, allocations: 0.7003 MB / 0.741 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/2.338, allocations: 0 / 0.741 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.435e-05/2.338, allocations: 27.52 kB / 0.741 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/2.338, allocations: 18.03 kB / 0.741 GB, free: 15.81 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/2.339, allocations: 0.7044 MB / 0.7417 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0738/2.413, allocations: 33.31 MB / 0.7742 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001365/2.414, allocations: 0.8495 MB / 0.7751 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004144/2.415, allocations: 272.2 kB / 0.7753 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2273/2.642, allocations: 110.5 MB / 0.8833 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.414e-05/2.642, allocations: 41.58 kB / 0.8833 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=29): time 2.876e-06/2.642, allocations: 0 / 0.8833 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of matching and sorting (n=29): time 0.004104/2.646, allocations: 1.461 MB / 0.8848 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/2.646, allocations: 55.41 kB / 0.8848 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/2.647, allocations: 0.8912 MB / 0.8857 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/2.647, allocations: 29.33 kB / 0.8857 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003087/2.647, allocations: 456.6 kB / 0.8861 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.891e-05/2.648, allocations: 107 kB / 0.8862 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/2.648, allocations: 85.66 kB / 0.8863 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001091/2.648, allocations: 325.1 kB / 0.8866 GB, free: 10.4 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004303/2.648, allocations: 268.7 kB / 0.8869 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005172/2.649, allocations: 390 kB / 0.8873 GB, free: 9.82 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009257/2.65, allocations: 0.6768 MB / 0.8879 GB, free: 9.238 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/2.65, allocations: 0 / 0.8879 GB, free: 9.238 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001683/2.651, allocations: 0.9341 MB / 0.8888 GB, free: 8.48 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/2.651, allocations: 8 kB / 0.8888 GB, free: 8.473 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/2.651, allocations: 4 kB / 0.8888 GB, free: 8.469 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004343/2.656, allocations: 0.7198 MB / 0.8895 GB, free: 7.793 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003342/2.656, allocations: 73.34 kB / 0.8896 GB, free: 7.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/2.658, allocations: 1.16 MB / 0.8907 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000456/2.658, allocations: 67.44 kB / 0.8908 GB, free: 6.668 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/2.658, allocations: 19.38 kB / 0.8908 GB, free: 6.652 MB / 0.7325 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 (sourcePQ.C.ftype,centrifugalPump.fluid,sink.fluid,sourcePQ.fluid1,sourcePQ.C.diff_on_2,centrifugalPump.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): 34 * 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 {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0003814/2.658, allocations: 264.7 kB / 0.8911 GB, free: 6.438 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/2.659, allocations: 94.86 kB / 0.8912 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001548/2.66, allocations: 0.8842 MB / 0.892 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/2.66, allocations: 4 kB / 0.892 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/2.66, allocations: 0 / 0.892 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/2.66, allocations: 0 / 0.892 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/2.662, allocations: 1.581 MB / 0.8936 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/2.662, allocations: 0 / 0.8936 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/2.663, allocations: 35.97 kB / 0.8936 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002892/2.666, allocations: 0.589 MB / 0.8942 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.199e-05/2.666, allocations: 7.812 kB / 0.8942 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001233/2.667, allocations: 1.167 MB / 0.8953 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-05/2.667, allocations: 3.938 kB / 0.8953 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/2.668, allocations: 0.926 MB / 0.8962 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002148/2.669, allocations: 178.2 kB / 0.8964 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.787e-05/2.669, allocations: 7.562 kB / 0.8964 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002711/2.669, allocations: 24.06 kB / 0.8964 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.114e-05/2.669, allocations: 15.98 kB / 0.8965 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/2.669, allocations: 11.36 kB / 0.8965 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0007075/2.67, allocations: 0.6105 MB / 0.8971 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/2.67, allocations: 0 / 0.8971 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004001/2.674, allocations: 1.336 MB / 0.8984 GB, free: 15.97 MB / 0.7481 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 (15): * Single equations (assignments): 14 * 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 {(2,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008786/2.683, allocations: 3.363 MB / 0.9017 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001371/2.684, allocations: 0.6336 MB / 0.9023 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/2.684, allocations: 7.312 kB / 0.9023 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0006208/2.685, allocations: 326.5 kB / 0.9026 GB, free: 12.26 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006835/2.685, allocations: 98.55 kB / 0.9027 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/2.699, allocations: 8.536 MB / 0.911 GB, free: 4.656 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005929/2.699, allocations: 1.003 MB / 0.912 GB, free: 3.652 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002325/2.699, allocations: 55.2 kB / 0.9121 GB, free: 3.602 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002763/2.7, allocations: 305 kB / 0.9124 GB, free: 3.547 MB / 0.7481 GB Notification: Performance of SimCode: time 6.01e-07/2.7, allocations: 0 / 0.9124 GB, free: 3.547 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08875/2.788, allocations: 54.83 MB / 0.9659 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002259/2.789, allocations: 342.8 kB / 0.9662 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.313/7.102, allocations: 2.672 kB / 0.9662 GB, free: 12.7 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_CentrifugalPump_TestCentrifugalPump_Scenario_2_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_CentrifugalPump_TestCentrifugalPump_Scenario_2.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2.pipe 2>&1)