Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.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.PressureLoss.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8092/0.8092, allocations: 150.8 MB / 166.6 MB, free: 11.15 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002666/0.0002666, allocations: 15.97 kB / 204.7 MB, free: 6.145 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.1695, allocations: 31.32 MB / 236 MB, free: 3.918 MB / 186.7 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.TestDiaphragm): time 1.665/1.834, allocations: 292 MB / 0.5156 GB, free: 10.05 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.6039/2.438, allocations: 191.1 MB / 0.7022 GB, free: 2.715 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003854/2.439, allocations: 7.25 kB / 0.7022 GB, free: 2.715 MB / 0.5573 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/Diaphragm.mo:34:3-35: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/Diaphragm.mo:36:3-37: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.000141/2.439, allocations: 26.97 kB / 0.7022 GB, free: 2.715 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0004091/2.439, allocations: 105.5 kB / 0.7023 GB, free: 2.711 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.03785/2.477, allocations: 9.319 MB / 0.7114 GB, free: 2.418 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0007182/2.478, allocations: 385.3 kB / 0.7118 GB, free: 2.418 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003828/2.478, allocations: 189.2 kB / 0.712 GB, free: 2.395 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003884/2.479, allocations: 152.8 kB / 0.7121 GB, free: 2.391 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003494/2.479, allocations: 173.4 kB / 0.7123 GB, free: 2.387 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 7.522e-05/2.479, allocations: 26.47 kB / 0.7123 GB, free: 2.387 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05685/2.536, allocations: 21.01 MB / 0.7328 GB, free: 356 kB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002034/2.536, allocations: 70.06 kB / 0.7329 GB, free: 344 kB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0004341/2.537, allocations: 177.8 kB / 0.7331 GB, free: 332 kB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.03976/2.576, allocations: 10.58 MB / 0.7434 GB, free: 12.75 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/2.577, allocations: 2.781 kB / 0.7434 GB, free: 12.75 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.684e-06/2.577, allocations: 0 / 0.7434 GB, free: 12.75 MB / 0.573 GB Notification: Performance of Transformations before backend: time 2.066e-05/2.577, allocations: 0 / 0.7434 GB, free: 12.75 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00768/2.584, allocations: 1.87 MB / 0.7452 GB, free: 11.53 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/2.584, allocations: 12.34 kB / 0.7452 GB, free: 11.53 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/2.584, allocations: 40.41 kB / 0.7453 GB, free: 11.51 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004315/2.585, allocations: 289.7 kB / 0.7456 GB, free: 11.26 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.774e-05/2.585, allocations: 26.56 kB / 0.7456 GB, free: 11.26 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.628e-05/2.585, allocations: 40.25 kB / 0.7456 GB, free: 11.25 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008053/2.586, allocations: 377.5 kB / 0.746 GB, free: 11.09 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/2.586, allocations: 3.906 kB / 0.746 GB, free: 11.09 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.89e-05/2.586, allocations: 15.61 kB / 0.746 GB, free: 11.09 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/2.586, allocations: 9.125 kB / 0.746 GB, free: 11.09 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006181/2.587, allocations: 245.5 kB / 0.7462 GB, free: 11.06 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01002/2.597, allocations: 6.157 MB / 0.7523 GB, free: 5.781 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/2.597, allocations: 85.52 kB / 0.7523 GB, free: 5.75 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.492e-05/2.597, allocations: 30.94 kB / 0.7524 GB, free: 5.738 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.334/2.931, allocations: 154.7 MB / 0.9035 GB, free: 11.47 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.172e-05/2.931, allocations: 34.56 kB / 0.9035 GB, free: 11.43 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.834e-06/2.931, allocations: 0 / 0.9035 GB, free: 11.43 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0009011/2.932, allocations: 242.3 kB / 0.9037 GB, free: 11.17 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/2.932, allocations: 89.05 kB / 0.9038 GB, free: 11.06 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004142/2.933, allocations: 287.9 kB / 0.9041 GB, free: 10.78 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/2.933, allocations: 28.61 kB / 0.9041 GB, free: 10.75 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/2.933, allocations: 242 kB / 0.9044 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.596e-05/2.933, allocations: 19.72 kB / 0.9044 GB, free: 10.49 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/2.933, allocations: 61.83 kB / 0.9044 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001358/2.933, allocations: 338.8 kB / 0.9048 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/2.933, allocations: 40.45 kB / 0.9048 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/2.933, allocations: 163.2 kB / 0.905 GB, free: 9.84 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002722/2.934, allocations: 207.2 kB / 0.9052 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/2.934, allocations: 0 / 0.9052 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005619/2.934, allocations: 280.5 kB / 0.9054 GB, free: 9.348 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/2.934, allocations: 9.562 kB / 0.9054 GB, free: 9.34 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/2.934, allocations: 4.469 kB / 0.9054 GB, free: 9.336 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009783/2.935, allocations: 112.6 kB / 0.9055 GB, free: 9.223 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001846/2.935, allocations: 45.78 kB / 0.9056 GB, free: 9.184 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006166/2.936, allocations: 0.5707 MB / 0.9061 GB, free: 8.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002825/2.936, allocations: 43.61 kB / 0.9062 GB, free: 8.547 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/2.936, allocations: 8 kB / 0.9062 GB, free: 8.539 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,Diaphragm.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Diaphragm.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002569/2.937, allocations: 146.6 kB / 0.9063 GB, free: 8.391 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.671e-05/2.937, allocations: 23.72 kB / 0.9064 GB, free: 8.367 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006734/2.937, allocations: 175.9 kB / 0.9065 GB, free: 8.184 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/2.938, allocations: 4 kB / 0.9065 GB, free: 8.18 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/2.938, allocations: 4 kB / 0.9065 GB, free: 8.176 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/2.938, allocations: 0 / 0.9065 GB, free: 8.176 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004899/2.938, allocations: 304 kB / 0.9068 GB, free: 7.832 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.648e-06/2.938, allocations: 0 / 0.9068 GB, free: 7.832 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.39e-05/2.938, allocations: 7.984 kB / 0.9068 GB, free: 7.824 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007518/2.939, allocations: 103.6 kB / 0.9069 GB, free: 7.723 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/2.939, allocations: 1.203 kB / 0.9069 GB, free: 7.723 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005637/2.939, allocations: 0.5602 MB / 0.9075 GB, free: 7.137 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/2.939, allocations: 0 / 0.9075 GB, free: 7.137 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001598/2.941, allocations: 0.8741 MB / 0.9083 GB, free: 6.211 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/2.941, allocations: 108.8 kB / 0.9084 GB, free: 6.086 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.265e-05/2.941, allocations: 3.938 kB / 0.9084 GB, free: 6.082 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/2.941, allocations: 4 kB / 0.9084 GB, free: 6.078 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.026e-05/2.941, allocations: 3.984 kB / 0.9084 GB, free: 6.074 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.26e-05/2.942, allocations: 16 kB / 0.9085 GB, free: 6.059 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002717/2.942, allocations: 203.2 kB / 0.9087 GB, free: 5.859 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.41e-07/2.942, allocations: 0 / 0.9087 GB, free: 5.859 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.006678/2.948, allocations: 1.671 MB / 0.9103 GB, free: 4.188 MB / 0.7448 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 (4): * Single equations (assignments): 3 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01118/2.96, allocations: 2.55 MB / 0.9128 GB, free: 1.945 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000606/2.96, allocations: 136.2 kB / 0.9129 GB, free: 1.824 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/2.96, allocations: 0 / 0.9129 GB, free: 1.824 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001648/2.961, allocations: 44.27 kB / 0.9129 GB, free: 1.785 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005175/2.961, allocations: 73.56 kB / 0.913 GB, free: 1.719 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/2.962, allocations: 0.6785 MB / 0.9137 GB, free: 1.004 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/2.963, allocations: 0.7675 MB / 0.9144 GB, free: 216 kB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001944/2.963, allocations: 42.91 kB / 0.9145 GB, free: 176 kB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.92e-05/2.963, allocations: 30.33 kB / 0.9145 GB, free: 148 kB / 0.7448 GB Notification: Performance of SimCode: time 3.31e-07/2.963, allocations: 0 / 0.9145 GB, free: 148 kB / 0.7448 GB Notification: Performance of Templates: time 0.2723/3.235, allocations: 48.94 MB / 0.9623 GB, free: 437.3 MB / 0.7917 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)