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.007773/0.007773, allocations: 100.2 kB / 15.87 MB, free: 5.867 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.001779/0.001779, allocations: 191 kB / 16.79 MB, free: 5.809 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.537/1.537, allocations: 205.1 MB / 222.6 MB, free: 4.684 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04217/0.04217, allocations: 9.077 MB / 279.1 MB, free: 12.4 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.001281/0.001281, allocations: 63.91 kB / 338 MB, free: 25.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09587/0.09717, allocations: 48.16 MB / 386.2 MB, free: 9.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.3852/0.4824, allocations: 144.1 MB / 0.5179 GB, free: 6.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.4441/0.9265, allocations: 99.23 MB / 0.6148 GB, free: 1.109 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001193/0.9278, allocations: 7.594 kB / 0.6148 GB, free: 1.109 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005485/0.9334, allocations: 1.171 MB / 0.6159 GB, free: 1.105 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004981/0.9384, allocations: 1.467 MB / 0.6174 GB, free: 1.094 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.09027/1.029, allocations: 25.1 MB / 0.6419 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002606/1.031, allocations: 1.824 MB / 0.6437 GB, free: 15.52 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002627/1.032, allocations: 98.23 kB / 0.6437 GB, free: 15.49 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01953/1.051, allocations: 9.37 MB / 0.6529 GB, free: 12.31 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006735/1.052, allocations: 389.8 kB / 0.6533 GB, free: 12.18 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.314e-05/1.052, allocations: 22.22 kB / 0.6533 GB, free: 12.18 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06979/1.122, allocations: 31.48 MB / 0.684 GB, free: 6.262 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000306/1.122, allocations: 100.3 kB / 0.6841 GB, free: 6.199 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000749/1.123, allocations: 281.5 kB / 0.6844 GB, free: 5.984 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02423/1.147, allocations: 8.486 MB / 0.6927 GB, free: 15.42 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/1.147, allocations: 0 / 0.6927 GB, free: 15.42 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.803e-06/1.147, allocations: 0 / 0.6927 GB, free: 15.42 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/1.147, allocations: 0 / 0.6927 GB, free: 15.42 MB / 494.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.008453/1.156, allocations: 2.576 MB / 0.6952 GB, free: 12.83 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/1.156, allocations: 12.03 kB / 0.6952 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006306/1.156, allocations: 87.33 kB / 0.6953 GB, free: 12.73 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004685/1.157, allocations: 331.4 kB / 0.6956 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.325e-05/1.157, allocations: 32.66 kB / 0.6956 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.679e-05/1.157, allocations: 28 kB / 0.6957 GB, free: 12.32 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/1.158, allocations: 0.6055 MB / 0.6963 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/1.158, allocations: 0 / 0.6963 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-05/1.158, allocations: 20 kB / 0.6963 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.399e-05/1.158, allocations: 20.55 kB / 0.6963 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/1.16, allocations: 0.5486 MB / 0.6968 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002836/1.163, allocations: 2.507 MB / 0.6993 GB, free: 8.41 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/1.164, allocations: 0.5003 MB / 0.6998 GB, free: 7.902 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005598/1.164, allocations: 338.3 kB / 0.7001 GB, free: 7.566 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4855/1.65, allocations: 139 MB / 0.8358 GB, free: 256.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.591e-05/1.65, allocations: 37.84 kB / 0.8358 GB, free: 256.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 4.799e-06/1.65, allocations: 0 / 0.8358 GB, free: 256.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.005538/1.655, allocations: 2.337 MB / 0.8381 GB, free: 255.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.767e-05/1.655, allocations: 55.12 kB / 0.8382 GB, free: 255.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002336/1.656, allocations: 259.8 kB / 0.8384 GB, free: 255.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/1.656, allocations: 42.03 kB / 0.8385 GB, free: 255.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.5e-05/1.656, allocations: 186.8 kB / 0.8386 GB, free: 254.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/1.656, allocations: 265.8 kB / 0.8389 GB, free: 254.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/1.656, allocations: 97.8 kB / 0.839 GB, free: 254.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.888e-05/1.656, allocations: 361.7 kB / 0.8393 GB, free: 254.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004409/1.657, allocations: 270.5 kB / 0.8396 GB, free: 254.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004749/1.657, allocations: 403.7 kB / 0.84 GB, free: 253.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009423/1.658, allocations: 0.7038 MB / 0.8407 GB, free: 253.4 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.658, allocations: 0 / 0.8407 GB, free: 253.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001258/1.659, allocations: 0.8024 MB / 0.8414 GB, free: 252.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/1.659, allocations: 7.938 kB / 0.8415 GB, free: 252.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/1.659, allocations: 3.969 kB / 0.8415 GB, free: 252.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002351/1.66, allocations: 61.42 kB / 0.8415 GB, free: 252.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005745/1.66, allocations: 129.2 kB / 0.8416 GB, free: 252.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08642/1.747, allocations: 24.55 MB / 0.8656 GB, free: 230.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005148/1.747, allocations: 43.97 kB / 0.8657 GB, free: 230.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/1.747, allocations: 16 kB / 0.8657 GB, free: 230.2 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.0002866/1.747, allocations: 196.3 kB / 0.8659 GB, free: 230 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.645e-05/1.748, allocations: 43.44 kB / 0.8659 GB, free: 229.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/1.749, allocations: 1.586 MB / 0.8675 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-05/1.749, allocations: 11.98 kB / 0.8675 GB, free: 228.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/1.749, allocations: 0 / 0.8675 GB, free: 228.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001145/1.75, allocations: 1.179 MB / 0.8686 GB, free: 227 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0018/1.752, allocations: 1.637 MB / 0.8702 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/1.752, allocations: 0 / 0.8702 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003063/1.753, allocations: 79.88 kB / 0.8703 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002644/1.753, allocations: 111.9 kB / 0.8704 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/1.753, allocations: 16.81 kB / 0.8704 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008866/1.754, allocations: 1.89 MB / 0.8723 GB, free: 223 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/1.754, allocations: 0 / 0.8723 GB, free: 223 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001594/1.755, allocations: 1.253 MB / 0.8735 GB, free: 221.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.284e-05/1.755, allocations: 120.5 kB / 0.8736 GB, free: 221.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.806e-05/1.755, allocations: 8 kB / 0.8736 GB, free: 221.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003377/1.756, allocations: 39.94 kB / 0.8736 GB, free: 221.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.246e-05/1.756, allocations: 43.94 kB / 0.8737 GB, free: 221.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-05/1.756, allocations: 11.98 kB / 0.8737 GB, free: 221.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002153/1.756, allocations: 251 kB / 0.8739 GB, free: 221.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.7e-07/1.756, allocations: 0 / 0.8739 GB, free: 221.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008948/1.765, allocations: 3.181 MB / 0.877 GB, free: 218.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.01482/1.78, allocations: 4.171 MB / 0.8811 GB, free: 214.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00185/1.782, allocations: 0.9733 MB / 0.8821 GB, free: 213.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/1.782, allocations: 4.188 kB / 0.8821 GB, free: 213.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000694/1.783, allocations: 0.4912 MB / 0.8825 GB, free: 213.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/1.784, allocations: 382.2 kB / 0.8829 GB, free: 212.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00155/1.786, allocations: 1.41 MB / 0.8843 GB, free: 211.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002357/1.786, allocations: 0.8486 MB / 0.8851 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.239e-05/1.786, allocations: 39.44 kB / 0.8852 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of SimCode: time 2.31e-07/1.786, allocations: 0 / 0.8852 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.09283/1.879, allocations: 80.07 MB / 0.9633 GB, free: 130.4 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