Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BA03_Varenicline.Varenicline.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.001068/0.001068, 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.001238/0.001238, allocations: 215.5 kB / 23 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.096/1.096, allocations: 230.6 MB / 256.8 MB, free: 9.566 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.7665/0.7665, allocations: 312.3 MB / 0.6108 GB, free: 97.57 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.N07BA03_Varenicline.Varenicline,tolerance=1e-09,outputFormat="empty",numberOfIntervals=259200,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BA03_Varenicline.Varenicline") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BA03_Varenicline.Varenicline,tolerance=1e-09,outputFormat="empty",numberOfIntervals=259200,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BA03_Varenicline.Varenicline") [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.001614/0.001614, allocations: 76.42 kB / 0.7699 GB, free: 20.13 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1285, allocations: 73.99 MB / 0.8422 GB, free: 10.29 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BA03_Varenicline.Varenicline): time 0.003415/0.1319, allocations: 3.015 MB / 0.8451 GB, free: 7.27 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.006288/0.1382, allocations: 6.633 MB / 0.8516 GB, free: 0.6367 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002674/0.1384, allocations: 4 kB / 0.8516 GB, free: 0.6328 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.1386, allocations: 40.19 kB / 0.8516 GB, free: 0.5938 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002837/0.1389, allocations: 124.2 kB / 0.8517 GB, free: 484 kB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.1392, allocations: 88.5 kB / 0.8518 GB, free: 396 kB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003568/0.1395, allocations: 418.8 kB / 0.8522 GB, free: 15.97 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.1397, allocations: 58.25 kB / 0.8523 GB, free: 15.91 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.1398, allocations: 147.3 kB / 0.8524 GB, free: 15.77 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002221/0.1401, allocations: 151.8 kB / 0.8526 GB, free: 15.62 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 3.461e-05/0.1401, allocations: 32.62 kB / 0.8526 GB, free: 15.59 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 3.972e-05/0.1401, allocations: 32 kB / 0.8526 GB, free: 15.56 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 4.638e-05/0.1402, allocations: 72.28 kB / 0.8527 GB, free: 15.49 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.1403, allocations: 139.9 kB / 0.8528 GB, free: 15.36 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0003182/0.1406, allocations: 362.6 kB / 0.8532 GB, free: 15 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1406, allocations: 0.5938 kB / 0.8532 GB, free: 15 MB / 490.8 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1406, allocations: 0.625 kB / 0.8532 GB, free: 15 MB / 490.8 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.1406, allocations: 0 / 0.8532 GB, free: 15 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008377/0.1415, allocations: 0.6093 MB / 0.8538 GB, free: 14.34 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.1415, allocations: 12.55 kB / 0.8538 GB, free: 14.33 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.379e-05/0.1416, allocations: 37.23 kB / 0.8538 GB, free: 14.3 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.1418, allocations: 221.7 kB / 0.854 GB, free: 14.05 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/0.1418, allocations: 16.81 kB / 0.8541 GB, free: 14.04 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.285e-05/0.1419, allocations: 28.52 kB / 0.8541 GB, free: 14.01 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003675/0.1422, allocations: 305.6 kB / 0.8544 GB, free: 13.69 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.1423, allocations: 4.5 kB / 0.8544 GB, free: 13.68 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.88e-05/0.1423, allocations: 4 kB / 0.8544 GB, free: 13.68 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.1423, allocations: 8.625 kB / 0.8544 GB, free: 13.67 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003126/0.1426, allocations: 253.5 kB / 0.8546 GB, free: 13.41 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007922/0.1434, allocations: 0.6476 MB / 0.8553 GB, free: 12.73 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004316/0.1438, allocations: 272.3 kB / 0.8555 GB, free: 12.45 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.144, allocations: 161.1 kB / 0.8557 GB, free: 12.27 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.144, allocations: 0.6875 kB / 0.8557 GB, free: 12.27 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3027/0.4467, allocations: 362.2 kB / 0.856 GB, free: 21.28 MB / 490.8 MB Notification: Performance of pre-optimization done (n=33): time 4.759e-06/0.4467, allocations: 0 / 0.856 GB, free: 21.28 MB / 490.8 MB Notification: Performance of matching and sorting (n=35): time 0.001551/0.4483, allocations: 1.138 MB / 0.8571 GB, free: 20.78 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.306e-05/0.4483, allocations: 221.2 kB / 0.8573 GB, free: 20.53 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002182/0.4486, allocations: 251 kB / 0.8576 GB, free: 20.43 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.4486, allocations: 40.2 kB / 0.8576 GB, free: 20.39 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.654e-05/0.4487, allocations: 155.3 kB / 0.8578 GB, free: 20.3 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 6.183e-05/0.4487, allocations: 120.2 kB / 0.8579 GB, free: 20.24 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.544e-05/0.4488, allocations: 71.73 kB / 0.858 GB, free: 20.22 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 5.624e-05/0.4489, allocations: 347 kB / 0.8583 GB, free: 19.91 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002306/0.4491, allocations: 228.2 kB / 0.8585 GB, free: 19.8 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002418/0.4493, allocations: 324.2 kB / 0.8588 GB, free: 19.57 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003919/0.4497, allocations: 456.8 kB / 0.8592 GB, free: 19.31 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4497, allocations: 4.406 kB / 0.8593 GB, free: 19.31 MB / 490.8 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0005345/0.4503, allocations: 0.5709 MB / 0.8598 GB, free: 19.07 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.754e-05/0.4503, allocations: 92.02 kB / 0.8599 GB, free: 18.97 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.4503, allocations: 3.656 kB / 0.8599 GB, free: 18.97 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.4503, allocations: 8.594 kB / 0.8599 GB, free: 18.97 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002001/0.4505, allocations: 82.36 kB / 0.86 GB, free: 18.97 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.4506, allocations: 7.688 kB / 0.86 GB, free: 18.97 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.4507, allocations: 25.59 kB / 0.86 GB, free: 18.97 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.07e-05/0.4507, allocations: 14.5 kB / 0.86 GB, free: 18.97 MB / 490.8 MB Warning: Assuming fixed start value for the following 2 variables: periodicDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real periodicDose.route.variableDose.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: 12 * Number of states: 0 () * Number of discrete variables: 21 (central.Cmin,$PRE.central.Cmin,central.Cmax,$PRE.central.Cmax,periodicDose.route.absorptionLumen.Cmin,$PRE.periodicDose.route.absorptionLumen.Cmin,periodicDose.route.absorptionLumen.Cmax,$PRE.periodicDose.route.absorptionLumen.Cmax,periodicDose.pulse.count,$PRE.periodicDose.pulse.count,periodicDose.pulse.T_start,$PRE.periodicDose.pulse.T_start,periodicDose.route.absorptionLumen.rising,$PRE.periodicDose.route.absorptionLumen.rising,central.rising,$PRE.central.rising,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 3 * 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.0002302/0.4509, allocations: 245.3 kB / 0.8603 GB, free: 18.79 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.205e-05/0.451, allocations: 31.19 kB / 0.8603 GB, free: 18.78 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.496e-05/0.451, allocations: 30.47 kB / 0.8603 GB, free: 18.77 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.451, allocations: 10.88 kB / 0.8603 GB, free: 18.77 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.451, allocations: 1.969 kB / 0.8603 GB, free: 18.77 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.451, allocations: 0 / 0.8603 GB, free: 18.77 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000797/0.4518, allocations: 0.8115 MB / 0.8611 GB, free: 18.41 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.4518, allocations: 3.875 kB / 0.8611 GB, free: 18.41 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001731/0.452, allocations: 61.36 kB / 0.8612 GB, free: 18.41 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.209e-06/0.452, allocations: 2.062 kB / 0.8612 GB, free: 18.41 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.328e-05/0.452, allocations: 9.547 kB / 0.8612 GB, free: 18.41 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.452, allocations: 2.062 kB / 0.8612 GB, free: 18.41 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4521, allocations: 4.547 kB / 0.8612 GB, free: 18.4 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006909/0.4527, allocations: 0.7698 MB / 0.862 GB, free: 18.06 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 9.606e-05/0.4528, allocations: 54 kB / 0.862 GB, free: 18.04 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.124e-05/0.4529, allocations: 15.55 kB / 0.862 GB, free: 18.04 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.453, allocations: 16.56 kB / 0.862 GB, free: 18.04 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.965e-05/0.4531, allocations: 35.7 kB / 0.8621 GB, free: 18.04 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.4531, allocations: 9.219 kB / 0.8621 GB, free: 18.04 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001407/0.4533, allocations: 185.8 kB / 0.8623 GB, free: 17.96 MB / 490.8 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4533, allocations: 0.625 kB / 0.8623 GB, free: 17.96 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002617/0.4535, allocations: 86.81 kB / 0.8623 GB, free: 17.96 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass,periodicDose.route.variableDose.TotalCumulativeMass,periodicDose.route.absorptionLumen.C,periodicDose.route.absorptionLumen.AUC) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,central.Cmax,central.Cmin,central.rising,periodicDose.route.absorptionLumen.Cmax,periodicDose.route.absorptionLumen.Cmin,periodicDose.route.absorptionLumen.rising,periodicDose.pulse.T_start,periodicDose.pulse.count) * Number of discrete states: 11 (periodicDose.pulse.count,central.Cmin,$whenCondition5,central.Cmax,$whenCondition4,central.rising,periodicDose.route.absorptionLumen.Cmin,$whenCondition3,periodicDose.route.absorptionLumen.Cmax,$whenCondition2,periodicDose.route.absorptionLumen.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 2 * 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.000126/0.4536, allocations: 125.4 kB / 0.8625 GB, free: 17.87 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0005141/0.4542, allocations: 0.5963 MB / 0.863 GB, free: 17.52 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4542, allocations: 0 / 0.863 GB, free: 17.52 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002311/0.4544, allocations: 315.6 kB / 0.8634 GB, free: 17.33 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003993/0.4548, allocations: 96.22 kB / 0.8634 GB, free: 17.33 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.4562, allocations: 1.064 MB / 0.8645 GB, free: 16.79 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001264/0.4563, allocations: 162.6 kB / 0.8646 GB, free: 16.71 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.491e-05/0.4564, allocations: 33 kB / 0.8647 GB, free: 16.7 MB / 490.8 MB Notification: Performance of SimCode: time 7.31e-07/0.4564, allocations: 0 / 0.8647 GB, free: 16.7 MB / 490.8 MB Notification: Performance of Templates: time 0.007294/0.4637, allocations: 4.348 MB / 0.8689 GB, free: 16.3 MB / 490.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BA03_Varenicline.Varenicline.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BA03_Varenicline.Varenicline.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BA03_Varenicline.Varenicline.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BA03_Varenicline.Varenicline.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BA03_Varenicline.Varenicline.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BA03_Varenicline.Varenicline > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BA03_Varenicline.Varenicline.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.504413963295519]