Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.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.0007121/0.0007121, allocations: 68.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008814/0.001593, allocations: 455.9 kB / 10.35 MB, free: 348 kB / 10.45 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.0007011/0.0007011, allocations: 157.2 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009507/0.001652, allocations: 475.7 kB / 11.7 MB, free: 2.465 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.095/1.095, allocations: 177.2 MB / 189.6 MB, free: 5.324 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1077/1.203, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.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.9177/0.9177, allocations: 291.2 MB / 0.5227 GB, free: 52.79 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03179/0.9495, allocations: 21.04 MB / 0.5432 GB, free: 31.81 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.N07BC05_Levomethadone.Levomethadone,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.193e-06/1.193e-06, allocations: 0 / 0.5446 GB, free: 30.42 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.132e-05/1.251e-05, allocations: 10.25 kB / 0.5446 GB, free: 30.41 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone): time 0.001968/0.00198, allocations: 2.499 MB / 0.547 GB, free: 27.9 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00372/0.0057, allocations: 6.692 MB / 0.5536 GB, free: 21.2 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.849e-05/0.005799, allocations: 7.938 kB / 0.5536 GB, free: 21.19 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 6.14e-05/0.00586, allocations: 31.7 kB / 0.5536 GB, free: 21.16 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001319/0.005992, allocations: 87.27 kB / 0.5537 GB, free: 21.07 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001183/0.006111, allocations: 47.88 kB / 0.5537 GB, free: 21.03 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001737/0.006284, allocations: 270.6 kB / 0.554 GB, free: 20.76 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.845e-05/0.006383, allocations: 38.55 kB / 0.554 GB, free: 20.73 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/0.006544, allocations: 176.1 kB / 0.5542 GB, free: 20.55 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.006679, allocations: 87.77 kB / 0.5543 GB, free: 20.47 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.375e-05/0.006703, allocations: 20 kB / 0.5543 GB, free: 20.45 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.241e-05/0.006725, allocations: 20 kB / 0.5543 GB, free: 20.43 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.361e-05/0.006749, allocations: 23.88 kB / 0.5544 GB, free: 20.41 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 5.043e-05/0.006799, allocations: 63.88 kB / 0.5544 GB, free: 20.34 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001447/0.006944, allocations: 135.5 kB / 0.5545 GB, free: 20.21 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.958e-06/0.006954, allocations: 0 / 0.5545 GB, free: 20.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.006955, allocations: 0 / 0.5545 GB, free: 20.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.006968, allocations: 0 / 0.5545 GB, free: 20.21 MB / 410.7 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.0005036/0.007471, allocations: 0.4976 MB / 0.555 GB, free: 19.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.58e-05/0.007497, allocations: 23.72 kB / 0.555 GB, free: 19.65 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.653e-05/0.007534, allocations: 28.91 kB / 0.5551 GB, free: 19.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.007669, allocations: 175.1 kB / 0.5552 GB, free: 19.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.007687, allocations: 12.61 kB / 0.5553 GB, free: 19.41 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.212e-05/0.007709, allocations: 12.38 kB / 0.5553 GB, free: 19.4 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001402/0.007849, allocations: 163.4 kB / 0.5554 GB, free: 19.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.00786, allocations: 3.984 kB / 0.5554 GB, free: 19.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.00787, allocations: 8 kB / 0.5554 GB, free: 19.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.007874, allocations: 0 / 0.5554 GB, free: 19.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.642e-05/0.007941, allocations: 80.7 kB / 0.5555 GB, free: 19.13 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003318/0.008273, allocations: 372.9 kB / 0.5559 GB, free: 18.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001462/0.008419, allocations: 108.1 kB / 0.556 GB, free: 18.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.429e-05/0.008453, allocations: 61.86 kB / 0.556 GB, free: 18.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.214e-06/0.00846, allocations: 4 kB / 0.556 GB, free: 18.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001238/0.008584, allocations: 184.4 kB / 0.5562 GB, free: 18.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 1.192e-06/0.008585, allocations: 4 kB / 0.5562 GB, free: 18.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004911/0.009077, allocations: 0.5123 MB / 0.5567 GB, free: 17.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/0.009108, allocations: 170.2 kB / 0.5569 GB, free: 17.56 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.407e-05/0.009192, allocations: 202 kB / 0.5571 GB, free: 17.35 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/0.009203, allocations: 33.7 kB / 0.5571 GB, free: 17.31 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.983e-05/0.009232, allocations: 120.4 kB / 0.5572 GB, free: 17.19 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.964e-05/0.009262, allocations: 71.47 kB / 0.5573 GB, free: 17.12 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.009306, allocations: 51.17 kB / 0.5573 GB, free: 17.07 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.205e-05/0.009338, allocations: 342.8 kB / 0.5577 GB, free: 16.72 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.586e-05/0.009384, allocations: 96.94 kB / 0.5578 GB, free: 16.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.361e-05/0.009437, allocations: 171.7 kB / 0.5579 GB, free: 16.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.942e-05/0.009527, allocations: 209.5 kB / 0.5581 GB, free: 16.15 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.009528, allocations: 8.031 kB / 0.5581 GB, free: 16.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0001375/0.009666, allocations: 256.2 kB / 0.5584 GB, free: 15.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.009694, allocations: 67.39 kB / 0.5584 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.009699, allocations: 6.656 kB / 0.5584 GB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.376e-06/0.009707, allocations: 0 / 0.5584 GB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.009857, allocations: 67.89 kB / 0.5585 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.296e-06/0.009861, allocations: 8.219 kB / 0.5585 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.23e-05/0.009933, allocations: 15.94 kB / 0.5585 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.009942, allocations: 11.98 kB / 0.5585 GB, free: 15.68 MB / 410.7 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 8.575e-05/0.01003, allocations: 165.6 kB / 0.5587 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.921e-05/0.01005, allocations: 23.97 kB / 0.5587 GB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.444e-05/0.01007, allocations: 21.97 kB / 0.5587 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.01007, allocations: 4 kB / 0.5587 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.01008, allocations: 0 / 0.5587 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.01008, allocations: 7.984 kB / 0.5588 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002331/0.01031, allocations: 385 kB / 0.5591 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.01032, allocations: 7.062 kB / 0.5591 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.01043, allocations: 39.91 kB / 0.5592 GB, free: 14.99 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.001e-05/0.01045, allocations: 19.86 kB / 0.5592 GB, free: 14.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.01045, allocations: 3.984 kB / 0.5592 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.01046, allocations: 8 kB / 0.5592 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.01046, allocations: 0 / 0.5592 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01046, allocations: 0 / 0.5592 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3521/0.3626, allocations: 344.6 kB / 0.5595 GB, free: 79.29 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.894e-05/0.3627, allocations: 6.891 kB / 0.5595 GB, free: 79.29 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/0.3629, allocations: 12.12 kB / 0.5595 GB, free: 79.29 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.743e-05/0.363, allocations: 17.61 kB / 0.5596 GB, free: 79.29 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.957e-05/0.363, allocations: 11.72 kB / 0.5596 GB, free: 79.29 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.0001222/0.3631, allocations: 63.25 kB / 0.5596 GB, free: 79.28 MB / 410.8 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3631, allocations: 0 / 0.5596 GB, free: 79.28 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.000276/0.3634, allocations: 54.72 kB / 0.5597 GB, free: 79.28 MB / 410.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.0001996/0.3636, allocations: 94.64 kB / 0.5598 GB, free: 79.21 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.0003363/0.364, allocations: 309.5 kB / 0.5601 GB, free: 78.98 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.689e-05/0.364, allocations: 5.75 kB / 0.5601 GB, free: 78.98 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.3641, allocations: 159.5 kB / 0.5602 GB, free: 78.88 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.3645, allocations: 87.09 kB / 0.5603 GB, free: 78.88 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00586/0.3704, allocations: 0.5556 MB / 0.5608 GB, free: 78.62 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.324e-05/0.3705, allocations: 79.84 kB / 0.5609 GB, free: 78.55 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.0001821/0.3707, allocations: 25.45 kB / 0.5609 GB, free: 78.55 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002369/0.3709, allocations: 120.4 kB / 0.5611 GB, free: 78.5 MB / 410.8 MB Notification: Performance of SimCode: time 3.226e-06/0.3709, allocations: 0 / 0.5611 GB, free: 78.5 MB / 410.8 MB Notification: Performance of Templates: time 0.009703/0.3806, allocations: 3.796 MB / 0.5648 GB, free: 78.34 MB / 410.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.063932745717466]