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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",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.8126/0.8126, allocations: 150.9 MB / 166 MB, free: 14.57 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003101/0.0003102, allocations: 11.98 kB / 204.1 MB, free: 9.957 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.1556, allocations: 31.32 MB / 235.4 MB, free: 5.434 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.PressureLoss.TestDiaphragm): time 1.559/1.714, allocations: 293.6 MB / 0.5167 GB, free: 13.44 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4739/2.188, allocations: 191.1 MB / 0.7032 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000253/2.188, allocations: 6.938 kB / 0.7033 GB, free: 3.879 MB / 0.5762 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.0001216/2.189, allocations: 31.3 kB / 0.7033 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002448/2.189, allocations: 101.4 kB / 0.7034 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02237/2.211, allocations: 9.322 MB / 0.7125 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004219/2.212, allocations: 380.2 kB / 0.7128 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002111/2.212, allocations: 191.4 kB / 0.713 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/2.212, allocations: 150.9 kB / 0.7132 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/2.212, allocations: 172.6 kB / 0.7133 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.736e-05/2.212, allocations: 26.72 kB / 0.7134 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03082/2.243, allocations: 21.01 MB / 0.7339 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001241/2.243, allocations: 67.52 kB / 0.7339 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002509/2.243, allocations: 177.3 kB / 0.7341 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02324/2.267, allocations: 10.5 MB / 0.7444 GB, free: 220 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/2.267, allocations: 0 / 0.7444 GB, free: 220 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.834e-06/2.267, allocations: 0 / 0.7444 GB, free: 220 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.124e-06/2.267, allocations: 2.125 kB / 0.7444 GB, free: 220 kB / 0.5762 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.005247/2.272, allocations: 1.871 MB / 0.7462 GB, free: 15 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/2.272, allocations: 11.03 kB / 0.7462 GB, free: 15 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.143e-05/2.272, allocations: 79.02 kB / 0.7463 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.99e-05/2.272, allocations: 42.78 kB / 0.7463 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003249/2.273, allocations: 290.6 kB / 0.7466 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/2.273, allocations: 27.31 kB / 0.7466 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.108e-05/2.273, allocations: 32.72 kB / 0.7467 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005446/2.273, allocations: 382.2 kB / 0.747 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/2.273, allocations: 0 / 0.747 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.129e-05/2.273, allocations: 14.34 kB / 0.747 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/2.273, allocations: 15.31 kB / 0.7471 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003775/2.274, allocations: 244.7 kB / 0.7473 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007704/2.281, allocations: 6.169 MB / 0.7533 GB, free: 9.215 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000172/2.282, allocations: 81 kB / 0.7534 GB, free: 9.184 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.086e-05/2.282, allocations: 28.55 kB / 0.7534 GB, free: 9.176 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.285/2.567, allocations: 154.7 MB / 0.9045 GB, free: 6.648 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/2.567, allocations: 41.97 kB / 0.9045 GB, free: 6.605 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 2.064e-06/2.567, allocations: 0 / 0.9045 GB, free: 6.605 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0007453/2.568, allocations: 257.2 kB / 0.9048 GB, free: 6.363 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/2.568, allocations: 77.11 kB / 0.9049 GB, free: 6.27 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003019/2.568, allocations: 291.3 kB / 0.9051 GB, free: 6.031 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/2.568, allocations: 28.83 kB / 0.9052 GB, free: 6 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/2.568, allocations: 233.8 kB / 0.9054 GB, free: 5.805 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.259e-05/2.568, allocations: 33.06 kB / 0.9054 GB, free: 5.777 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.611e-05/2.568, allocations: 54.38 kB / 0.9055 GB, free: 5.734 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001123/2.568, allocations: 339.9 kB / 0.9058 GB, free: 5.402 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/2.568, allocations: 44.48 kB / 0.9058 GB, free: 5.375 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/2.569, allocations: 172.5 kB / 0.906 GB, free: 5.184 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002564/2.569, allocations: 208.9 kB / 0.9062 GB, free: 4.988 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/2.569, allocations: 4 kB / 0.9062 GB, free: 4.984 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005133/2.569, allocations: 270.3 kB / 0.9065 GB, free: 4.781 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/2.569, allocations: 10.77 kB / 0.9065 GB, free: 4.773 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/2.569, allocations: 4 kB / 0.9065 GB, free: 4.77 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009589/2.57, allocations: 113.9 kB / 0.9066 GB, free: 4.668 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/2.571, allocations: 44.12 kB / 0.9066 GB, free: 4.629 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004381/2.571, allocations: 0.5656 MB / 0.9072 GB, free: 4.059 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002144/2.571, allocations: 35.17 kB / 0.9072 GB, free: 4.027 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.023e-05/2.571, allocations: 9.812 kB / 0.9072 GB, free: 4.02 MB / 0.7481 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.0001634/2.571, allocations: 151.7 kB / 0.9074 GB, free: 3.883 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.185e-05/2.571, allocations: 27.66 kB / 0.9074 GB, free: 3.855 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006022/2.572, allocations: 170.1 kB / 0.9076 GB, free: 3.711 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/2.572, allocations: 1.203 kB / 0.9076 GB, free: 3.711 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/2.572, allocations: 0 / 0.9076 GB, free: 3.711 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/2.572, allocations: 11.98 kB / 0.9076 GB, free: 3.699 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002873/2.572, allocations: 299.2 kB / 0.9079 GB, free: 3.406 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/2.572, allocations: 3.984 kB / 0.9079 GB, free: 3.402 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.604e-05/2.572, allocations: 15 kB / 0.9079 GB, free: 3.391 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006973/2.573, allocations: 91.8 kB / 0.908 GB, free: 3.305 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/2.573, allocations: 1.297 kB / 0.908 GB, free: 3.305 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003978/2.574, allocations: 0.5697 MB / 0.9085 GB, free: 2.73 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/2.574, allocations: 6.938 kB / 0.9085 GB, free: 2.727 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004913/2.574, allocations: 163.2 kB / 0.9087 GB, free: 2.57 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 8.689e-05/2.574, allocations: 109.5 kB / 0.9088 GB, free: 2.449 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.877e-05/2.574, allocations: 8.609 kB / 0.9088 GB, free: 2.441 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.51e-05/2.574, allocations: 1.25 kB / 0.9088 GB, free: 2.441 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.224e-05/2.574, allocations: 11.47 kB / 0.9088 GB, free: 2.434 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/2.574, allocations: 8.609 kB / 0.9088 GB, free: 2.426 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002037/2.575, allocations: 204.2 kB / 0.909 GB, free: 2.262 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/2.575, allocations: 0 / 0.909 GB, free: 2.262 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003898/2.579, allocations: 1.606 MB / 0.9106 GB, free: 0.7695 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 (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.007663/2.586, allocations: 3.165 MB / 0.9137 GB, free: 13.98 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0004409/2.587, allocations: 131.2 kB / 0.9138 GB, free: 13.89 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/2.587, allocations: 0 / 0.9138 GB, free: 13.89 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001453/2.587, allocations: 47.41 kB / 0.9138 GB, free: 13.86 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004121/2.587, allocations: 72.56 kB / 0.9139 GB, free: 13.8 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004752/2.592, allocations: 3.185 MB / 0.917 GB, free: 10.76 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/2.592, allocations: 0.7635 MB / 0.9178 GB, free: 9.969 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001759/2.592, allocations: 47.66 kB / 0.9178 GB, free: 9.926 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/2.593, allocations: 102.3 kB / 0.9179 GB, free: 9.887 MB / 0.7637 GB Notification: Performance of SimCode: time 3.11e-07/2.593, allocations: 2.906 kB / 0.9179 GB, free: 9.887 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07771/2.67, allocations: 54.53 MB / 0.9712 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002167/2.671, allocations: 305.9 kB / 0.9715 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.302/6.973, allocations: 2.125 kB / 0.9715 GB, free: 3.203 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)