Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone_Shin2024_reference.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 112.3 kB / 19.71 MB, free: 432 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 215.5 kB / 23 MB, free: 2.957 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.027/1.027, allocations: 230.6 MB / 256.8 MB, free: 9.598 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo): time 0.8003/0.8003, allocations: 312.3 MB / 0.6108 GB, free: 97.17 MB / 410.7 MB " [Timeout remaining time 179] Using package Pharmacolibrary with version 26.11 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone_Shin2024_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone_Shin2024_reference") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone_Shin2024_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone_Shin2024_reference") [Timeout 660] "Notification: Pharmacolibrary requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002288/0.002288, allocations: 89.88 kB / 0.7699 GB, free: 19.64 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.122, allocations: 73.98 MB / 0.8421 GB, free: 9.789 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone_Shin2024_reference): time 0.002945/0.125, allocations: 2.287 MB / 0.8444 GB, free: 7.504 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.005907/0.1309, allocations: 6.533 MB / 0.8507 GB, free: 0.9688 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002096/0.1311, allocations: 0 / 0.8507 GB, free: 0.9688 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001436/0.1312, allocations: 28.22 kB / 0.8508 GB, free: 0.9414 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002343/0.1315, allocations: 84.86 kB / 0.8509 GB, free: 0.8594 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002205/0.1317, allocations: 47.94 kB / 0.8509 GB, free: 0.8125 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002641/0.1319, allocations: 255.5 kB / 0.8511 GB, free: 0.5625 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.1321, allocations: 40.56 kB / 0.8512 GB, free: 0.5234 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.1322, allocations: 96.27 kB / 0.8513 GB, free: 440 kB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001857/0.1324, allocations: 96.2 kB / 0.8514 GB, free: 344 kB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/0.1324, allocations: 20 kB / 0.8514 GB, free: 324 kB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.801e-05/0.1325, allocations: 16.59 kB / 0.8514 GB, free: 308 kB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 3.301e-05/0.1325, allocations: 35.84 kB / 0.8514 GB, free: 272 kB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 8.484e-05/0.1326, allocations: 96.09 kB / 0.8515 GB, free: 176 kB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002397/0.1328, allocations: 199.9 kB / 0.8517 GB, free: 15.97 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1328, allocations: 3.938 kB / 0.8517 GB, free: 15.97 MB / 490.8 MB Notification: Performance of FrontEnd: time 2.043e-06/0.1328, allocations: 0.625 kB / 0.8517 GB, free: 15.97 MB / 490.8 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.1328, allocations: 0 / 0.8517 GB, free: 15.97 MB / 490.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0007325/0.1336, allocations: 0.493 MB / 0.8522 GB, free: 15.44 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.1336, allocations: 12.02 kB / 0.8522 GB, free: 15.43 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.569e-05/0.1337, allocations: 33.36 kB / 0.8522 GB, free: 15.39 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002105/0.1339, allocations: 175.8 kB / 0.8524 GB, free: 15.2 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.1339, allocations: 12.59 kB / 0.8524 GB, free: 15.18 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.797e-05/0.1339, allocations: 20.52 kB / 0.8524 GB, free: 15.16 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002738/0.1342, allocations: 191.1 kB / 0.8526 GB, free: 14.96 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.1342, allocations: 7.938 kB / 0.8526 GB, free: 14.95 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.1342, allocations: 8.609 kB / 0.8526 GB, free: 14.95 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.1343, allocations: 4.656 kB / 0.8527 GB, free: 14.94 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.1345, allocations: 138.9 kB / 0.8528 GB, free: 14.8 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000618/0.1351, allocations: 482.7 kB / 0.8532 GB, free: 14.3 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003509/0.1354, allocations: 177.2 kB / 0.8534 GB, free: 14.11 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.1355, allocations: 99.14 kB / 0.8535 GB, free: 14 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.076e-05/0.1355, allocations: 0.5938 kB / 0.8535 GB, free: 14 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.1358, allocations: 224.1 kB / 0.8537 GB, free: 13.76 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 2.345e-06/0.1358, allocations: 0 / 0.8537 GB, free: 13.76 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.001/0.1368, allocations: 0.7052 MB / 0.8544 GB, free: 12.99 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.1369, allocations: 132.5 kB / 0.8545 GB, free: 12.83 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/0.137, allocations: 219.4 kB / 0.8547 GB, free: 12.61 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.137, allocations: 34.36 kB / 0.8548 GB, free: 12.57 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.493e-05/0.1371, allocations: 132.5 kB / 0.8549 GB, free: 12.44 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.34e-05/0.1372, allocations: 68.11 kB / 0.855 GB, free: 12.37 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.343e-05/0.1372, allocations: 61.64 kB / 0.855 GB, free: 12.3 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 8.709e-05/0.1373, allocations: 339.4 kB / 0.8554 GB, free: 11.96 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2564/0.3937, allocations: 142.9 kB / 0.8555 GB, free: 30.25 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.3939, allocations: 225.2 kB / 0.8557 GB, free: 30.09 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/0.3941, allocations: 279.2 kB / 0.856 GB, free: 29.93 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3941, allocations: 1.562 kB / 0.856 GB, free: 29.93 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003883/0.3945, allocations: 393.8 kB / 0.8563 GB, free: 29.77 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.407e-05/0.3945, allocations: 66.98 kB / 0.8564 GB, free: 29.71 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3946, allocations: 1.75 kB / 0.8564 GB, free: 29.71 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.3946, allocations: 3.188 kB / 0.8564 GB, free: 29.71 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.3947, allocations: 52.31 kB / 0.8565 GB, free: 29.71 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.3947, allocations: 3.844 kB / 0.8565 GB, free: 29.71 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.3948, allocations: 17.91 kB / 0.8565 GB, free: 29.71 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.3949, allocations: 10.06 kB / 0.8565 GB, free: 29.71 MB / 490.8 MB Warning: Assuming fixed start value for the following 1 variables: periodicDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (central.Cmin,$PRE.central.Cmin,central.Cmax,$PRE.central.Cmax,periodicDose.pulse.count,$PRE.periodicDose.pulse.count,periodicDose.pulse.T_start,$PRE.periodicDose.pulse.T_start,central.rising,$PRE.central.rising,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001649/0.395, allocations: 184.8 kB / 0.8567 GB, free: 29.55 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.452e-05/0.395, allocations: 21.83 kB / 0.8567 GB, free: 29.55 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.577e-05/0.3951, allocations: 25.36 kB / 0.8567 GB, free: 29.55 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.3951, allocations: 4 kB / 0.8567 GB, free: 29.55 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3951, allocations: 3.781 kB / 0.8567 GB, free: 29.55 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3951, allocations: 1.906 kB / 0.8567 GB, free: 29.55 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004995/0.3956, allocations: 0.5388 MB / 0.8573 GB, free: 29.25 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.3956, allocations: 0 / 0.8573 GB, free: 29.25 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.3957, allocations: 41.25 kB / 0.8573 GB, free: 29.25 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.214e-06/0.3957, allocations: 0.6875 kB / 0.8573 GB, free: 29.25 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.3957, allocations: 6.25 kB / 0.8573 GB, free: 29.25 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.3957, allocations: 4.594 kB / 0.8573 GB, free: 29.24 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3957, allocations: 0 / 0.8573 GB, free: 29.24 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004193/0.3961, allocations: 500 kB / 0.8578 GB, free: 29.02 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.961e-05/0.3962, allocations: 20.53 kB / 0.8578 GB, free: 29.02 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/0.3962, allocations: 7.469 kB / 0.8578 GB, free: 29.02 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.718e-05/0.3963, allocations: 16.16 kB / 0.8578 GB, free: 29.02 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.114e-05/0.3964, allocations: 20.81 kB / 0.8578 GB, free: 29.02 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.3964, allocations: 15.33 kB / 0.8579 GB, free: 29.02 MB / 490.8 MB Notification: Performance of sorting global known variables: time 9.172e-05/0.3965, allocations: 153.1 kB / 0.858 GB, free: 28.94 MB / 490.8 MB Notification: Performance of sort global known variables: time 5e-08/0.3965, allocations: 0.5 kB / 0.858 GB, free: 28.94 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0001964/0.3967, allocations: 58.19 kB / 0.8581 GB, free: 28.94 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass) * Number of discrete variables: 8 ($whenCondition1,$whenCondition2,$whenCondition3,central.Cmax,central.Cmin,central.rising,periodicDose.pulse.T_start,periodicDose.pulse.count) * Number of discrete states: 6 (periodicDose.pulse.count,central.Cmin,$whenCondition3,central.Cmax,$whenCondition2,central.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.0001051/0.3968, allocations: 120.9 kB / 0.8582 GB, free: 28.85 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0003305/0.3971, allocations: 376.4 kB / 0.8585 GB, free: 28.62 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3971, allocations: 2.844 kB / 0.8585 GB, free: 28.62 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.3972, allocations: 170.2 kB / 0.8587 GB, free: 28.52 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.3975, allocations: 69.8 kB / 0.8588 GB, free: 28.52 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008476/0.3984, allocations: 0.6962 MB / 0.8594 GB, free: 28.21 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.122e-05/0.3984, allocations: 130.2 kB / 0.8596 GB, free: 28.13 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.717e-05/0.3985, allocations: 23.88 kB / 0.8596 GB, free: 28.12 MB / 490.8 MB Notification: Performance of SimCode: time 6.21e-07/0.3985, allocations: 0.5938 kB / 0.8596 GB, free: 28.12 MB / 490.8 MB Notification: Performance of Templates: time 0.004055/0.4025, allocations: 2.938 MB / 0.8625 GB, free: 27.91 MB / 490.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone_Shin2024_reference.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone_Shin2024_reference.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone_Shin2024_reference.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone_Shin2024_reference.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone_Shin2024_reference.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone_Shin2024_reference > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone_Shin2024_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.2384432861581445]