Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone.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.001399/0.001399, allocations: 92.52 kB / 19.94 MB, free: 4.602 MB / 18.57 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.001544/0.001544, allocations: 165.9 kB / 23.21 MB, free: 1.332 MB / 18.57 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 0.9691/0.9691, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.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.7158/0.7158, allocations: 291.1 MB / 0.5382 GB, free: 51.83 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,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.604e-06/1.604e-06, allocations: 0 / 0.6973 GB, free: 10.41 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.627e-05/2.787e-05, allocations: 6.219 kB / 0.6974 GB, free: 10.4 MB / 410.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone): time 0.002068/0.002096, allocations: 2.304 MB / 0.6996 GB, free: 8.078 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.003864/0.00596, allocations: 6.545 MB / 0.706 GB, free: 1.523 MB / 410.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.006085, allocations: 0 / 0.706 GB, free: 1.523 MB / 410.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.006199, allocations: 27.72 kB / 0.706 GB, free: 1.496 MB / 410.8 MB Notification: Performance of NFTyping.typeBindings: time 0.000182/0.006381, allocations: 83.27 kB / 0.7061 GB, free: 1.414 MB / 410.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002018/0.006583, allocations: 55.81 kB / 0.7062 GB, free: 1.359 MB / 410.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001762/0.006759, allocations: 270.6 kB / 0.7064 GB, free: 1.094 MB / 410.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.006876, allocations: 28.58 kB / 0.7064 GB, free: 1.07 MB / 410.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001254/0.007001, allocations: 143.7 kB / 0.7066 GB, free: 0.9297 MB / 410.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.007155, allocations: 83.72 kB / 0.7067 GB, free: 0.8477 MB / 410.8 MB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/0.007181, allocations: 16 kB / 0.7067 GB, free: 0.832 MB / 410.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.171e-05/0.007203, allocations: 19.94 kB / 0.7067 GB, free: 0.8125 MB / 410.8 MB Notification: Performance of NFScalarize.scalarize: time 3.452e-05/0.007238, allocations: 47.77 kB / 0.7067 GB, free: 0.7656 MB / 410.8 MB Notification: Performance of NFVerifyModel.verify: time 6.917e-05/0.007307, allocations: 71.83 kB / 0.7068 GB, free: 0.6953 MB / 410.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002185/0.007525, allocations: 195.4 kB / 0.707 GB, free: 0.5039 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.00753, allocations: 0 / 0.707 GB, free: 0.5039 MB / 410.8 MB Notification: Performance of FrontEnd: time 1.904e-06/0.007531, allocations: 0 / 0.707 GB, free: 0.5039 MB / 410.8 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.007537, allocations: 0 / 0.707 GB, free: 0.5039 MB / 410.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.0005358/0.008073, allocations: 0.4891 MB / 0.7075 GB, free: 15.96 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.008108, allocations: 8.031 kB / 0.7075 GB, free: 15.96 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.514e-05/0.008153, allocations: 24.8 kB / 0.7075 GB, free: 15.93 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001692/0.008323, allocations: 178.4 kB / 0.7077 GB, free: 15.73 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.008338, allocations: 12.61 kB / 0.7077 GB, free: 15.72 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.618e-05/0.008364, allocations: 12.38 kB / 0.7077 GB, free: 15.71 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002342/0.008599, allocations: 198.5 kB / 0.7079 GB, free: 15.5 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.008611, allocations: 11.89 kB / 0.7079 GB, free: 15.49 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.008626, allocations: 4 kB / 0.7079 GB, free: 15.49 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.008631, allocations: 4 kB / 0.7079 GB, free: 15.48 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002046/0.008836, allocations: 150.2 kB / 0.708 GB, free: 15.33 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005383/0.009374, allocations: 489.4 kB / 0.7085 GB, free: 14.82 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.009679, allocations: 172.2 kB / 0.7087 GB, free: 14.64 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.00979, allocations: 98.52 kB / 0.7088 GB, free: 14.53 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.02e-05/0.0098, allocations: 0 / 0.7088 GB, free: 14.53 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000249/0.01005, allocations: 236.4 kB / 0.709 GB, free: 14.27 MB / 426.8 MB Notification: Performance of pre-optimization done (n=20): time 1.242e-06/0.01005, allocations: 4 kB / 0.709 GB, free: 14.27 MB / 426.8 MB Notification: Performance of matching and sorting (n=21): time 0.0009099/0.01096, allocations: 0.6948 MB / 0.7097 GB, free: 13.51 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.018e-05/0.01102, allocations: 144.4 kB / 0.7098 GB, free: 13.34 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.01117, allocations: 216 kB / 0.71 GB, free: 13.12 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002117/0.01138, allocations: 33.7 kB / 0.7101 GB, free: 13.08 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.423e-05/0.01144, allocations: 132.5 kB / 0.7102 GB, free: 12.95 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.862e-05/0.01148, allocations: 75.41 kB / 0.7103 GB, free: 12.87 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.654e-05/0.01154, allocations: 49.7 kB / 0.7103 GB, free: 12.82 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 8.048e-05/0.01162, allocations: 338.8 kB / 0.7106 GB, free: 12.48 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.01176, allocations: 145 kB / 0.7108 GB, free: 12.32 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001597/0.01192, allocations: 217.3 kB / 0.711 GB, free: 12.06 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002452/0.01216, allocations: 286.2 kB / 0.7112 GB, free: 11.74 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.01217, allocations: 0 / 0.7112 GB, free: 11.74 MB / 426.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003596/0.01252, allocations: 391.9 kB / 0.7116 GB, free: 11.32 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.202e-05/0.01257, allocations: 68.95 kB / 0.7117 GB, free: 11.25 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.01257, allocations: 3.938 kB / 0.7117 GB, free: 11.24 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.01259, allocations: 8.219 kB / 0.7117 GB, free: 11.23 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.01271, allocations: 51.84 kB / 0.7117 GB, free: 11.18 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.01271, allocations: 4 kB / 0.7117 GB, free: 11.18 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.454e-05/0.01281, allocations: 19.98 kB / 0.7118 GB, free: 11.16 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.01282, allocations: 12 kB / 0.7118 GB, free: 11.15 MB / 426.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.000148/0.01297, allocations: 172.3 kB / 0.7119 GB, free: 10.96 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.094e-05/0.01299, allocations: 15.91 kB / 0.712 GB, free: 10.95 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.658e-05/0.01303, allocations: 33.95 kB / 0.712 GB, free: 10.91 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.01303, allocations: 0 / 0.712 GB, free: 10.91 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.01304, allocations: 3.938 kB / 0.712 GB, free: 10.91 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.01304, allocations: 0 / 0.712 GB, free: 10.91 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005204/0.01356, allocations: 0.5406 MB / 0.7125 GB, free: 10.32 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.01356, allocations: 0 / 0.7125 GB, free: 10.32 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.934e-05/0.01366, allocations: 31.97 kB / 0.7125 GB, free: 10.29 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.01367, allocations: 0 / 0.7125 GB, free: 10.29 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.01368, allocations: 12 kB / 0.7126 GB, free: 10.28 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.01368, allocations: 0 / 0.7126 GB, free: 10.28 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.01369, allocations: 3.984 kB / 0.7126 GB, free: 10.27 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004507/0.01414, allocations: 0.4949 MB / 0.713 GB, free: 9.75 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.572e-05/0.01416, allocations: 23.89 kB / 0.7131 GB, free: 9.727 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.59e-05/0.01419, allocations: 4 kB / 0.7131 GB, free: 9.723 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.931e-05/0.01427, allocations: 19.98 kB / 0.7131 GB, free: 9.703 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.411e-05/0.01433, allocations: 19.97 kB / 0.7131 GB, free: 9.684 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.01434, allocations: 15.98 kB / 0.7131 GB, free: 9.668 MB / 426.8 MB Notification: Performance of sorting global known variables: time 9.001e-05/0.01443, allocations: 155.4 kB / 0.7133 GB, free: 9.516 MB / 426.8 MB Notification: Performance of sort global known variables: time 5e-08/0.01443, allocations: 0 / 0.7133 GB, free: 9.516 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.0001935/0.01463, allocations: 56 kB / 0.7133 GB, free: 9.461 MB / 426.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.0001084/0.01473, allocations: 124.4 kB / 0.7134 GB, free: 9.332 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.0003468/0.01508, allocations: 380 kB / 0.7138 GB, free: 8.918 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.01508, allocations: 3.938 kB / 0.7138 GB, free: 8.914 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.01525, allocations: 175.5 kB / 0.714 GB, free: 8.727 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.01554, allocations: 67.09 kB / 0.714 GB, free: 8.664 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007897/0.01633, allocations: 0.5993 MB / 0.7146 GB, free: 8.027 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.278e-05/0.01641, allocations: 125.6 kB / 0.7148 GB, free: 7.883 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.327e-05/0.01646, allocations: 28.5 kB / 0.7148 GB, free: 7.855 MB / 426.8 MB Notification: Performance of SimCode: time 4.61e-07/0.01646, allocations: 0 / 0.7148 GB, free: 7.855 MB / 426.8 MB Notification: Performance of Templates: time 0.003451/0.01992, allocations: 2.933 MB / 0.7176 GB, free: 4.953 MB / 426.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC02_Methadone.Methadone.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.524500577710569]