Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.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: translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009784/0.0009785, allocations: 97.39 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001287, allocations: 184.3 kB / 16.92 MB, free: 6.703 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.776/1.776, allocations: 205.4 MB / 223.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04583/0.04583, allocations: 9.071 MB / 280.5 MB, free: 12.15 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.0005146/0.0005146, allocations: 12.22 kB / 340.4 MB, free: 25.65 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.117, allocations: 49.2 MB / 389.6 MB, free: 8.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.4472/0.5642, allocations: 142.3 MB / 0.5194 GB, free: 9.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.451/1.015, allocations: 98.11 MB / 0.6152 GB, free: 1.844 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007633/1.016, allocations: 9.094 kB / 0.6152 GB, free: 1.844 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003423/1.019, allocations: 1.169 MB / 0.6163 GB, free: 1.84 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004319/1.024, allocations: 1.475 MB / 0.6178 GB, free: 1.828 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.08596/1.11, allocations: 25.15 MB / 0.6423 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002946/1.113, allocations: 1.823 MB / 0.6441 GB, free: 176 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002759/1.113, allocations: 100 kB / 0.6442 GB, free: 156 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01899/1.132, allocations: 9.398 MB / 0.6534 GB, free: 13.04 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006175/1.133, allocations: 385.9 kB / 0.6538 GB, free: 12.96 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.881e-05/1.133, allocations: 18.84 kB / 0.6538 GB, free: 12.96 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07715/1.21, allocations: 31.48 MB / 0.6845 GB, free: 10.77 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003878/1.21, allocations: 100.6 kB / 0.6846 GB, free: 10.72 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009042/1.211, allocations: 309.3 kB / 0.6849 GB, free: 10.54 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02335/1.235, allocations: 8.435 MB / 0.6931 GB, free: 3.84 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/1.235, allocations: 0 / 0.6931 GB, free: 3.84 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.986e-06/1.235, allocations: 0 / 0.6931 GB, free: 3.84 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/1.235, allocations: 0.875 kB / 0.6931 GB, free: 3.84 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.008431/1.243, allocations: 2.486 MB / 0.6956 GB, free: 1.402 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/1.243, allocations: 8.031 kB / 0.6956 GB, free: 1.395 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005964/1.244, allocations: 96.86 kB / 0.6957 GB, free: 1.301 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004603/1.244, allocations: 340 kB / 0.696 GB, free: 0.9805 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.149e-05/1.244, allocations: 25.97 kB / 0.696 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.594e-05/1.244, allocations: 35.69 kB / 0.6961 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/1.246, allocations: 0.6114 MB / 0.6967 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/1.246, allocations: 4 kB / 0.6967 GB, free: 0.5 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.367e-05/1.246, allocations: 18 kB / 0.6967 GB, free: 0.4961 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.767e-05/1.246, allocations: 11.12 kB / 0.6967 GB, free: 500 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001346/1.247, allocations: 0.5745 MB / 0.6972 GB, free: 84 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00265/1.25, allocations: 2.512 MB / 0.6997 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/1.251, allocations: 0.5133 MB / 0.7002 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005456/1.252, allocations: 352.5 kB / 0.7005 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5505/1.802, allocations: 135.8 MB / 0.8332 GB, free: 263.4 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.495e-05/1.802, allocations: 36.12 kB / 0.8332 GB, free: 263.4 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 3.607e-06/1.802, allocations: 0 / 0.8332 GB, free: 263.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.007145/1.809, allocations: 2.413 MB / 0.8356 GB, free: 262.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/1.809, allocations: 55.38 kB / 0.8356 GB, free: 262.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003594/1.81, allocations: 257.4 kB / 0.8359 GB, free: 262.3 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.778e-05/1.81, allocations: 33.7 kB / 0.8359 GB, free: 262.2 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/1.81, allocations: 191 kB / 0.8361 GB, free: 262.1 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002419/1.81, allocations: 263.9 kB / 0.8363 GB, free: 261.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/1.81, allocations: 64.95 kB / 0.8364 GB, free: 261.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001578/1.811, allocations: 346.5 kB / 0.8367 GB, free: 261.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005775/1.811, allocations: 289.2 kB / 0.837 GB, free: 261.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000598/1.812, allocations: 415.3 kB / 0.8374 GB, free: 261 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/1.813, allocations: 0.7386 MB / 0.8381 GB, free: 260.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/1.813, allocations: 0 / 0.8381 GB, free: 260.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001645/1.815, allocations: 0.8221 MB / 0.8389 GB, free: 260.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/1.815, allocations: 7.188 kB / 0.8389 GB, free: 260.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/1.815, allocations: 3.875 kB / 0.8389 GB, free: 260.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002923/1.815, allocations: 64.33 kB / 0.839 GB, free: 260.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006142/1.816, allocations: 139.2 kB / 0.8391 GB, free: 260.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09454/1.91, allocations: 24.5 MB / 0.863 GB, free: 240.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006375/1.911, allocations: 59.86 kB / 0.8631 GB, free: 240.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.331e-05/1.911, allocations: 24 kB / 0.8631 GB, free: 240.3 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004087/1.911, allocations: 182.4 kB / 0.8633 GB, free: 240.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/1.912, allocations: 39.53 kB / 0.8633 GB, free: 240.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002088/1.914, allocations: 1.61 MB / 0.8649 GB, free: 238.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.647e-05/1.914, allocations: 11.66 kB / 0.8649 GB, free: 238.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/1.914, allocations: 4.688 kB / 0.8649 GB, free: 238.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001357/1.915, allocations: 1.211 MB / 0.8661 GB, free: 237.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/1.917, allocations: 1.658 MB / 0.8677 GB, free: 235.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/1.917, allocations: 2.406 kB / 0.8677 GB, free: 235.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003185/1.918, allocations: 94.53 kB / 0.8678 GB, free: 235.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003361/1.918, allocations: 107 kB / 0.8679 GB, free: 235.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/1.918, allocations: 15.98 kB / 0.8679 GB, free: 235.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/1.919, allocations: 1.908 MB / 0.8698 GB, free: 233.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/1.919, allocations: 0 / 0.8698 GB, free: 233.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/1.921, allocations: 1.288 MB / 0.8711 GB, free: 231.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001988/1.921, allocations: 140.5 kB / 0.8712 GB, free: 231.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.219e-05/1.921, allocations: 11.94 kB / 0.8712 GB, free: 231.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004027/1.922, allocations: 47.94 kB / 0.8712 GB, free: 231.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/1.922, allocations: 39.94 kB / 0.8713 GB, free: 231.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.757e-05/1.922, allocations: 11.98 kB / 0.8713 GB, free: 231.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002511/1.922, allocations: 247 kB / 0.8715 GB, free: 231.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.922, allocations: 0 / 0.8715 GB, free: 231.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01045/1.933, allocations: 3.184 MB / 0.8746 GB, free: 228.5 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 9 ($cse8.phase,$cse9.phase,volume.medium.state.phase,volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02026/1.953, allocations: 4.153 MB / 0.8787 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002354/1.955, allocations: 1.011 MB / 0.8797 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/1.955, allocations: 0 / 0.8797 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00088/1.956, allocations: 0.4952 MB / 0.8802 GB, free: 223.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002424/1.959, allocations: 383.8 kB / 0.8805 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/1.961, allocations: 1.476 MB / 0.882 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/1.961, allocations: 0.8486 MB / 0.8828 GB, free: 220.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/1.961, allocations: 45.84 kB / 0.8828 GB, free: 220.5 MB / 0.5762 GB Notification: Performance of SimCode: time 7.41e-07/1.961, allocations: 0 / 0.8828 GB, free: 220.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.1271/2.089, allocations: 80.03 MB / 0.961 GB, free: 140.3 MB / 0.5762 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.makefile make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppHelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_phCalcHelperMain.o OMCppHelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_phCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppHelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_phCalcHelperMain.o] Error 1