Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_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.001821/0.001821, allocations: 84.44 kB / 19.17 MB, free: 0.7383 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.001999/0.001999, allocations: 173.9 kB / 22.46 MB, free: 2.102 MB / 18.57 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.595/1.595, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.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.396/1.396, allocations: 292.9 MB / 0.5392 GB, free: 49.8 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.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 0 / 0.6999 GB, free: 8.598 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.022e-05/3.247e-05, allocations: 3.688 kB / 0.6999 GB, free: 8.594 MB / 410.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference): time 0.00409/0.004122, allocations: 2.3 MB / 0.7021 GB, free: 6.277 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.007739/0.01186, allocations: 6.541 MB / 0.7085 GB, free: 15.73 MB / 426.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002468/0.01211, allocations: 0 / 0.7085 GB, free: 15.73 MB / 426.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.01228, allocations: 27.72 kB / 0.7085 GB, free: 15.7 MB / 426.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0003881/0.01267, allocations: 79.28 kB / 0.7086 GB, free: 15.62 MB / 426.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003614/0.01303, allocations: 51.92 kB / 0.7087 GB, free: 15.57 MB / 426.8 MB Notification: Performance of NFFlatten.flatten: time 0.0005212/0.01355, allocations: 266.6 kB / 0.7089 GB, free: 15.31 MB / 426.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002323/0.01379, allocations: 36.5 kB / 0.7089 GB, free: 15.28 MB / 426.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003251/0.01411, allocations: 147.6 kB / 0.7091 GB, free: 15.13 MB / 426.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000323/0.01444, allocations: 83.78 kB / 0.7092 GB, free: 15.05 MB / 426.8 MB Notification: Performance of NFPackage.collectConstants: time 5.404e-05/0.01449, allocations: 16 kB / 0.7092 GB, free: 15.04 MB / 426.8 MB Notification: Performance of NFFlatten.collectFunctions: time 5.277e-05/0.01454, allocations: 16 kB / 0.7092 GB, free: 15.02 MB / 426.8 MB Notification: Performance of NFScalarize.scalarize: time 8.93e-05/0.01463, allocations: 47.77 kB / 0.7092 GB, free: 14.97 MB / 426.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001785/0.01481, allocations: 71.83 kB / 0.7093 GB, free: 14.9 MB / 426.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0004999/0.01531, allocations: 195.4 kB / 0.7095 GB, free: 14.71 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.01532, allocations: 0 / 0.7095 GB, free: 14.71 MB / 426.8 MB Notification: Performance of FrontEnd: time 3.567e-06/0.01532, allocations: 0 / 0.7095 GB, free: 14.71 MB / 426.8 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.01533, allocations: 0 / 0.7095 GB, free: 14.71 MB / 426.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.001426/0.01675, allocations: 0.489 MB / 0.71 GB, free: 14.18 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.018e-05/0.01681, allocations: 8.031 kB / 0.71 GB, free: 14.17 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.01692, allocations: 24.8 kB / 0.71 GB, free: 14.14 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.01731, allocations: 186.3 kB / 0.7102 GB, free: 13.93 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.01734, allocations: 12.61 kB / 0.7102 GB, free: 13.92 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.017e-05/0.01739, allocations: 12.38 kB / 0.7102 GB, free: 13.91 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005503/0.01794, allocations: 198.5 kB / 0.7104 GB, free: 13.7 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.01796, allocations: 3.953 kB / 0.7104 GB, free: 13.7 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.673e-05/0.01799, allocations: 8 kB / 0.7104 GB, free: 13.69 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.018, allocations: 4 kB / 0.7104 GB, free: 13.69 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005064/0.01851, allocations: 146.2 kB / 0.7106 GB, free: 13.54 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.01966, allocations: 493.4 kB / 0.711 GB, free: 13.02 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000698/0.02036, allocations: 168.1 kB / 0.7112 GB, free: 12.84 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002892/0.02065, allocations: 106.6 kB / 0.7113 GB, free: 12.73 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.02067, allocations: 3.938 kB / 0.7113 GB, free: 12.73 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005024/0.02117, allocations: 225.2 kB / 0.7115 GB, free: 12.48 MB / 426.8 MB Notification: Performance of pre-optimization done (n=20): time 2.024e-06/0.02117, allocations: 4 kB / 0.7115 GB, free: 12.47 MB / 426.8 MB Notification: Performance of matching and sorting (n=21): time 0.002109/0.02328, allocations: 0.6984 MB / 0.7122 GB, free: 11.71 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001531/0.02344, allocations: 136.5 kB / 0.7123 GB, free: 11.55 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/0.02378, allocations: 220 kB / 0.7125 GB, free: 11.32 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 4.647e-05/0.02382, allocations: 33.7 kB / 0.7126 GB, free: 11.29 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.02396, allocations: 128.5 kB / 0.7127 GB, free: 11.16 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 9.329e-05/0.02405, allocations: 71.41 kB / 0.7128 GB, free: 11.09 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.02418, allocations: 53.7 kB / 0.7128 GB, free: 11.03 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.000239/0.02442, allocations: 338.8 kB / 0.7131 GB, free: 10.69 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003556/0.02477, allocations: 145 kB / 0.7133 GB, free: 10.53 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004181/0.02519, allocations: 221.3 kB / 0.7135 GB, free: 10.27 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000636/0.02583, allocations: 288.7 kB / 0.7138 GB, free: 9.941 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.02583, allocations: 4.031 kB / 0.7138 GB, free: 9.938 MB / 426.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009018/0.02673, allocations: 390.2 kB / 0.7141 GB, free: 9.527 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.287e-05/0.02682, allocations: 67.39 kB / 0.7142 GB, free: 9.449 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.02682, allocations: 0 / 0.7142 GB, free: 9.449 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.02685, allocations: 4 kB / 0.7142 GB, free: 9.445 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002976/0.02715, allocations: 56.06 kB / 0.7143 GB, free: 9.391 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.02716, allocations: 4 kB / 0.7143 GB, free: 9.387 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002571/0.02742, allocations: 19.98 kB / 0.7143 GB, free: 9.367 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.498e-05/0.02745, allocations: 12 kB / 0.7143 GB, free: 9.355 MB / 426.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.0003038/0.02775, allocations: 179.6 kB / 0.7145 GB, free: 9.168 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.874e-05/0.0278, allocations: 15.91 kB / 0.7145 GB, free: 9.152 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.807e-05/0.02788, allocations: 29.95 kB / 0.7145 GB, free: 9.121 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.02789, allocations: 7.938 kB / 0.7145 GB, free: 9.113 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.0279, allocations: 7.875 kB / 0.7145 GB, free: 9.105 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.0279, allocations: 0 / 0.7145 GB, free: 9.105 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001177/0.02908, allocations: 0.5368 MB / 0.715 GB, free: 8.52 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.02908, allocations: 0 / 0.715 GB, free: 8.52 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002613/0.02934, allocations: 35.91 kB / 0.7151 GB, free: 8.484 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.02934, allocations: 0 / 0.7151 GB, free: 8.484 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.903e-05/0.02937, allocations: 8 kB / 0.7151 GB, free: 8.477 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.428e-06/0.02938, allocations: 7.984 kB / 0.7151 GB, free: 8.469 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.02938, allocations: 4 kB / 0.7151 GB, free: 8.465 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.0305, allocations: 0.4915 MB / 0.7156 GB, free: 7.945 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.662e-05/0.03055, allocations: 23.89 kB / 0.7156 GB, free: 7.922 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.351e-05/0.03061, allocations: 4 kB / 0.7156 GB, free: 7.918 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.03084, allocations: 15.98 kB / 0.7156 GB, free: 7.902 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.03094, allocations: 19.97 kB / 0.7156 GB, free: 7.883 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.406e-05/0.03097, allocations: 7.984 kB / 0.7156 GB, free: 7.875 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.0002414/0.03121, allocations: 167.3 kB / 0.7158 GB, free: 7.711 MB / 426.8 MB Notification: Performance of sort global known variables: time 8e-08/0.03121, allocations: 3.938 kB / 0.7158 GB, free: 7.707 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.000451/0.03166, allocations: 56 kB / 0.7159 GB, free: 7.652 MB / 426.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.0001977/0.03186, allocations: 118.3 kB / 0.716 GB, free: 7.531 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.0008424/0.0327, allocations: 375.6 kB / 0.7163 GB, free: 7.121 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.0327, allocations: 448 / 0.7163 GB, free: 7.121 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003753/0.03308, allocations: 177 kB / 0.7165 GB, free: 6.93 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006309/0.03371, allocations: 63.84 kB / 0.7166 GB, free: 6.867 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.03535, allocations: 0.5703 MB / 0.7171 GB, free: 6.266 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001875/0.03554, allocations: 133.6 kB / 0.7172 GB, free: 6.113 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.0001333/0.03568, allocations: 21.94 kB / 0.7173 GB, free: 6.09 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.542e-05/0.03576, allocations: 24.5 kB / 0.7173 GB, free: 6.066 MB / 426.8 MB Notification: Performance of SimCode: time 7.71e-07/0.03576, allocations: 4 kB / 0.7173 GB, free: 6.062 MB / 426.8 MB Notification: Performance of Templates: time 0.274/0.3098, allocations: 3.316 MB / 0.7205 GB, free: 37.02 MB / 426.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.094694413011894]