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.001523/0.001523, 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.001892/0.001892, allocations: 216.5 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.033/1.033, allocations: 230.6 MB / 256.8 MB, free: 9.613 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.8188/0.8188, allocations: 312.3 MB / 0.6108 GB, free: 97.62 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: 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.001486/0.001486, allocations: 80.97 kB / 0.7699 GB, free: 20.23 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1284, allocations: 73.99 MB / 0.8421 GB, free: 10.38 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene): time 0.002857/0.1312, allocations: 2.306 MB / 0.8444 GB, free: 8.07 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.00582/0.1371, allocations: 6.537 MB / 0.8508 GB, free: 1.531 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001793/0.1372, allocations: 4 kB / 0.8508 GB, free: 1.527 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.1374, allocations: 24.31 kB / 0.8508 GB, free: 1.504 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002252/0.1376, allocations: 80.2 kB / 0.8509 GB, free: 1.426 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002113/0.1378, allocations: 52.47 kB / 0.8509 GB, free: 1.375 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002462/0.1381, allocations: 255.2 kB / 0.8512 GB, free: 1.125 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.1382, allocations: 41.14 kB / 0.8512 GB, free: 1.086 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.1383, allocations: 91.66 kB / 0.8513 GB, free: 0.9961 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.1385, allocations: 100.1 kB / 0.8514 GB, free: 0.8984 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 2.463e-05/0.1385, allocations: 16.5 kB / 0.8514 GB, free: 0.8828 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.371e-05/0.1385, allocations: 20.5 kB / 0.8514 GB, free: 0.8633 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 3.262e-05/0.1385, allocations: 39.84 kB / 0.8515 GB, free: 0.8242 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 7.233e-05/0.1386, allocations: 96.19 kB / 0.8515 GB, free: 0.7305 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.000192/0.1388, allocations: 195.8 kB / 0.8517 GB, free: 0.5391 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1388, allocations: 0 / 0.8517 GB, free: 0.5391 MB / 474.8 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1388, allocations: 0.5938 kB / 0.8517 GB, free: 0.5391 MB / 474.8 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.1388, allocations: 4 kB / 0.8517 GB, free: 0.5352 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.0006447/0.1395, allocations: 498.8 kB / 0.8522 GB, free: 4 kB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.1395, allocations: 8.078 kB / 0.8522 GB, free: 15.99 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.668e-05/0.1395, allocations: 25.33 kB / 0.8522 GB, free: 15.97 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.1397, allocations: 187.6 kB / 0.8524 GB, free: 15.76 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.1397, allocations: 12.55 kB / 0.8524 GB, free: 15.75 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.047e-05/0.1398, allocations: 24.39 kB / 0.8525 GB, free: 15.73 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.14, allocations: 187.5 kB / 0.8526 GB, free: 15.53 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.14, allocations: 0 / 0.8526 GB, free: 15.53 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.14, allocations: 8.562 kB / 0.8526 GB, free: 15.52 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.14, allocations: 4 kB / 0.8527 GB, free: 15.52 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001918/0.1402, allocations: 147.5 kB / 0.8528 GB, free: 15.37 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005276/0.1408, allocations: 478.7 kB / 0.8532 GB, free: 14.87 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002997/0.1411, allocations: 181.2 kB / 0.8534 GB, free: 14.68 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.1412, allocations: 94.95 kB / 0.8535 GB, free: 14.58 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 9.047e-06/0.1412, allocations: 4.594 kB / 0.8535 GB, free: 14.57 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002225/0.1414, allocations: 227.2 kB / 0.8537 GB, free: 14.32 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.663e-06/0.1414, allocations: 0.6875 kB / 0.8537 GB, free: 14.32 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.0008691/0.1423, allocations: 0.6986 MB / 0.8544 GB, free: 13.57 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.1423, allocations: 137.1 kB / 0.8545 GB, free: 13.4 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001476/0.1425, allocations: 220 kB / 0.8548 GB, free: 13.18 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.1425, allocations: 34.2 kB / 0.8548 GB, free: 13.14 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.385e-05/0.1426, allocations: 129.2 kB / 0.8549 GB, free: 13.01 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.874e-05/0.1426, allocations: 75.41 kB / 0.855 GB, free: 12.94 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.489e-05/0.1426, allocations: 58.28 kB / 0.855 GB, free: 12.88 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003601/0.143, allocations: 334.8 kB / 0.8554 GB, free: 12.54 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.1431, allocations: 146.2 kB / 0.8555 GB, free: 12.38 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.1433, allocations: 225.8 kB / 0.8557 GB, free: 12.11 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.272/0.4153, allocations: 275.5 kB / 0.856 GB, free: 30.39 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.4153, allocations: 5.078 kB / 0.856 GB, free: 30.39 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004305/0.4157, allocations: 387.8 kB / 0.8564 GB, free: 30.23 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.87e-05/0.4158, allocations: 68.59 kB / 0.8564 GB, free: 30.16 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.4158, allocations: 1.969 kB / 0.8564 GB, free: 30.16 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.4158, allocations: 4.812 kB / 0.8564 GB, free: 30.16 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.4159, allocations: 48.22 kB / 0.8565 GB, free: 30.16 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.4159, allocations: 10.8 kB / 0.8565 GB, free: 30.16 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.4161, allocations: 22.58 kB / 0.8565 GB, free: 30.16 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.4161, allocations: 8.5 kB / 0.8565 GB, free: 30.16 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.0001598/0.4162, allocations: 174.8 kB / 0.8567 GB, free: 30.02 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.15e-05/0.4163, allocations: 24.75 kB / 0.8567 GB, free: 30.02 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.505e-05/0.4163, allocations: 27.64 kB / 0.8567 GB, free: 30.01 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.4163, allocations: 2.5 kB / 0.8567 GB, free: 30.01 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.4163, allocations: 0 / 0.8567 GB, free: 30.01 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.4163, allocations: 4.078 kB / 0.8567 GB, free: 30.01 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005029/0.4168, allocations: 0.5359 MB / 0.8573 GB, free: 29.71 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4168, allocations: 2.938 kB / 0.8573 GB, free: 29.71 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.4169, allocations: 35.89 kB / 0.8573 GB, free: 29.71 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.4169, allocations: 2.062 kB / 0.8573 GB, free: 29.71 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.4169, allocations: 13.11 kB / 0.8573 GB, free: 29.71 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.4169, allocations: 0 / 0.8573 GB, free: 29.71 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4169, allocations: 0 / 0.8573 GB, free: 29.71 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004076/0.4173, allocations: 0.4922 MB / 0.8578 GB, free: 29.48 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.837e-05/0.4174, allocations: 22.22 kB / 0.8578 GB, free: 29.48 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3e-05/0.4174, allocations: 9.422 kB / 0.8578 GB, free: 29.48 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.744e-05/0.4175, allocations: 12.33 kB / 0.8578 GB, free: 29.48 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.331e-05/0.4176, allocations: 22.3 kB / 0.8579 GB, free: 29.48 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.4176, allocations: 11.88 kB / 0.8579 GB, free: 29.48 MB / 490.8 MB Notification: Performance of sorting global known variables: time 9.051e-05/0.4177, allocations: 154.5 kB / 0.858 GB, free: 29.41 MB / 490.8 MB Notification: Performance of sort global known variables: time 7e-08/0.4177, allocations: 5.781 kB / 0.858 GB, free: 29.41 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002025/0.4179, allocations: 55 kB / 0.8581 GB, free: 29.41 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 9.27e-05/0.418, allocations: 121.3 kB / 0.8582 GB, free: 29.32 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0003309/0.4183, allocations: 377.7 kB / 0.8585 GB, free: 29.1 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.532e-06/0.4183, allocations: 0 / 0.8585 GB, free: 29.1 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.4184, allocations: 175.6 kB / 0.8587 GB, free: 29 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.4187, allocations: 59.86 kB / 0.8588 GB, free: 29 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008873/0.4196, allocations: 0.7003 MB / 0.8595 GB, free: 28.69 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.533e-05/0.4197, allocations: 126 kB / 0.8596 GB, free: 28.61 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.867e-05/0.4197, allocations: 30.67 kB / 0.8596 GB, free: 28.6 MB / 490.8 MB Notification: Performance of SimCode: time 5.81e-07/0.4197, allocations: 1.25 kB / 0.8596 GB, free: 28.6 MB / 490.8 MB Notification: Performance of Templates: time 0.004004/0.4237, allocations: 2.937 MB / 0.8625 GB, free: 28.4 MB / 490.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 > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BB05_Nalmefene.Nalmefene.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.38925501331687]