Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.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.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend",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.9583/0.9583, allocations: 150.9 MB / 166 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.0003491, allocations: 19.97 kB / 204.1 MB, free: 9.605 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2471, allocations: 31.33 MB / 235.4 MB, free: 5.438 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.SimpleExamples.TestBend): time 2.068/2.315, allocations: 293.8 MB / 0.5169 GB, free: 13.49 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.8145/3.129, allocations: 191.5 MB / 0.7039 GB, free: 3.746 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000609/3.13, allocations: 8.906 kB / 0.7039 GB, free: 3.746 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/Bend.mo:57:3-58: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/Bend.mo:59:3-60:67: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.00059/3.131, allocations: 192.2 kB / 0.7041 GB, free: 3.746 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006489/3.131, allocations: 257.7 kB / 0.7043 GB, free: 3.746 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03972/3.171, allocations: 9.474 MB / 0.7136 GB, free: 3.629 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001207/3.172, allocations: 0.5094 MB / 0.7141 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003768/3.173, allocations: 256.8 kB / 0.7143 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003493/3.173, allocations: 228.1 kB / 0.7145 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003939/3.174, allocations: 352.1 kB / 0.7149 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.594e-05/3.174, allocations: 25.88 kB / 0.7149 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04658/3.22, allocations: 21.09 MB / 0.7355 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004284/3.221, allocations: 196.4 kB / 0.7357 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005258/3.221, allocations: 301 kB / 0.736 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0367/3.258, allocations: 10.9 MB / 0.7466 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/3.258, allocations: 0 / 0.7466 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.475e-06/3.258, allocations: 0 / 0.7466 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.199e-05/3.258, allocations: 0 / 0.7466 GB, free: 15.55 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.008609/3.267, allocations: 2.228 MB / 0.7488 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.534e-05/3.267, allocations: 14.52 kB / 0.7488 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.877e-05/3.267, allocations: 77.59 kB / 0.7489 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001607/3.267, allocations: 80.53 kB / 0.749 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006611/3.268, allocations: 0.543 MB / 0.7495 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.306e-05/3.268, allocations: 33.81 kB / 0.7495 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.732e-05/3.268, allocations: 34.22 kB / 0.7496 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006826/3.268, allocations: 498.3 kB / 0.75 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/3.268, allocations: 2.906 kB / 0.75 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.487e-05/3.268, allocations: 15.12 kB / 0.75 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/3.268, allocations: 11.61 kB / 0.7501 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005614/3.269, allocations: 420.6 kB / 0.7505 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00919/3.278, allocations: 6.692 MB / 0.757 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005446/3.279, allocations: 128.1 kB / 0.7571 GB, free: 8.008 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.806e-05/3.279, allocations: 43.06 kB / 0.7572 GB, free: 7.996 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.288/3.567, allocations: 154.7 MB / 0.9083 GB, free: 3.969 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/3.567, allocations: 36.56 kB / 0.9083 GB, free: 3.926 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 2.474e-06/3.567, allocations: 0 / 0.9083 GB, free: 3.926 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002201/3.569, allocations: 474.8 kB / 0.9087 GB, free: 3.484 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.831e-05/3.569, allocations: 102.8 kB / 0.9088 GB, free: 3.359 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00136/3.571, allocations: 1.062 MB / 0.9099 GB, free: 2.555 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/3.571, allocations: 25.7 kB / 0.9099 GB, free: 2.523 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000331/3.571, allocations: 393.7 kB / 0.9103 GB, free: 2.27 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.296e-05/3.571, allocations: 46.45 kB / 0.9103 GB, free: 2.23 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/3.571, allocations: 75.14 kB / 0.9104 GB, free: 2.172 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001745/3.571, allocations: 382.7 kB / 0.9108 GB, free: 1.816 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/3.572, allocations: 127 kB / 0.9109 GB, free: 1.727 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002845/3.572, allocations: 261.7 kB / 0.9111 GB, free: 1.457 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003754/3.572, allocations: 325.2 kB / 0.9114 GB, free: 1.172 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/3.572, allocations: 0 / 0.9114 GB, free: 1.172 MB / 0.7481 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001336/3.574, allocations: 0.5631 MB / 0.912 GB, free: 0.7305 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/3.574, allocations: 4 kB / 0.912 GB, free: 0.7266 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/3.574, allocations: 7 kB / 0.912 GB, free: 0.7227 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00155/3.575, allocations: 198.7 kB / 0.9122 GB, free: 0.543 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/3.575, allocations: 42.89 kB / 0.9122 GB, free: 0.5039 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000608/3.576, allocations: 0.6279 MB / 0.9128 GB, free: 15.89 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/3.576, allocations: 43.47 kB / 0.9129 GB, free: 15.86 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/3.576, allocations: 22.16 kB / 0.9129 GB, free: 15.84 MB / 0.7637 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 (SourceP1.C.ftype,SinkP1.fluid,Bend.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Bend.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002851/3.577, allocations: 262.1 kB / 0.9132 GB, free: 15.63 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.889e-05/3.577, allocations: 71.12 kB / 0.9132 GB, free: 15.56 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007047/3.577, allocations: 261.5 kB / 0.9135 GB, free: 15.35 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/3.577, allocations: 9.094 kB / 0.9135 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/3.577, allocations: 3.938 kB / 0.9135 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/3.577, allocations: 4 kB / 0.9135 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/3.579, allocations: 0.8382 MB / 0.9143 GB, free: 14.61 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/3.579, allocations: 4.031 kB / 0.9143 GB, free: 14.6 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.165e-05/3.579, allocations: 7.984 kB / 0.9143 GB, free: 14.59 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00121/3.58, allocations: 169.5 kB / 0.9145 GB, free: 14.44 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/3.58, allocations: 11.94 kB / 0.9145 GB, free: 14.43 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005189/3.581, allocations: 0.6297 MB / 0.9151 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/3.581, allocations: 1.203 kB / 0.9151 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/3.582, allocations: 408.7 kB / 0.9155 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001663/3.582, allocations: 161.4 kB / 0.9157 GB, free: 13.28 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.184e-05/3.583, allocations: 11.23 kB / 0.9157 GB, free: 13.27 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001805/3.583, allocations: 8 kB / 0.9157 GB, free: 13.27 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/3.583, allocations: 7.984 kB / 0.9157 GB, free: 13.26 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/3.583, allocations: 6.5 kB / 0.9157 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0008405/3.584, allocations: 0.7804 MB / 0.9164 GB, free: 12.68 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/3.584, allocations: 0 / 0.9164 GB, free: 12.68 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.005396/3.589, allocations: 1.643 MB / 0.918 GB, free: 11.16 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 2 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009892/3.599, allocations: 3.367 MB / 0.9213 GB, free: 8.195 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0005803/3.6, allocations: 239.2 kB / 0.9216 GB, free: 8.027 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/3.6, allocations: 0 / 0.9216 GB, free: 8.027 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001708/3.6, allocations: 63.06 kB / 0.9216 GB, free: 7.98 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006012/3.6, allocations: 88.25 kB / 0.9217 GB, free: 7.926 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/3.611, allocations: 6.606 MB / 0.9282 GB, free: 2.105 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005787/3.611, allocations: 0.9305 MB / 0.9291 GB, free: 1.184 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002255/3.612, allocations: 68.25 kB / 0.9291 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002598/3.612, allocations: 211.6 kB / 0.9293 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of SimCode: time 7.71e-07/3.612, allocations: 0 / 0.9293 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3601/3.972, allocations: 60.44 MB / 0.9884 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/3.972, allocations: 284 kB / 0.9886 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.602/8.574, allocations: 3.188 kB / 0.9886 GB, free: 448.5 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe 2>&1)