Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.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.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8315/0.8315, allocations: 150.8 MB / 166.6 MB, free: 11.16 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002739/0.0002743, allocations: 11.97 kB / 204.7 MB, free: 6.145 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1641/0.1644, allocations: 31.33 MB / 236 MB, free: 3.871 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.TestControlValve): time 1.667/1.831, allocations: 292 MB / 0.5157 GB, free: 9.977 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.6169/2.448, allocations: 188.7 MB / 0.6999 GB, free: 2.73 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003119/2.448, allocations: 8.906 kB / 0.6999 GB, free: 2.73 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/ControlValve.mo:44:3-45:68: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/ControlValve.mo:46:3-47:66: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.0002623/2.449, allocations: 88.83 kB / 0.7 GB, free: 2.727 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0003251/2.449, allocations: 151.9 kB / 0.7002 GB, free: 2.723 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.03445/2.483, allocations: 8.758 MB / 0.7087 GB, free: 2.457 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0006318/2.484, allocations: 412.5 kB / 0.7091 GB, free: 2.457 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003556/2.484, allocations: 206.9 kB / 0.7093 GB, free: 2.43 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002955/2.485, allocations: 158.9 kB / 0.7095 GB, free: 2.43 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000304/2.485, allocations: 223.2 kB / 0.7097 GB, free: 2.43 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 5.436e-05/2.485, allocations: 23.94 kB / 0.7097 GB, free: 2.43 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04412/2.529, allocations: 19.98 MB / 0.7292 GB, free: 0.8555 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002303/2.529, allocations: 93.56 kB / 0.7293 GB, free: 0.8398 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0003748/2.53, allocations: 204.1 kB / 0.7295 GB, free: 0.8281 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.03132/2.561, allocations: 10.04 MB / 0.7393 GB, free: 13.44 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 9.798e-06/2.561, allocations: 2.906 kB / 0.7393 GB, free: 13.44 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.924e-06/2.561, allocations: 3.938 kB / 0.7393 GB, free: 13.43 MB / 0.573 GB Notification: Performance of Transformations before backend: time 2.284e-05/2.561, allocations: 6.438 kB / 0.7393 GB, free: 13.43 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.00593/2.567, allocations: 1.833 MB / 0.7411 GB, free: 12.24 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/2.567, allocations: 11.39 kB / 0.7411 GB, free: 12.24 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001432/2.567, allocations: 51.66 kB / 0.7412 GB, free: 12.21 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005143/2.568, allocations: 341.3 kB / 0.7415 GB, free: 11.94 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.548e-05/2.568, allocations: 30.78 kB / 0.7415 GB, free: 11.94 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.766e-05/2.568, allocations: 31.88 kB / 0.7415 GB, free: 11.94 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006383/2.569, allocations: 379.9 kB / 0.7419 GB, free: 11.8 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/2.569, allocations: 3.719 kB / 0.7419 GB, free: 11.8 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.061e-05/2.569, allocations: 17.12 kB / 0.7419 GB, free: 11.8 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/2.569, allocations: 14.47 kB / 0.7419 GB, free: 11.79 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004674/2.569, allocations: 256.6 kB / 0.7422 GB, free: 11.76 MB / 0.573 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.009733/2.579, allocations: 6.208 MB / 0.7483 GB, free: 6.484 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/2.579, allocations: 118.2 kB / 0.7484 GB, free: 6.445 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.708e-05/2.579, allocations: 50.58 kB / 0.7484 GB, free: 6.434 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2439/2.823, allocations: 118.3 MB / 0.8639 GB, free: 6.215 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.879e-05/2.823, allocations: 30.56 kB / 0.864 GB, free: 6.176 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 2.485e-06/2.823, allocations: 1.203 kB / 0.864 GB, free: 6.176 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0009896/2.824, allocations: 318.1 kB / 0.8643 GB, free: 5.84 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/2.824, allocations: 51.41 kB / 0.8643 GB, free: 5.777 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005456/2.825, allocations: 417.5 kB / 0.8647 GB, free: 5.359 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/2.825, allocations: 33.7 kB / 0.8647 GB, free: 5.32 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001963/2.825, allocations: 258 kB / 0.865 GB, free: 5.066 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.905e-05/2.825, allocations: 31.55 kB / 0.865 GB, free: 5.035 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.417e-05/2.825, allocations: 56.61 kB / 0.8651 GB, free: 4.977 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001396/2.825, allocations: 350.7 kB / 0.8654 GB, free: 4.625 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/2.826, allocations: 66.56 kB / 0.8655 GB, free: 4.562 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/2.826, allocations: 156.8 kB / 0.8656 GB, free: 4.363 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002526/2.826, allocations: 223.6 kB / 0.8658 GB, free: 4.113 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/2.826, allocations: 9.203 kB / 0.8658 GB, free: 4.105 MB / 0.698 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005764/2.827, allocations: 313 kB / 0.8661 GB, free: 3.816 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/2.827, allocations: 4.438 kB / 0.8661 GB, free: 3.812 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/2.827, allocations: 5.094 kB / 0.8661 GB, free: 3.809 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007568/2.827, allocations: 108.7 kB / 0.8662 GB, free: 3.699 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/2.828, allocations: 46.81 kB / 0.8663 GB, free: 3.656 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000451/2.828, allocations: 0.5669 MB / 0.8668 GB, free: 3.066 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/2.828, allocations: 27.69 kB / 0.8669 GB, free: 3.039 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/2.828, allocations: 15.94 kB / 0.8669 GB, free: 3.023 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,ControlValve.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,ControlValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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.0001748/2.828, allocations: 171.7 kB / 0.867 GB, free: 2.852 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.586e-05/2.828, allocations: 35.56 kB / 0.8671 GB, free: 2.816 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004632/2.829, allocations: 219.3 kB / 0.8673 GB, free: 2.598 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/2.829, allocations: 4.031 kB / 0.8673 GB, free: 2.594 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/2.829, allocations: 5.203 kB / 0.8673 GB, free: 2.59 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/2.829, allocations: 4 kB / 0.8673 GB, free: 2.586 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003415/2.829, allocations: 353.4 kB / 0.8676 GB, free: 2.191 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/2.829, allocations: 0 / 0.8676 GB, free: 2.191 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.529e-05/2.829, allocations: 8 kB / 0.8676 GB, free: 2.184 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004415/2.83, allocations: 80.62 kB / 0.8677 GB, free: 2.102 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/2.83, allocations: 4 kB / 0.8677 GB, free: 2.098 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003846/2.83, allocations: 0.5668 MB / 0.8683 GB, free: 1.508 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/2.83, allocations: 0 / 0.8683 GB, free: 1.508 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009849/2.831, allocations: 0.9467 MB / 0.8692 GB, free: 0.5039 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.994e-05/2.831, allocations: 117.8 kB / 0.8693 GB, free: 380 kB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.769e-05/2.831, allocations: 4 kB / 0.8693 GB, free: 376 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.097e-05/2.831, allocations: 3 kB / 0.8693 GB, free: 376 kB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.482e-05/2.832, allocations: 4 kB / 0.8693 GB, free: 372 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/2.832, allocations: 7.984 kB / 0.8693 GB, free: 364 kB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003082/2.832, allocations: 299.1 kB / 0.8696 GB, free: 64 kB / 0.698 GB Notification: Performance of sort global known variables: time 1.8e-07/2.832, allocations: 4 kB / 0.8696 GB, free: 60 kB / 0.698 GB Notification: Performance of remove unused functions: time 0.004601/2.836, allocations: 1.514 MB / 0.8711 GB, free: 14.54 MB / 0.7136 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.007377/2.844, allocations: 2.303 MB / 0.8734 GB, free: 12.53 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0005286/2.844, allocations: 161.7 kB / 0.8735 GB, free: 12.38 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/2.844, allocations: 0 / 0.8735 GB, free: 12.38 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001675/2.845, allocations: 63.75 kB / 0.8736 GB, free: 12.32 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005104/2.845, allocations: 70.3 kB / 0.8736 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/2.847, allocations: 0.85 MB / 0.8745 GB, free: 11.37 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/2.847, allocations: 0.804 MB / 0.8753 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0001622/2.847, allocations: 46.95 kB / 0.8753 GB, free: 10.48 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.519e-05/2.847, allocations: 23.44 kB / 0.8753 GB, free: 10.46 MB / 0.7136 GB Notification: Performance of SimCode: time 3.1e-07/2.847, allocations: 0 / 0.8753 GB, free: 10.46 MB / 0.7136 GB Notification: Performance of Templates: time 0.05941/2.907, allocations: 46.42 MB / 0.9206 GB, free: 12.09 MB / 0.7605 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)