Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06B_PsychostimulantsAgentsUsedForAdhdAndNootropics.N06BA07_Modafinil.Modafinil.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.001078/0.001078, allocations: 108.3 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.001159/0.001159, allocations: 216.4 kB / 23 MB, free: 2.961 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.9576/0.9576, allocations: 230.6 MB / 256.8 MB, free: 9.602 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.6736/0.6736, allocations: 312.3 MB / 0.6108 GB, free: 96.96 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.N06B_PsychostimulantsAgentsUsedForAdhdAndNootropics.N06BA07_Modafinil.Modafinil,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06B_PsychostimulantsAgentsUsedForAdhdAndNootropics.N06BA07_Modafinil.Modafinil") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N06B_PsychostimulantsAgentsUsedForAdhdAndNootropics.N06BA07_Modafinil.Modafinil,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06B_PsychostimulantsAgentsUsedForAdhdAndNootropics.N06BA07_Modafinil.Modafinil") [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.001423/0.001423, allocations: 73.98 kB / 0.7699 GB, free: 19.62 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1171, allocations: 73.99 MB / 0.8422 GB, free: 9.754 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N06B_PsychostimulantsAgentsUsedForAdhdAndNootropics.N06BA07_Modafinil.Modafinil): time 0.003482/0.1206, allocations: 2.705 MB / 0.8448 GB, free: 7.051 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.006557/0.1271, allocations: 6.61 MB / 0.8513 GB, free: 452 kB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001955/0.1273, allocations: 4.562 kB / 0.8513 GB, free: 448 kB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.1275, allocations: 40.22 kB / 0.8513 GB, free: 408 kB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002823/0.1277, allocations: 120.3 kB / 0.8514 GB, free: 288 kB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002643/0.128, allocations: 68.36 kB / 0.8515 GB, free: 220 kB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003937/0.1284, allocations: 382.7 kB / 0.8519 GB, free: 15.84 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.1286, allocations: 52.89 kB / 0.8519 GB, free: 15.79 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.1288, allocations: 140 kB / 0.8521 GB, free: 15.65 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002365/0.129, allocations: 139.9 kB / 0.8522 GB, free: 15.52 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 3.949e-05/0.129, allocations: 24.59 kB / 0.8522 GB, free: 15.49 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 4.188e-05/0.1291, allocations: 24 kB / 0.8522 GB, free: 15.47 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 4.735e-05/0.1291, allocations: 60.44 kB / 0.8523 GB, free: 15.41 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.1293, allocations: 139.4 kB / 0.8524 GB, free: 15.27 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0005668/0.1298, allocations: 287.3 kB / 0.8527 GB, free: 14.99 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1298, allocations: 8.547 kB / 0.8527 GB, free: 14.98 MB / 490.8 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1298, allocations: 0 / 0.8527 GB, free: 14.98 MB / 490.8 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.1298, allocations: 0.5 kB / 0.8527 GB, free: 14.98 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0009134/0.1307, allocations: 0.5942 MB / 0.8533 GB, free: 14.34 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.1308, allocations: 8.656 kB / 0.8533 GB, free: 14.33 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.57e-05/0.1309, allocations: 33.34 kB / 0.8533 GB, free: 14.3 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002737/0.1311, allocations: 209.1 kB / 0.8535 GB, free: 14.07 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.1312, allocations: 17.34 kB / 0.8535 GB, free: 14.05 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.435e-05/0.1312, allocations: 24.59 kB / 0.8536 GB, free: 14.03 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004022/0.1316, allocations: 292.4 kB / 0.8539 GB, free: 13.72 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.1316, allocations: 3.953 kB / 0.8539 GB, free: 13.72 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.1316, allocations: 12.59 kB / 0.8539 GB, free: 13.71 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.964e-06/0.1316, allocations: 4.531 kB / 0.8539 GB, free: 13.7 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003366/0.132, allocations: 229.2 kB / 0.8541 GB, free: 13.47 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009679/0.1329, allocations: 0.6857 MB / 0.8548 GB, free: 12.74 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004454/0.1334, allocations: 242.6 kB / 0.855 GB, free: 12.48 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.1336, allocations: 145.6 kB / 0.8551 GB, free: 12.32 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.355e-05/0.1336, allocations: 4 kB / 0.8551 GB, free: 12.32 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2412/0.3748, allocations: 351.9 kB / 0.8555 GB, free: 21.26 MB / 490.8 MB Notification: Performance of pre-optimization done (n=32): time 3.357e-06/0.3748, allocations: 0.875 kB / 0.8555 GB, free: 21.26 MB / 490.8 MB Notification: Performance of matching and sorting (n=34): time 0.001349/0.3761, allocations: 1.08 MB / 0.8565 GB, free: 20.77 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/0.3762, allocations: 221.1 kB / 0.8567 GB, free: 20.52 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.3763, allocations: 251.3 kB / 0.857 GB, free: 20.41 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.3764, allocations: 37.38 kB / 0.857 GB, free: 20.38 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.668e-05/0.3764, allocations: 157.4 kB / 0.8572 GB, free: 20.29 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.562e-05/0.3765, allocations: 113 kB / 0.8573 GB, free: 20.23 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.811e-05/0.3766, allocations: 73.3 kB / 0.8573 GB, free: 20.21 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 4.583e-05/0.3766, allocations: 342.6 kB / 0.8577 GB, free: 19.9 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.3768, allocations: 209.3 kB / 0.8579 GB, free: 19.79 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.377, allocations: 324 kB / 0.8582 GB, free: 19.56 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000317/0.3773, allocations: 434.1 kB / 0.8586 GB, free: 19.3 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3773, allocations: 0 / 0.8586 GB, free: 19.3 MB / 490.8 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00045/0.3778, allocations: 0.5502 MB / 0.8591 GB, free: 19.06 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.693e-05/0.3778, allocations: 88.47 kB / 0.8592 GB, free: 18.97 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3778, allocations: 5 kB / 0.8592 GB, free: 18.97 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.3778, allocations: 6.062 kB / 0.8592 GB, free: 18.97 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001848/0.378, allocations: 78.12 kB / 0.8593 GB, free: 18.97 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.378, allocations: 8.312 kB / 0.8593 GB, free: 18.97 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.3782, allocations: 27.31 kB / 0.8593 GB, free: 18.96 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.3782, allocations: 15.97 kB / 0.8593 GB, free: 18.96 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: 12 * Number of states: 0 () * Number of discrete variables: 21 (peripheral.Cmin,$PRE.peripheral.Cmin,peripheral.Cmax,$PRE.peripheral.Cmax,central.Cmin,$PRE.central.Cmin,central.Cmax,$PRE.central.Cmax,peripheral.rising,$PRE.peripheral.rising,periodicDose.pulse.count,$PRE.periodicDose.pulse.count,periodicDose.pulse.T_start,$PRE.periodicDose.pulse.T_start,central.rising,$PRE.central.rising,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 46 * 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.0001685/0.3783, allocations: 224.1 kB / 0.8596 GB, free: 18.79 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.723e-05/0.3784, allocations: 40 kB / 0.8596 GB, free: 18.77 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.553e-05/0.3784, allocations: 25.81 kB / 0.8596 GB, free: 18.76 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.3784, allocations: 3.594 kB / 0.8596 GB, free: 18.76 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3784, allocations: 1.156 kB / 0.8596 GB, free: 18.76 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3784, allocations: 7.781 kB / 0.8596 GB, free: 18.76 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006857/0.3791, allocations: 0.7533 MB / 0.8604 GB, free: 18.4 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3791, allocations: 0 / 0.8604 GB, free: 18.4 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001523/0.3793, allocations: 60.91 kB / 0.8604 GB, free: 18.4 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.3793, allocations: 4.344 kB / 0.8604 GB, free: 18.4 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.3793, allocations: 8.578 kB / 0.8604 GB, free: 18.4 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.3793, allocations: 11.11 kB / 0.8604 GB, free: 18.4 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3793, allocations: 1.875 kB / 0.8605 GB, free: 18.4 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005705/0.3799, allocations: 0.725 MB / 0.8612 GB, free: 18.05 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.429e-05/0.3799, allocations: 25.44 kB / 0.8612 GB, free: 18.04 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.611e-05/0.3799, allocations: 11.39 kB / 0.8612 GB, free: 18.04 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.38, allocations: 22.19 kB / 0.8612 GB, free: 18.04 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.262e-05/0.3801, allocations: 29.84 kB / 0.8612 GB, free: 18.04 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.3801, allocations: 12.78 kB / 0.8613 GB, free: 18.04 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001106/0.3802, allocations: 180.1 kB / 0.8614 GB, free: 17.95 MB / 490.8 MB Notification: Performance of sort global known variables: time 5e-08/0.3802, allocations: 0.7188 kB / 0.8614 GB, free: 17.95 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002253/0.3805, allocations: 84.75 kB / 0.8615 GB, free: 17.95 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass,peripheral.C,peripheral.AUC) * Number of discrete variables: 13 ($whenCondition5,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,central.Cmax,central.Cmin,central.rising,periodicDose.pulse.T_start,periodicDose.pulse.count,peripheral.Cmax,peripheral.Cmin,peripheral.rising) * Number of discrete states: 11 (periodicDose.pulse.count,peripheral.Cmin,$whenCondition4,peripheral.Cmax,$whenCondition3,peripheral.rising,central.Cmin,$whenCondition2,central.Cmax,$whenCondition1,central.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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.0001058/0.3806, allocations: 127 kB / 0.8616 GB, free: 17.87 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0004562/0.381, allocations: 0.5654 MB / 0.8622 GB, free: 17.52 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.381, allocations: 0.5938 kB / 0.8622 GB, free: 17.52 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001898/0.3812, allocations: 305.2 kB / 0.8625 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.000352/0.3816, allocations: 88.88 kB / 0.8626 GB, free: 17.33 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.3827, allocations: 0.9681 MB / 0.8635 GB, free: 16.84 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001171/0.3828, allocations: 157.8 kB / 0.8637 GB, free: 16.76 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.703e-05/0.3829, allocations: 28.94 kB / 0.8637 GB, free: 16.75 MB / 490.8 MB Notification: Performance of SimCode: time 6.82e-07/0.3829, allocations: 0 / 0.8637 GB, free: 16.75 MB / 490.8 MB Notification: Performance of Templates: time 0.006561/0.3895, allocations: 4.023 MB / 0.8676 GB, free: 16.41 MB / 490.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06B_PsychostimulantsAgentsUsedForAdhdAndNootropics.N06BA07_Modafinil.Modafinil.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06B_PsychostimulantsAgentsUsedForAdhdAndNootropics.N06BA07_Modafinil.Modafinil.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06B_PsychostimulantsAgentsUsedForAdhdAndNootropics.N06BA07_Modafinil.Modafinil.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06B_PsychostimulantsAgentsUsedForAdhdAndNootropics.N06BA07_Modafinil.Modafinil.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06B_PsychostimulantsAgentsUsedForAdhdAndNootropics.N06BA07_Modafinil.Modafinil.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06B_PsychostimulantsAgentsUsedForAdhdAndNootropics.N06BA07_Modafinil.Modafinil > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06B_PsychostimulantsAgentsUsedForAdhdAndNootropics.N06BA07_Modafinil.Modafinil.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.078733297996223]