Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe.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.SimpleExamples.TestDynamicTwoPhaseFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8169/0.8169, allocations: 150.8 MB / 166.6 MB, free: 11.17 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002754/0.0002757, allocations: 19.97 kB / 204.7 MB, free: 6.156 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.1715, allocations: 31.33 MB / 236 MB, free: 3.879 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.SimpleExamples.TestDynamicTwoPhaseFlowPipe): time 1.596/1.767, allocations: 297 MB / 0.5206 GB, free: 5.055 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.5337/2.301, allocations: 195.2 MB / 0.7112 GB, free: 0.6562 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001553/2.302, allocations: 28 kB / 0.7112 GB, free: 0.6445 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:233:3-234:54: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/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:237:3-238:52: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/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/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:233:3-234:54: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/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:237:3-238:52: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/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). Notification: Performance of NFTyping.typeComponents: time 0.001127/2.304, allocations: 374.6 kB / 0.7116 GB, free: 0.5508 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.002641/2.306, allocations: 1.199 MB / 0.7128 GB, free: 312 kB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.03333/2.34, allocations: 10.28 MB / 0.7228 GB, free: 14.45 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.0201/2.36, allocations: 20.38 MB / 0.7427 GB, free: 8.734 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01148/2.371, allocations: 6.115 MB / 0.7487 GB, free: 5.949 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01373/2.385, allocations: 5.945 MB / 0.7545 GB, free: 4.816 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01577/2.401, allocations: 7.748 MB / 0.7621 GB, free: 464 kB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.006202/2.407, allocations: 0.6719 MB / 0.7627 GB, free: 15.78 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04693/2.454, allocations: 21.75 MB / 0.784 GB, free: 10.86 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.008586/2.463, allocations: 4.376 MB / 0.7882 GB, free: 6.586 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.01582/2.479, allocations: 5.805 MB / 0.7939 GB, free: 0.8711 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.05181/2.53, allocations: 25.04 MB / 0.8184 GB, free: 8.902 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 1.027e-05/2.53, allocations: 0 / 0.8184 GB, free: 8.902 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.064e-06/2.53, allocations: 0 / 0.8184 GB, free: 8.902 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.0005239/2.531, allocations: 0 / 0.8184 GB, free: 8.902 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2967 * Number of variables: 2967 Notification: Performance of Generate backend data structure: time 0.06793/2.599, allocations: 16.37 MB / 0.8343 GB, free: 8.461 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/2.599, allocations: 8.031 kB / 0.8343 GB, free: 8.453 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005212/2.604, allocations: 1.051 MB / 0.8354 GB, free: 7.391 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.012/2.616, allocations: 4.063 MB / 0.8393 GB, free: 3.293 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.006436/2.623, allocations: 4.374 MB / 0.8436 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004657/2.627, allocations: 0.781 MB / 0.8444 GB, free: 13.48 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06356/2.691, allocations: 21.5 MB / 0.8654 GB, free: 7.695 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004076/2.691, allocations: 19.86 kB / 0.8654 GB, free: 7.676 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004517/2.696, allocations: 324 kB / 0.8657 GB, free: 7.359 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003486/2.696, allocations: 311.8 kB / 0.866 GB, free: 7.055 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08196/2.778, allocations: 30.69 MB / 0.896 GB, free: 8.336 MB / 0.7136 GB 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.5555/3.334, allocations: 104.9 MB / 0.9984 GB, free: 373.8 MB / 0.7762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05299/3.387, allocations: 22.04 MB / 1.02 GB, free: 368.5 MB / 0.7762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03732/3.424, allocations: 16.23 MB / 1.036 GB, free: 361 MB / 0.7762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1453/3.57, allocations: 83.96 MB / 1.118 GB, free: 271.9 MB / 0.7762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003049/3.57, allocations: 164.6 kB / 1.118 GB, free: 271.7 MB / 0.7762 GB Notification: Performance of pre-optimization done (n=2236): time 1.698e-05/3.57, allocations: 0 / 1.118 GB, free: 271.7 MB / 0.7762 GB Notification: Performance of matching and sorting (n=2246): time 0.2335/3.804, allocations: 78.18 MB / 1.194 GB, free: 192.9 MB / 0.7762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/3.804, allocations: 211.9 kB / 1.195 GB, free: 192.6 MB / 0.7762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002419/3.806, allocations: 2.108 MB / 1.197 GB, free: 190.5 MB / 0.7762 GB Notification: Performance of collectPreVariables (initialization): time 0.004687/3.811, allocations: 229.7 kB / 1.197 GB, free: 190.3 MB / 0.7762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:15:3-16:73:writable] Warning: The parameter dynamicTwoPhaseFlowPipe1.dpfCorr has fixed = false and a binding equation dynamicTwoPhaseFlowPipe1.dpfCorr = 1.0, which is probably redundant. Setting fixed = false usually means there is an additional initial equation to determine the parameter value. The binding was ignored by old Modelica tools, but this is not according to the Modelica specification. Please remove the parameter binding, or bind the parameter to another parameter with fixed = false and no binding. Notification: Performance of collectInitialEqns (initialization): time 0.0009397/3.812, allocations: 1.553 MB / 1.198 GB, free: 188.7 MB / 0.7762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00933/3.821, allocations: 7.408 MB / 1.206 GB, free: 181.3 MB / 0.7762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01453/3.836, allocations: 2.965 MB / 1.208 GB, free: 178.4 MB / 0.7762 GB Notification: Performance of setup shared object (initialization): time 4.127e-05/3.836, allocations: 301.1 kB / 1.209 GB, free: 178.1 MB / 0.7762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03596/3.872, allocations: 14.29 MB / 1.223 GB, free: 163.8 MB / 0.7762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03799/3.91, allocations: 16.38 MB / 1.239 GB, free: 146.9 MB / 0.7762 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.3439/4.254, allocations: 98.05 MB / 1.334 GB, free: 48.69 MB / 0.7762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.513e-05/4.254, allocations: 12 kB / 1.334 GB, free: 48.68 MB / 0.7762 GB Notification: Performance of matching and sorting (n=2462) (initialization): time 0.1063/4.36, allocations: 40.04 MB / 1.374 GB, free: 8.66 MB / 0.7762 GB Notification: Performance of prepare postOptimizeDAE: time 5.008e-05/4.36, allocations: 20 kB / 1.374 GB, free: 8.641 MB / 0.7762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001887/4.36, allocations: 76.64 kB / 1.374 GB, free: 8.566 MB / 0.7762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2913/4.652, allocations: 37.67 MB / 1.41 GB, free: 382.6 MB / 0.7762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0212/4.673, allocations: 3.641 MB / 1.414 GB, free: 382.6 MB / 0.7762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05497/4.728, allocations: 39.51 MB / 1.453 GB, free: 360.4 MB / 0.7762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02044/4.748, allocations: 2.726 MB / 1.455 GB, free: 358.8 MB / 0.7762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004692/4.753, allocations: 0.6618 MB / 1.456 GB, free: 358.3 MB / 0.7762 GB Warning: The initial conditions are over specified. The following 11 initial equations are redundant, so they are removed from the initialization system: $DER.dynamicTwoPhaseFlowPipe1.Q[1] = 0.0 $DER.dynamicTwoPhaseFlowPipe.Q[1] = 0.0 $DER.dynamicTwoPhaseFlowPipe.Q[2] = 0.0 $DER.dynamicTwoPhaseFlowPipe.Q[3] = 0.0 $DER.dynamicTwoPhaseFlowPipe.Q[4] = 0.0 $DER.dynamicTwoPhaseFlowPipe.Q[5] = 0.0 $DER.dynamicTwoPhaseFlowPipe.Q[6] = 0.0 $DER.dynamicTwoPhaseFlowPipe.Q[7] = 0.0 $DER.dynamicTwoPhaseFlowPipe.Q[8] = 0.0 $DER.dynamicTwoPhaseFlowPipe.Q[10] = 0.0 $DER.dynamicTwoPhaseFlowPipe.Q[11] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 165 * Number of states: 0 () * Number of discrete variables: 12 (sourceP1.C.ftype,dynamicTwoPhaseFlowPipe1.fluid,sinkP1.fluid,sourceP1.fluid1,sourceP.C.ftype,dynamicTwoPhaseFlowPipe.fluid,sinkP.fluid,sourceP.fluid1,dynamicTwoPhaseFlowPipe1.C1.diff_on_2,dynamicTwoPhaseFlowPipe1.C2.diff_on_1,dynamicTwoPhaseFlowPipe.C1.diff_on_2,dynamicTwoPhaseFlowPipe.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (933): * Single equations (assignments): 885 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 36 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(20,211), (23,297)} Notification: Performance of prepare postOptimizeDAE: time 0.01035/4.764, allocations: 2.618 MB / 1.458 GB, free: 356.3 MB / 0.7762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004332/4.768, allocations: 0.7984 MB / 1.459 GB, free: 355.5 MB / 0.7762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1244/4.892, allocations: 47.15 MB / 1.505 GB, free: 310.3 MB / 0.7762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1131/5.005, allocations: 41.47 MB / 1.546 GB, free: 268.7 MB / 0.7762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.54e-05/5.006, allocations: 12.88 kB / 1.546 GB, free: 268.7 MB / 0.7762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004424/5.006, allocations: 83.67 kB / 1.546 GB, free: 268.6 MB / 0.7762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1836/5.19, allocations: 75.55 MB / 1.62 GB, free: 192.5 MB / 0.7762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002743/5.19, allocations: 47.97 kB / 1.62 GB, free: 192.4 MB / 0.7762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02098/5.211, allocations: 4.076 MB / 1.624 GB, free: 188.5 MB / 0.7762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06027/5.271, allocations: 19.9 MB / 1.643 GB, free: 168.5 MB / 0.7762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00485/5.276, allocations: 0.5735 MB / 1.644 GB, free: 168 MB / 0.7762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09113/5.367, allocations: 69.4 MB / 1.711 GB, free: 94.8 MB / 0.7762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/5.367, allocations: 12.31 kB / 1.711 GB, free: 94.79 MB / 0.7762 GB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 1.948/7.315, allocations: 0.5336 GB / 2.245 GB, free: 297.1 MB / 0.7762 GB Error: post-optimization module symbolicJacobian (simulation) failed.