Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene_Kyhl2016_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.001158/0.001158, allocations: 104.4 kB / 19.71 MB, free: 436 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.001029/0.001029, allocations: 220.4 kB / 23.01 MB, free: 2.938 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.007/1.007, allocations: 230.6 MB / 256.8 MB, free: 9.59 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.8149/0.8149, allocations: 312.3 MB / 0.6108 GB, free: 97.63 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_Kyhl2016_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene_Kyhl2016_reference") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene_Kyhl2016_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene_Kyhl2016_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.001519/0.001519, allocations: 73.97 kB / 0.7699 GB, free: 20.2 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1202, allocations: 73.99 MB / 0.8421 GB, free: 10.34 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene_Kyhl2016_reference): time 0.002622/0.1228, allocations: 2.297 MB / 0.8444 GB, free: 8.043 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.005323/0.1281, allocations: 6.533 MB / 0.8507 GB, free: 1.508 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.371e-05/0.1282, allocations: 0.625 kB / 0.8507 GB, free: 1.508 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.1283, allocations: 27.7 kB / 0.8508 GB, free: 1.48 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.000178/0.1285, allocations: 80.58 kB / 0.8508 GB, free: 1.402 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002082/0.1287, allocations: 52.5 kB / 0.8509 GB, free: 1.352 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002367/0.1289, allocations: 258.7 kB / 0.8511 GB, free: 1.098 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.1291, allocations: 37.06 kB / 0.8512 GB, free: 1.062 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.1292, allocations: 92.25 kB / 0.8513 GB, free: 0.9727 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001779/0.1294, allocations: 99.97 kB / 0.8514 GB, free: 0.875 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.1294, allocations: 16.59 kB / 0.8514 GB, free: 0.8594 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.476e-05/0.1294, allocations: 20 kB / 0.8514 GB, free: 0.8398 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 3.361e-05/0.1295, allocations: 40.59 kB / 0.8514 GB, free: 0.8008 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 7.762e-05/0.1295, allocations: 91.53 kB / 0.8515 GB, free: 0.7109 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001992/0.1297, allocations: 195.8 kB / 0.8517 GB, free: 0.5195 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1297, allocations: 0 / 0.8517 GB, free: 0.5195 MB / 474.8 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1297, allocations: 0.625 kB / 0.8517 GB, free: 0.5195 MB / 474.8 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.1297, allocations: 4.625 kB / 0.8517 GB, free: 0.5156 MB / 474.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.0007098/0.1304, allocations: 0.4925 MB / 0.8522 GB, free: 15.98 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.1305, allocations: 12.84 kB / 0.8522 GB, free: 15.96 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.211e-05/0.1305, allocations: 24.8 kB / 0.8522 GB, free: 15.94 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.1308, allocations: 179.1 kB / 0.8524 GB, free: 15.74 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.1308, allocations: 13.23 kB / 0.8524 GB, free: 15.73 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.615e-05/0.1308, allocations: 24.5 kB / 0.8524 GB, free: 15.7 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002477/0.1311, allocations: 183 kB / 0.8526 GB, free: 15.51 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.1311, allocations: 8 kB / 0.8526 GB, free: 15.5 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.1311, allocations: 0.5 kB / 0.8526 GB, free: 15.5 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.1311, allocations: 12.5 kB / 0.8526 GB, free: 15.49 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002006/0.1313, allocations: 146.9 kB / 0.8528 GB, free: 15.34 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005586/0.1318, allocations: 486.6 kB / 0.8532 GB, free: 14.84 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003084/0.1322, allocations: 169.7 kB / 0.8534 GB, free: 14.66 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.1323, allocations: 99.05 kB / 0.8535 GB, free: 14.55 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.1323, allocations: 4.594 kB / 0.8535 GB, free: 14.55 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002274/0.1325, allocations: 221.1 kB / 0.8537 GB, free: 14.3 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.793e-06/0.1325, allocations: 0.625 kB / 0.8537 GB, free: 14.3 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.0009643/0.1335, allocations: 0.6996 MB / 0.8544 GB, free: 13.54 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.553e-05/0.1335, allocations: 140.5 kB / 0.8545 GB, free: 13.38 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001674/0.1337, allocations: 215.5 kB / 0.8547 GB, free: 13.16 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.1337, allocations: 34.39 kB / 0.8548 GB, free: 13.12 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.35e-05/0.1338, allocations: 132.5 kB / 0.8549 GB, free: 12.98 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.144e-05/0.1338, allocations: 72.08 kB / 0.855 GB, free: 12.91 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.097e-05/0.1339, allocations: 61.64 kB / 0.855 GB, free: 12.85 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0004059/0.1343, allocations: 331.4 kB / 0.8553 GB, free: 12.52 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.1345, allocations: 149.7 kB / 0.8555 GB, free: 12.35 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.1346, allocations: 230.4 kB / 0.8557 GB, free: 12.08 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2494/0.384, allocations: 277.2 kB / 0.856 GB, free: 30.29 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.384, allocations: 5.344 kB / 0.856 GB, free: 30.29 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004155/0.3844, allocations: 383.5 kB / 0.8563 GB, free: 30.12 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.59e-05/0.3844, allocations: 65.58 kB / 0.8564 GB, free: 30.06 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.3844, allocations: 4.266 kB / 0.8564 GB, free: 30.06 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.3845, allocations: 2.25 kB / 0.8564 GB, free: 30.06 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.3846, allocations: 54.33 kB / 0.8565 GB, free: 30.06 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3846, allocations: 4.406 kB / 0.8565 GB, free: 30.06 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.3847, allocations: 15.56 kB / 0.8565 GB, free: 30.06 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.3847, allocations: 15.16 kB / 0.8565 GB, free: 30.06 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.0001582/0.3849, allocations: 174.8 kB / 0.8567 GB, free: 29.92 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.581e-05/0.3849, allocations: 23.02 kB / 0.8567 GB, free: 29.92 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.426e-05/0.385, allocations: 24.34 kB / 0.8567 GB, free: 29.91 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.385, allocations: 2.375 kB / 0.8567 GB, free: 29.91 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.385, allocations: 2.188 kB / 0.8567 GB, free: 29.91 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.385, allocations: 3.375 kB / 0.8567 GB, free: 29.91 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004947/0.3855, allocations: 0.5405 MB / 0.8572 GB, free: 29.62 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3855, allocations: 0 / 0.8572 GB, free: 29.62 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001042/0.3856, allocations: 37.92 kB / 0.8573 GB, free: 29.62 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3856, allocations: 0 / 0.8573 GB, free: 29.62 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.3856, allocations: 12.38 kB / 0.8573 GB, free: 29.61 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.3856, allocations: 2.406 kB / 0.8573 GB, free: 29.61 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3856, allocations: 2.156 kB / 0.8573 GB, free: 29.61 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003969/0.386, allocations: 0.4917 MB / 0.8578 GB, free: 29.39 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.563e-05/0.386, allocations: 19.92 kB / 0.8578 GB, free: 29.39 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.802e-05/0.386, allocations: 14.58 kB / 0.8578 GB, free: 29.39 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.143e-05/0.3861, allocations: 11.67 kB / 0.8578 GB, free: 29.39 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.579e-05/0.3862, allocations: 22.72 kB / 0.8578 GB, free: 29.39 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.3862, allocations: 9.266 kB / 0.8578 GB, free: 29.39 MB / 490.8 MB Notification: Performance of sorting global known variables: time 7.954e-05/0.3863, allocations: 155.5 kB / 0.858 GB, free: 29.31 MB / 490.8 MB Notification: Performance of sort global known variables: time 5e-08/0.3863, allocations: 0.625 kB / 0.858 GB, free: 29.31 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.000191/0.3865, allocations: 63.14 kB / 0.858 GB, free: 29.31 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 7.61e-05/0.3865, allocations: 112 kB / 0.8582 GB, free: 29.22 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0003162/0.3869, allocations: 376.2 kB / 0.8585 GB, free: 29 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.3869, allocations: 0.6562 kB / 0.8585 GB, free: 29 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.387, allocations: 174.2 kB / 0.8587 GB, free: 28.91 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.3873, allocations: 69.92 kB / 0.8587 GB, free: 28.91 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008146/0.3881, allocations: 0.6979 MB / 0.8594 GB, free: 28.61 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.507e-05/0.3882, allocations: 133.1 kB / 0.8596 GB, free: 28.53 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.639e-05/0.3882, allocations: 18.44 kB / 0.8596 GB, free: 28.52 MB / 490.8 MB Notification: Performance of SimCode: time 6.12e-07/0.3882, allocations: 0 / 0.8596 GB, free: 28.52 MB / 490.8 MB Notification: Performance of Templates: time 0.003771/0.392, allocations: 2.946 MB / 0.8625 GB, free: 28.31 MB / 490.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene_Kyhl2016_reference.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene_Kyhl2016_reference.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene_Kyhl2016_reference.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene_Kyhl2016_reference.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene_Kyhl2016_reference.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene_Kyhl2016_reference > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene_Kyhl2016_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.899876055307686]