Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007835/0.0007838, allocations: 91.45 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00553/0.00553, allocations: 170 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.269/1.269, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04357/0.04357, allocations: 9.075 MB / 279.8 MB, free: 12.14 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004717/0.0004717, allocations: 12.56 kB / 339.8 MB, free: 25.53 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07333/0.07381, allocations: 49.2 MB / 389 MB, free: 8.297 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.01487/0.08872, allocations: 13.48 MB / 402.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02044/0.1092, allocations: 18.91 MB / 421.4 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.1094, allocations: 8 kB / 421.4 MB, free: 7.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002784/0.1097, allocations: 43.77 kB / 421.5 MB, free: 7.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001506/0.1099, allocations: 55.53 kB / 421.5 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0152/0.1251, allocations: 5.304 MB / 426.8 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002177/0.1253, allocations: 166.9 kB / 427 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.369e-05/0.1254, allocations: 17.11 kB / 427 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.1255, allocations: 55.78 kB / 427.1 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.318e-05/0.1256, allocations: 63.7 kB / 427.1 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.302e-05/0.1256, allocations: 4 kB / 427.1 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1696/0.2952, allocations: 10.7 MB / 437.8 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.584e-05/0.2953, allocations: 17.3 kB / 437.8 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.2955, allocations: 93.09 kB / 437.9 MB, free: 15.86 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01415/0.3096, allocations: 6.071 MB / 444 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3097, allocations: 0 / 444 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3097, allocations: 1.781 kB / 444 MB, free: 15.03 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.3097, allocations: 0 / 444 MB, free: 15.03 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.004848/0.3145, allocations: 1.324 MB / 445.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.3146, allocations: 16.11 kB / 445.3 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.214e-05/0.3146, allocations: 40.38 kB / 445.4 MB, free: 14.13 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.075e-05/0.3147, allocations: 17.53 kB / 445.4 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.143e-05/0.3148, allocations: 182.9 kB / 445.6 MB, free: 13.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.3148, allocations: 8.375 kB / 445.6 MB, free: 13.92 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.3148, allocations: 13.31 kB / 445.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008477/0.3157, allocations: 334.3 kB / 445.9 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.3157, allocations: 1.625 kB / 445.9 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.3157, allocations: 5.406 kB / 445.9 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.3157, allocations: 1.781 kB / 445.9 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009364/0.3167, allocations: 340.1 kB / 446.3 MB, free: 13.68 MB / 318.1 MB 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.0006752/0.3174, allocations: 1.049 MB / 447.3 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007896/0.3182, allocations: 311.9 kB / 447.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.3184, allocations: 99.36 kB / 447.7 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5895/0.908, allocations: 184.8 MB / 0.6177 GB, free: 141.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.449e-05/0.908, allocations: 33.94 kB / 0.6178 GB, free: 141.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=12): time 2.134e-06/0.908, allocations: 0 / 0.6178 GB, free: 141.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=12): time 0.001928/0.91, allocations: 0.5267 MB / 0.6183 GB, free: 141.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.91, allocations: 103.5 kB / 0.6184 GB, free: 141.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001297/0.9102, allocations: 157.5 kB / 0.6185 GB, free: 141 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.9102, allocations: 33.2 kB / 0.6186 GB, free: 141 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.715e-05/0.9102, allocations: 109.2 kB / 0.6187 GB, free: 140.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.276e-05/0.9103, allocations: 40.69 kB / 0.6187 GB, free: 140.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-05/0.9103, allocations: 20.16 kB / 0.6187 GB, free: 140.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.091e-05/0.9104, allocations: 322.3 kB / 0.619 GB, free: 140.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.9106, allocations: 75.25 kB / 0.6191 GB, free: 140.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002005/0.9108, allocations: 131 kB / 0.6192 GB, free: 140.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003909/0.9112, allocations: 200.3 kB / 0.6194 GB, free: 140.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.9112, allocations: 0 / 0.6194 GB, free: 140.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000494/0.9117, allocations: 239.9 kB / 0.6197 GB, free: 140 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.9117, allocations: 8 kB / 0.6197 GB, free: 140 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.9117, allocations: 0 / 0.6197 GB, free: 140 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.9118, allocations: 4 kB / 0.6197 GB, free: 140 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002139/0.912, allocations: 47.97 kB / 0.6197 GB, free: 139.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.912, allocations: 6.609 kB / 0.6197 GB, free: 139.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.9122, allocations: 39.48 kB / 0.6198 GB, free: 139.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.9122, allocations: 10.81 kB / 0.6198 GB, free: 139.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (state_ps.phase,state.phase,state_ph.phase,state_dT.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.709e-05/0.9123, allocations: 126.4 kB / 0.6199 GB, free: 139.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.931e-05/0.9123, allocations: 11.91 kB / 0.6199 GB, free: 139.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009135/0.9133, allocations: 1.146 MB / 0.621 GB, free: 139 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.717e-05/0.9133, allocations: 12.56 kB / 0.621 GB, free: 139 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.9133, allocations: 4 kB / 0.621 GB, free: 139 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.9133, allocations: 11.92 kB / 0.621 GB, free: 139 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005/0.9138, allocations: 0.5816 MB / 0.6216 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.9138, allocations: 0 / 0.6216 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.914, allocations: 37.94 kB / 0.6217 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.914, allocations: 4 kB / 0.6217 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/0.914, allocations: 10.11 kB / 0.6217 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.914, allocations: 6.438 kB / 0.6217 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.914, allocations: 4 kB / 0.6217 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007508/0.9148, allocations: 0.8756 MB / 0.6225 GB, free: 137.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.802e-05/0.9149, allocations: 131.4 kB / 0.6227 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.415e-05/0.9149, allocations: 4 kB / 0.6227 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.9151, allocations: 31.78 kB / 0.6227 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.236e-05/0.9152, allocations: 21.28 kB / 0.6227 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-06/0.9152, allocations: 4 kB / 0.6227 GB, free: 137.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.025e-05/0.9153, allocations: 106.1 kB / 0.6228 GB, free: 137.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.9153, allocations: 0 / 0.6228 GB, free: 137.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005052/0.9203, allocations: 1.434 MB / 0.6242 GB, free: 136.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01051/0.9309, allocations: 2.943 MB / 0.6271 GB, free: 133.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006918/0.9316, allocations: 329.5 kB / 0.6274 GB, free: 133.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.9316, allocations: 0 / 0.6274 GB, free: 133.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003739/0.932, allocations: 293.2 kB / 0.6277 GB, free: 133.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006563/0.9327, allocations: 48.89 kB / 0.6277 GB, free: 133.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003729/0.9364, allocations: 1.439 MB / 0.6291 GB, free: 132 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001769/0.9366, allocations: 0.7923 MB / 0.6299 GB, free: 131.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001813/0.9368, allocations: 113.6 kB / 0.63 GB, free: 131.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.9369, allocations: 86.59 kB / 0.6301 GB, free: 131 MB / 462.1 MB Notification: Performance of SimCode: time 8.42e-07/0.9369, allocations: 0 / 0.6301 GB, free: 131 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0695/1.006, allocations: 54.68 MB / 0.6835 GB, free: 76.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001856/1.007, allocations: 224.8 kB / 0.6837 GB, free: 76.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.154/6.16, allocations: 10.8 kB / 0.6837 GB, free: 76.23 MB / 462.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe 2>&1)