Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene.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.0007079/0.0007079, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009202/0.001628, allocations: 435.8 kB / 10.33 MB, free: 368 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.0006705/0.0006705, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008519/0.001522, allocations: 463.6 kB / 11.68 MB, free: 2.484 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 0.996/0.996, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.122/1.118, allocations: 53.66 MB / 243.2 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.773/0.773, allocations: 291.2 MB / 0.5226 GB, free: 52.48 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0279/0.8008, allocations: 21.04 MB / 0.5431 GB, free: 31.51 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.N07BB05_Nalmefene.Nalmefene,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.654e-06/1.654e-06, allocations: 0 / 0.5445 GB, free: 30.12 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.351e-05/1.516e-05, allocations: 10.19 kB / 0.5445 GB, free: 30.11 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene): time 0.003011/0.003026, allocations: 2.495 MB / 0.547 GB, free: 27.6 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.005323/0.00835, allocations: 6.688 MB / 0.5535 GB, free: 20.9 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.664e-05/0.008446, allocations: 0 / 0.5535 GB, free: 20.9 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 7.127e-05/0.008518, allocations: 31.66 kB / 0.5535 GB, free: 20.87 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001361/0.008654, allocations: 83.31 kB / 0.5536 GB, free: 20.79 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00013/0.008784, allocations: 63.75 kB / 0.5537 GB, free: 20.73 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001954/0.008979, allocations: 266.6 kB / 0.5539 GB, free: 20.46 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.009102, allocations: 38.53 kB / 0.554 GB, free: 20.43 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001885/0.00929, allocations: 180.2 kB / 0.5541 GB, free: 20.25 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/0.009478, allocations: 83.73 kB / 0.5542 GB, free: 20.17 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.272e-05/0.009511, allocations: 16 kB / 0.5542 GB, free: 20.16 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.305e-05/0.009534, allocations: 20 kB / 0.5542 GB, free: 20.14 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.606e-05/0.00957, allocations: 27.86 kB / 0.5543 GB, free: 20.11 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 5.988e-05/0.00963, allocations: 63.88 kB / 0.5543 GB, free: 20.05 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.009791, allocations: 139.5 kB / 0.5545 GB, free: 19.91 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.299e-05/0.009804, allocations: 0 / 0.5545 GB, free: 19.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.009805, allocations: 0 / 0.5545 GB, free: 19.91 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.279e-05/0.009818, allocations: 4 kB / 0.5545 GB, free: 19.91 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.0005453/0.01036, allocations: 0.4937 MB / 0.5549 GB, free: 19.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.0104, allocations: 11.89 kB / 0.555 GB, free: 19.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.393e-05/0.01044, allocations: 24.92 kB / 0.555 GB, free: 19.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.0106, allocations: 179 kB / 0.5552 GB, free: 19.13 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.01062, allocations: 20.55 kB / 0.5552 GB, free: 19.11 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.31e-05/0.01064, allocations: 12.38 kB / 0.5552 GB, free: 19.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.01081, allocations: 159.5 kB / 0.5553 GB, free: 18.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.01082, allocations: 3.938 kB / 0.5553 GB, free: 18.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.01083, allocations: 7.984 kB / 0.5553 GB, free: 18.92 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.01084, allocations: 0 / 0.5553 GB, free: 18.92 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.94e-05/0.01092, allocations: 80.7 kB / 0.5554 GB, free: 18.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003566/0.01128, allocations: 365 kB / 0.5558 GB, free: 18.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002035/0.01148, allocations: 120 kB / 0.5559 GB, free: 18.33 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.41e-05/0.01151, allocations: 58.55 kB / 0.5559 GB, free: 18.26 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.466e-06/0.01152, allocations: 4 kB / 0.5559 GB, free: 18.26 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001296/0.01165, allocations: 191 kB / 0.5561 GB, free: 18.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 1.613e-06/0.01165, allocations: 0 / 0.5561 GB, free: 18.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005104/0.01216, allocations: 0.5016 MB / 0.5566 GB, free: 17.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.779e-05/0.0122, allocations: 144.5 kB / 0.5568 GB, free: 17.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.102e-05/0.01229, allocations: 198 kB / 0.5569 GB, free: 17.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.0123, allocations: 37.69 kB / 0.557 GB, free: 17.05 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.366e-05/0.01234, allocations: 116.4 kB / 0.5571 GB, free: 16.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.364e-05/0.01237, allocations: 75.45 kB / 0.5572 GB, free: 16.86 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.52e-05/0.01242, allocations: 47.19 kB / 0.5572 GB, free: 16.81 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.053e-05/0.01246, allocations: 342.7 kB / 0.5575 GB, free: 16.47 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.951e-05/0.01251, allocations: 96.98 kB / 0.5576 GB, free: 16.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.338e-05/0.01257, allocations: 169.4 kB / 0.5578 GB, free: 16.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.54e-05/0.01267, allocations: 211.1 kB / 0.558 GB, free: 15.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.01267, allocations: 7.938 kB / 0.558 GB, free: 15.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0001429/0.01281, allocations: 267.7 kB / 0.5583 GB, free: 15.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.174e-05/0.01284, allocations: 63.41 kB / 0.5583 GB, free: 15.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.01285, allocations: 6.656 kB / 0.5583 GB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.858e-06/0.01286, allocations: 4 kB / 0.5583 GB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.013, allocations: 63.89 kB / 0.5584 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.01301, allocations: 4 kB / 0.5584 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.392e-05/0.01308, allocations: 19.92 kB / 0.5584 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.01309, allocations: 12 kB / 0.5584 GB, free: 15.42 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 9.768e-05/0.01319, allocations: 176.4 kB / 0.5586 GB, free: 15.24 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.828e-05/0.01321, allocations: 23.98 kB / 0.5586 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.842e-05/0.01324, allocations: 21.95 kB / 0.5586 GB, free: 15.19 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.01324, allocations: 4 kB / 0.5586 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.01324, allocations: 0 / 0.5586 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.01325, allocations: 0 / 0.5586 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002309/0.01348, allocations: 378.2 kB / 0.559 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.01348, allocations: 3.938 kB / 0.559 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.01359, allocations: 39.97 kB / 0.559 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.948e-05/0.01361, allocations: 23.84 kB / 0.5591 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.01361, allocations: 0 / 0.5591 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.01362, allocations: 8 kB / 0.5591 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.01362, allocations: 0 / 0.5591 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01362, allocations: 0 / 0.5591 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2507/0.2643, allocations: 349 kB / 0.5594 GB, free: 79.48 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.114e-05/0.2643, allocations: 6.781 kB / 0.5594 GB, free: 79.48 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.2645, allocations: 12.98 kB / 0.5594 GB, free: 79.48 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.764e-05/0.2645, allocations: 18.05 kB / 0.5594 GB, free: 79.48 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.2645, allocations: 13.8 kB / 0.5595 GB, free: 79.48 MB / 410.8 MB Notification: Performance of sorting global known variables: time 5.619e-05/0.2646, allocations: 62 kB / 0.5595 GB, free: 79.48 MB / 410.8 MB Notification: Performance of sort global known variables: time 8e-08/0.2646, allocations: 0 / 0.5595 GB, free: 79.48 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.0001969/0.2648, allocations: 56.53 kB / 0.5596 GB, free: 79.48 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 9.649e-05/0.2649, allocations: 93.09 kB / 0.5597 GB, free: 79.41 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.000195/0.2651, allocations: 308.8 kB / 0.5599 GB, free: 79.18 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.2651, allocations: 6.094 kB / 0.56 GB, free: 79.18 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 7.003e-05/0.2651, allocations: 143.6 kB / 0.5601 GB, free: 79.08 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002523/0.2654, allocations: 85.14 kB / 0.5602 GB, free: 79.08 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005281/0.2707, allocations: 0.5736 MB / 0.5607 GB, free: 78.82 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.501e-05/0.2707, allocations: 80.86 kB / 0.5608 GB, free: 78.75 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 7.642e-05/0.2708, allocations: 26.16 kB / 0.5608 GB, free: 78.75 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.271, allocations: 120.8 kB / 0.5609 GB, free: 78.7 MB / 410.8 MB Notification: Performance of SimCode: time 7.71e-07/0.271, allocations: 0 / 0.5609 GB, free: 78.7 MB / 410.8 MB Notification: Performance of Templates: time 0.005848/0.2768, allocations: 3.795 MB / 0.5647 GB, free: 78.52 MB / 410.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.729849824681878]