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: translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.856/0.856, allocations: 150.9 MB / 166 MB, free: 14.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003001/0.0003001, allocations: 11.98 kB / 204 MB, free: 10.13 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1515, allocations: 31.33 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.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2): time 1.611/1.763, allocations: 293.1 MB / 0.5161 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2006/1.963, allocations: 188.9 MB / 0.7005 GB, free: 160 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003678/1.964, allocations: 7.938 kB / 0.7005 GB, free: 152 kB / 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.0001723/1.964, allocations: 36.62 kB / 0.7005 GB, free: 116 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.327/2.291, allocations: 136.1 kB / 0.7007 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02785/2.319, allocations: 8.819 MB / 0.7093 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001137/2.32, allocations: 0.5591 MB / 0.7098 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004239/2.32, allocations: 313 kB / 0.7101 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003328/2.321, allocations: 246 kB / 0.7104 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002974/2.321, allocations: 265.3 kB / 0.7106 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.437e-05/2.321, allocations: 32.47 kB / 0.7107 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03189/2.353, allocations: 16.74 MB / 0.727 GB, free: 3.598 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003375/2.353, allocations: 215.4 kB / 0.7272 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005275/2.354, allocations: 356.3 kB / 0.7275 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02278/2.377, allocations: 9.071 MB / 0.7364 GB, free: 1.938 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/2.377, allocations: 0 / 0.7364 GB, free: 1.938 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.413e-06/2.377, allocations: 0 / 0.7364 GB, free: 1.938 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.287e-05/2.377, allocations: 1.312 kB / 0.7364 GB, free: 1.938 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.006551/2.383, allocations: 2.15 MB / 0.7385 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.877e-05/2.383, allocations: 12.69 kB / 0.7385 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001969/2.384, allocations: 111.7 kB / 0.7386 GB, free: 0.4922 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005297/2.384, allocations: 0.4889 MB / 0.7391 GB, free: 120 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.491e-05/2.384, allocations: 35.16 kB / 0.7391 GB, free: 120 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.185e-05/2.384, allocations: 53.75 kB / 0.7392 GB, free: 120 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/2.386, allocations: 0.6866 MB / 0.7399 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/2.386, allocations: 2.906 kB / 0.7399 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.057e-05/2.386, allocations: 18.53 kB / 0.7399 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/2.386, allocations: 16.53 kB / 0.7399 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/2.387, allocations: 0.707 MB / 0.7406 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07193/2.459, allocations: 33.31 MB / 0.7731 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/2.46, allocations: 0.8525 MB / 0.7739 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004353/2.461, allocations: 272.4 kB / 0.7742 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2159/2.677, allocations: 110.5 MB / 0.8822 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.857e-05/2.677, allocations: 37.81 kB / 0.8822 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=29): time 2.946e-06/2.677, allocations: 1.203 kB / 0.8822 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of matching and sorting (n=29): time 0.004203/2.681, allocations: 1.461 MB / 0.8836 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/2.681, allocations: 55.41 kB / 0.8837 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001305/2.682, allocations: 0.8912 MB / 0.8846 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.357e-05/2.682, allocations: 32.23 kB / 0.8846 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003834/2.683, allocations: 456.2 kB / 0.885 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/2.683, allocations: 102.5 kB / 0.8851 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001571/2.683, allocations: 82.03 kB / 0.8852 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001284/2.683, allocations: 329 kB / 0.8855 GB, free: 10.49 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004718/2.684, allocations: 269.9 kB / 0.8858 GB, free: 10.28 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005235/2.684, allocations: 393.3 kB / 0.8861 GB, free: 9.91 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009405/2.685, allocations: 0.6652 MB / 0.8868 GB, free: 9.336 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/2.685, allocations: 4 kB / 0.8868 GB, free: 9.332 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001726/2.687, allocations: 0.9335 MB / 0.8877 GB, free: 8.574 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/2.687, allocations: 14.84 kB / 0.8877 GB, free: 8.562 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/2.687, allocations: 4 kB / 0.8877 GB, free: 8.559 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004295/2.691, allocations: 0.7202 MB / 0.8884 GB, free: 7.891 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/2.692, allocations: 73.86 kB / 0.8885 GB, free: 7.824 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001287/2.693, allocations: 1.162 MB / 0.8896 GB, free: 6.816 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004552/2.693, allocations: 62.41 kB / 0.8897 GB, free: 6.762 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.541e-05/2.693, allocations: 20.72 kB / 0.8897 GB, free: 6.746 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.0004331/2.694, allocations: 266.5 kB / 0.89 GB, free: 6.527 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/2.694, allocations: 94.86 kB / 0.8901 GB, free: 6.434 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001491/2.696, allocations: 0.8813 MB / 0.8909 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/2.696, allocations: 7.938 kB / 0.8909 GB, free: 5.723 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/2.696, allocations: 0 / 0.8909 GB, free: 5.723 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/2.696, allocations: 3.984 kB / 0.8909 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002334/2.698, allocations: 1.57 MB / 0.8925 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/2.698, allocations: 4 kB / 0.8925 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/2.698, allocations: 34.89 kB / 0.8925 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00282/2.701, allocations: 0.5826 MB / 0.8931 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/2.701, allocations: 11.38 kB / 0.8931 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001224/2.702, allocations: 1.163 MB / 0.8942 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/2.702, allocations: 6.938 kB / 0.8942 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/2.704, allocations: 0.9154 MB / 0.8951 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002742/2.704, allocations: 182.2 kB / 0.8953 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.369e-05/2.704, allocations: 10.47 kB / 0.8953 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002857/2.704, allocations: 19.36 kB / 0.8953 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.254e-05/2.704, allocations: 24.67 kB / 0.8953 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/2.704, allocations: 8 kB / 0.8953 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0008538/2.705, allocations: 0.6138 MB / 0.8959 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.9e-07/2.705, allocations: 0 / 0.8959 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.005607/2.711, allocations: 1.329 MB / 0.8972 GB, free: 76 kB / 0.7325 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.009591/2.721, allocations: 1.993 MB / 0.8992 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001614/2.722, allocations: 0.6448 MB / 0.8998 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.932e-06/2.722, allocations: 0 / 0.8998 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0006926/2.723, allocations: 331.6 kB / 0.9001 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008462/2.724, allocations: 86.98 kB / 0.9002 GB, free: 13.55 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/2.727, allocations: 1.891 MB / 0.9021 GB, free: 11.76 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006132/2.728, allocations: 0.9975 MB / 0.903 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002552/2.728, allocations: 55.11 kB / 0.9031 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.242e-05/2.728, allocations: 31.44 kB / 0.9031 GB, free: 10.67 MB / 0.7481 GB Notification: Performance of SimCode: time 7.42e-07/2.728, allocations: 0 / 0.9031 GB, free: 10.67 MB / 0.7481 GB Notification: Performance of Templates: time 0.06807/2.796, allocations: 44.48 MB / 0.9466 GB, free: 14.4 MB / 0.795 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2.makefile (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 & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.CentrifugalPump.TestCentrifugalPump.Scenario_2.pipe 2>&1)