Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestVolumeATh.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.Volume.TestVolumeATh,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_Volume_TestVolumeATh",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestVolumeATh,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_Volume_TestVolumeATh",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.8348/0.8348, allocations: 150.8 MB / 166.1 MB, free: 15.6 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.286e-05/1.288e-05, allocations: 0 / 204.9 MB, free: 10.09 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1471, allocations: 31.99 MB / 236.9 MB, free: 5.371 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestVolumeATh): time 1.567/1.714, allocations: 297 MB / 0.5214 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4657/2.18, allocations: 195 MB / 0.7118 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004804/2.181, allocations: 20.94 kB / 0.7118 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002775/2.181, allocations: 129.9 kB / 0.712 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006574/2.181, allocations: 357 kB / 0.7123 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02818/2.21, allocations: 11.14 MB / 0.7232 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001625/2.211, allocations: 1.318 MB / 0.7245 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006374/2.212, allocations: 0.586 MB / 0.725 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004601/2.212, allocations: 453.7 kB / 0.7255 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004359/2.213, allocations: 0.5139 MB / 0.726 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.923e-05/2.213, allocations: 51.53 kB / 0.726 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03005/2.243, allocations: 19.47 MB / 0.745 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003844/2.243, allocations: 223.7 kB / 0.7453 GB, free: 2.059 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006681/2.244, allocations: 0.5593 MB / 0.7458 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02269/2.267, allocations: 11.05 MB / 0.7566 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/2.267, allocations: 2.906 kB / 0.7566 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.204e-06/2.267, allocations: 0 / 0.7566 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.418e-05/2.267, allocations: 2.438 kB / 0.7566 GB, free: 14.02 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: 286 * Number of variables: 286 Notification: Performance of Generate backend data structure: time 0.005757/2.273, allocations: 2.438 MB / 0.759 GB, free: 12.42 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/2.273, allocations: 15.39 kB / 0.759 GB, free: 12.42 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001552/2.273, allocations: 166.2 kB / 0.7592 GB, free: 12.35 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001746/2.273, allocations: 145.8 kB / 0.7593 GB, free: 12.28 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007613/2.274, allocations: 0.6272 MB / 0.7599 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.437e-05/2.274, allocations: 81 kB / 0.76 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001729/2.274, allocations: 116.5 kB / 0.7601 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/2.276, allocations: 1.224 MB / 0.7613 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/2.276, allocations: 9.094 kB / 0.7613 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.63e-05/2.276, allocations: 44.16 kB / 0.7613 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/2.276, allocations: 29.38 kB / 0.7614 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/2.277, allocations: 0.9388 MB / 0.7623 GB, free: 11.24 MB / 0.5919 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.1537/2.431, allocations: 70.25 MB / 0.8309 GB, free: 5.953 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007938/2.432, allocations: 465 kB / 0.8313 GB, free: 5.605 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003126/2.432, allocations: 167.3 kB / 0.8315 GB, free: 5.492 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8091/3.241, allocations: 317.1 MB / 1.141 GB, free: 310.2 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/3.241, allocations: 37.5 kB / 1.141 GB, free: 310.2 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=35): time 1.964e-06/3.241, allocations: 0 / 1.141 GB, free: 310.2 MB / 0.8106 GB Notification: Performance of matching and sorting (n=35): time 0.002853/3.244, allocations: 1.019 MB / 1.142 GB, free: 309.3 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.974e-05/3.244, allocations: 55.41 kB / 1.142 GB, free: 309.3 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007761/3.245, allocations: 0.8119 MB / 1.143 GB, free: 308.7 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/3.245, allocations: 34.52 kB / 1.143 GB, free: 308.6 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002484/3.245, allocations: 0.6029 MB / 1.144 GB, free: 308.2 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.245e-05/3.245, allocations: 131 kB / 1.144 GB, free: 308.1 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.081e-05/3.245, allocations: 95.34 kB / 1.144 GB, free: 308 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.805e-05/3.245, allocations: 381.8 kB / 1.144 GB, free: 307.7 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003529/3.246, allocations: 200.2 kB / 1.144 GB, free: 307.5 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004748/3.246, allocations: 0.6222 MB / 1.145 GB, free: 306.8 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008502/3.247, allocations: 0.874 MB / 1.146 GB, free: 305.9 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.922e-06/3.247, allocations: 4 kB / 1.146 GB, free: 305.9 MB / 0.8106 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001633/3.249, allocations: 1.045 MB / 1.147 GB, free: 305.1 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/3.249, allocations: 12.56 kB / 1.147 GB, free: 305.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/3.249, allocations: 12 kB / 1.147 GB, free: 305.1 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002232/3.251, allocations: 485.5 kB / 1.147 GB, free: 304.6 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004027/3.252, allocations: 163.4 kB / 1.148 GB, free: 304.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008967/3.252, allocations: 1.333 MB / 1.149 GB, free: 303.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005437/3.253, allocations: 134 kB / 1.149 GB, free: 303.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.872e-05/3.253, allocations: 51.41 kB / 1.149 GB, free: 303 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 21 (sourceQ.C.ftype,sourceP2.C.ftype,volumeATh.Cs1.ftype,volumeATh.Cs2.ftype,volumeATh.fluids[1],controlValve1.fluid,controlValve2.fluid,lumpedStraightPipe1.fluid,sink.fluid,sourceP2.fluid1,sourceQ.fluid1,volumeATh.fluid1,volumeATh.Ce1.diff_on_2,controlValve1.C2.diff_on_1,volumeATh.Cs1.diff_on_2,volumeATh.Cs1.diff_on_1,controlValve2.C2.diff_on_1,volumeATh.Ce2.diff_on_2,sourceP2.C.diff_on_2,volumeATh.Cs2.diff_on_1,volumeATh.Cs2.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (3,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002982/3.253, allocations: 273.2 kB / 1.149 GB, free: 302.8 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.506e-05/3.253, allocations: 82.97 kB / 1.149 GB, free: 302.7 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001228/3.255, allocations: 0.6094 MB / 1.15 GB, free: 302.3 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.8e-06/3.255, allocations: 4.75 kB / 1.15 GB, free: 302.3 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/3.255, allocations: 0 / 1.15 GB, free: 302.3 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/3.255, allocations: 7.984 kB / 1.15 GB, free: 302.3 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002012/3.257, allocations: 1.436 MB / 1.151 GB, free: 301.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/3.257, allocations: 3.938 kB / 1.151 GB, free: 301.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/3.257, allocations: 59.66 kB / 1.151 GB, free: 301 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001377/3.258, allocations: 306.3 kB / 1.152 GB, free: 300.8 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/3.258, allocations: 7.625 kB / 1.152 GB, free: 300.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006738/3.259, allocations: 1.26 MB / 1.153 GB, free: 299.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/3.259, allocations: 0 / 1.153 GB, free: 299.5 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/3.261, allocations: 0.8839 MB / 1.154 GB, free: 298.8 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/3.261, allocations: 205.9 kB / 1.154 GB, free: 298.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.546e-05/3.261, allocations: 7.938 kB / 1.154 GB, free: 298.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002738/3.261, allocations: 15.42 kB / 1.154 GB, free: 298.6 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.394e-05/3.261, allocations: 23.66 kB / 1.154 GB, free: 298.6 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.962e-05/3.261, allocations: 23.48 kB / 1.154 GB, free: 298.6 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004818/3.262, allocations: 0.5102 MB / 1.155 GB, free: 298.2 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.61e-07/3.262, allocations: 0 / 1.155 GB, free: 298.2 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003972/3.266, allocations: 1.8 MB / 1.156 GB, free: 296.7 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (volumeATh.h) * 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 (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007708/3.273, allocations: 3.821 MB / 1.16 GB, free: 293.5 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001252/3.275, allocations: 0.5862 MB / 1.161 GB, free: 293 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/3.275, allocations: 0 / 1.161 GB, free: 293 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004855/3.275, allocations: 226.7 kB / 1.161 GB, free: 292.8 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000902/3.276, allocations: 180.4 kB / 1.161 GB, free: 292.7 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009792/3.286, allocations: 8.208 MB / 1.169 GB, free: 284.9 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/3.286, allocations: 1.019 MB / 1.17 GB, free: 283.9 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000522/3.287, allocations: 140 kB / 1.17 GB, free: 283.8 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003509/3.287, allocations: 371.3 kB / 1.171 GB, free: 283.4 MB / 0.8106 GB Notification: Performance of SimCode: time 7.01e-07/3.287, allocations: 0 / 1.171 GB, free: 283.4 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1019/3.389, allocations: 63.53 MB / 1.233 GB, free: 220.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001612/3.389, allocations: 300.8 kB / 1.233 GB, free: 220.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.644/8.033, allocations: 1.625 kB / 1.233 GB, free: 220.5 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestVolumeATh.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestVolumeATh.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestVolumeATh.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestVolumeATh.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_Volume_TestVolumeATh_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_Volume_TestVolumeATh.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestVolumeATh.pipe 2>&1)