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.001972/0.001972, allocations: 109.5 kB / 18.95 MB, free: 1.18 MB / 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.003036/0.003036, allocations: 213.9 kB / 22.25 MB, free: 3.582 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.71/1.71, allocations: 230.6 MB / 256 MB, free: 9.598 MB / 202.7 MB " [Timeout remaining time 178] 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 1.546/1.546, allocations: 316.7 MB / 0.6144 GB, free: 93.06 MB / 410.7 MB " [Timeout remaining time 178] 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.00583/0.00583, allocations: 73.05 kB / 0.775 GB, free: 14.74 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.2012, allocations: 73.99 MB / 0.8472 GB, free: 4.895 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene_Kyhl2016_reference): time 0.004411/0.2056, allocations: 2.292 MB / 0.8495 GB, free: 2.605 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.3721/0.5777, allocations: 6.53 MB / 0.8558 GB, free: 22 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002854/0.578, allocations: 0 / 0.8558 GB, free: 22 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001948/0.5782, allocations: 24.84 kB / 0.8559 GB, free: 22 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0003215/0.5785, allocations: 81.2 kB / 0.8559 GB, free: 22 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.5788, allocations: 58.94 kB / 0.856 GB, free: 22 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003638/0.5792, allocations: 254.9 kB / 0.8562 GB, free: 21.98 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002399/0.5794, allocations: 37.03 kB / 0.8563 GB, free: 21.98 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001684/0.5796, allocations: 96.53 kB / 0.8564 GB, free: 21.97 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000257/0.5798, allocations: 100.2 kB / 0.8565 GB, free: 21.95 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 4.16e-05/0.5799, allocations: 16.19 kB / 0.8565 GB, free: 21.95 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 4.809e-05/0.5799, allocations: 21.09 kB / 0.8565 GB, free: 21.94 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 5.049e-05/0.58, allocations: 33.92 kB / 0.8565 GB, free: 21.94 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.5801, allocations: 95.36 kB / 0.8566 GB, free: 21.91 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0003207/0.5804, allocations: 203.5 kB / 0.8568 GB, free: 21.88 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.5804, allocations: 0.9844 kB / 0.8568 GB, free: 21.88 MB / 490.8 MB Notification: Performance of FrontEnd: time 2.775e-06/0.5804, allocations: 0 / 0.8568 GB, free: 21.88 MB / 490.8 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.5804, allocations: 0 / 0.8568 GB, free: 21.88 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.0009625/0.5814, allocations: 495.6 kB / 0.8573 GB, free: 21.48 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.5814, allocations: 10.44 kB / 0.8573 GB, free: 21.48 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.524e-05/0.5815, allocations: 23.78 kB / 0.8573 GB, free: 21.47 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.5818, allocations: 189.9 kB / 0.8575 GB, free: 21.31 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.5818, allocations: 12.17 kB / 0.8575 GB, free: 21.31 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.592e-05/0.5818, allocations: 18.05 kB / 0.8575 GB, free: 21.3 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003727/0.5822, allocations: 188.5 kB / 0.8577 GB, free: 21.23 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.5822, allocations: 0.5938 kB / 0.8577 GB, free: 21.23 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.942e-05/0.5822, allocations: 6.469 kB / 0.8577 GB, free: 21.23 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.5822, allocations: 5.406 kB / 0.8577 GB, free: 21.23 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003315/0.5826, allocations: 147 kB / 0.8579 GB, free: 21.19 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007443/0.5833, allocations: 484 kB / 0.8583 GB, free: 20.89 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004771/0.5838, allocations: 174.3 kB / 0.8585 GB, free: 20.84 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001787/0.584, allocations: 90.34 kB / 0.8586 GB, free: 20.8 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/0.584, allocations: 9.156 kB / 0.8586 GB, free: 20.8 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003365/0.5843, allocations: 233.9 kB / 0.8588 GB, free: 20.65 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.403e-06/0.5843, allocations: 0 / 0.8588 GB, free: 20.65 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.001495/0.5858, allocations: 0.7009 MB / 0.8595 GB, free: 20.29 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.37e-05/0.5859, allocations: 138.4 kB / 0.8596 GB, free: 20.14 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002182/0.5861, allocations: 211.5 kB / 0.8598 GB, free: 20.03 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.5861, allocations: 36.06 kB / 0.8599 GB, free: 20 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.25e-05/0.5862, allocations: 129.8 kB / 0.86 GB, free: 19.91 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.321e-05/0.5862, allocations: 72.03 kB / 0.86 GB, free: 19.86 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.1e-05/0.5863, allocations: 55.33 kB / 0.8601 GB, free: 19.84 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 9.293e-05/0.5864, allocations: 335.5 kB / 0.8604 GB, free: 19.53 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000232/0.5867, allocations: 146.5 kB / 0.8606 GB, free: 19.45 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002607/0.5869, allocations: 222.6 kB / 0.8608 GB, free: 19.29 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003843/0.5873, allocations: 279.7 kB / 0.861 GB, free: 19.12 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.5873, allocations: 1.094 kB / 0.861 GB, free: 19.12 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005551/0.5879, allocations: 397.7 kB / 0.8614 GB, free: 18.94 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.829e-05/0.5879, allocations: 57.69 kB / 0.8615 GB, free: 18.88 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.5879, allocations: 8.719 kB / 0.8615 GB, free: 18.88 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.5879, allocations: 0 / 0.8615 GB, free: 18.88 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/0.5881, allocations: 58.52 kB / 0.8615 GB, free: 18.87 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.5881, allocations: 3.875 kB / 0.8615 GB, free: 18.87 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001668/0.5883, allocations: 14.34 kB / 0.8616 GB, free: 18.87 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.334e-05/0.5883, allocations: 14.22 kB / 0.8616 GB, free: 18.87 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.0001882/0.5885, allocations: 181.7 kB / 0.8617 GB, free: 18.72 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.116e-05/0.5885, allocations: 21.7 kB / 0.8618 GB, free: 18.71 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.575e-05/0.5886, allocations: 25.52 kB / 0.8618 GB, free: 18.69 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.5886, allocations: 3 kB / 0.8618 GB, free: 18.69 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.5886, allocations: 3.734 kB / 0.8618 GB, free: 18.69 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.5886, allocations: 0.5625 kB / 0.8618 GB, free: 18.69 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006954/0.5893, allocations: 0.5485 MB / 0.8623 GB, free: 18.39 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.5893, allocations: 4.531 kB / 0.8623 GB, free: 18.39 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000171/0.5895, allocations: 39.08 kB / 0.8624 GB, free: 18.38 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.5895, allocations: 0.6875 kB / 0.8624 GB, free: 18.38 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.5895, allocations: 7.094 kB / 0.8624 GB, free: 18.38 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.5895, allocations: 4.688 kB / 0.8624 GB, free: 18.38 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.5895, allocations: 0 / 0.8624 GB, free: 18.38 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006689/0.5902, allocations: 499.6 kB / 0.8629 GB, free: 18.14 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.233e-05/0.5902, allocations: 18.92 kB / 0.8629 GB, free: 18.12 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.207e-05/0.5903, allocations: 13.72 kB / 0.8629 GB, free: 18.12 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.5904, allocations: 14.64 kB / 0.8629 GB, free: 18.12 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.448e-05/0.5905, allocations: 20.52 kB / 0.8629 GB, free: 18.12 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.5905, allocations: 10.03 kB / 0.8629 GB, free: 18.12 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001379/0.5907, allocations: 159.1 kB / 0.8631 GB, free: 18.04 MB / 490.8 MB Notification: Performance of sort global known variables: time 8e-08/0.5907, allocations: 0 / 0.8631 GB, free: 18.04 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0003099/0.591, allocations: 60.66 kB / 0.8631 GB, free: 18.04 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.0001389/0.5911, allocations: 110.6 kB / 0.8632 GB, free: 17.95 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0005522/0.5917, allocations: 382.1 kB / 0.8636 GB, free: 17.72 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.5917, allocations: 0 / 0.8636 GB, free: 17.72 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002509/0.5919, allocations: 172 kB / 0.8638 GB, free: 17.62 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004736/0.5924, allocations: 63.41 kB / 0.8638 GB, free: 17.62 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/0.5937, allocations: 0.6864 MB / 0.8645 GB, free: 17.3 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001452/0.5939, allocations: 121.9 kB / 0.8646 GB, free: 17.23 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.594, allocations: 26.27 kB / 0.8647 GB, free: 17.22 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.999e-05/0.594, allocations: 23.5 kB / 0.8647 GB, free: 17.21 MB / 490.8 MB Notification: Performance of SimCode: time 1.122e-06/0.594, allocations: 0 / 0.8647 GB, free: 17.21 MB / 490.8 MB Notification: Performance of Templates: time 0.008784/0.6028, allocations: 3.643 MB / 0.8682 GB, free: 16.89 MB / 490.8 MB " [Timeout remaining time 659] 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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene_Kyhl2016_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.786603779066354]