Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone.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.0008888/0.0008888, allocations: 84.17 kB / 9.886 MB, free: 0.8008 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009699/0.001859, allocations: 435.8 kB / 10.31 MB, free: 384 kB / 10.45 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.0009602/0.0009602, allocations: 157.1 kB / 11.2 MB, free: 2.973 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001014/0.001975, allocations: 463.6 kB / 11.65 MB, free: 2.516 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.983/0.983, allocations: 177.2 MB / 189.5 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.102/1.085, allocations: 53.66 MB / 243.2 MB, free: 15.57 MB / 250.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.8874/0.8874, allocations: 291.2 MB / 0.5226 GB, free: 52.93 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03071/0.9181, allocations: 21.05 MB / 0.5431 GB, free: 31.95 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.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.062e-06/1.062e-06, allocations: 0 / 0.5445 GB, free: 30.52 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.621e-05/1.727e-05, allocations: 2.312 kB / 0.5445 GB, free: 30.51 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone): time 0.003406/0.003423, allocations: 2.943 MB / 0.5474 GB, free: 27.55 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.004304/0.007727, allocations: 6.774 MB / 0.554 GB, free: 20.77 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.007845, allocations: 4 kB / 0.554 GB, free: 20.76 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 8.63e-05/0.007931, allocations: 43.58 kB / 0.5541 GB, free: 20.72 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000173/0.008104, allocations: 119 kB / 0.5542 GB, free: 20.6 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002162/0.00832, allocations: 71.84 kB / 0.5543 GB, free: 20.53 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002171/0.008538, allocations: 401.8 kB / 0.5546 GB, free: 20.14 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.008651, allocations: 58.84 kB / 0.5547 GB, free: 20.08 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.008842, allocations: 246.6 kB / 0.5549 GB, free: 19.84 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.009012, allocations: 127.6 kB / 0.5551 GB, free: 19.72 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.177e-05/0.009044, allocations: 24 kB / 0.5551 GB, free: 19.7 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.115e-05/0.009075, allocations: 24 kB / 0.5551 GB, free: 19.67 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.104e-05/0.009126, allocations: 39.81 kB / 0.5551 GB, free: 19.63 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.913e-05/0.009205, allocations: 95.81 kB / 0.5552 GB, free: 19.54 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001992/0.009404, allocations: 199.3 kB / 0.5554 GB, free: 19.34 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.389e-05/0.009418, allocations: 3.938 kB / 0.5554 GB, free: 19.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.009419, allocations: 0 / 0.5554 GB, free: 19.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.00943, allocations: 0 / 0.5554 GB, free: 19.34 MB / 410.7 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.0005996/0.01003, allocations: 0.6321 MB / 0.556 GB, free: 18.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.01006, allocations: 8.031 kB / 0.556 GB, free: 18.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.923e-05/0.01011, allocations: 36.91 kB / 0.5561 GB, free: 18.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.01027, allocations: 193.5 kB / 0.5563 GB, free: 18.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.01028, allocations: 16.75 kB / 0.5563 GB, free: 18.39 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.708e-05/0.01031, allocations: 28.33 kB / 0.5563 GB, free: 18.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.0105, allocations: 248 kB / 0.5565 GB, free: 18.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.01051, allocations: 4 kB / 0.5566 GB, free: 18.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.01052, allocations: 12 kB / 0.5566 GB, free: 18.08 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.01053, allocations: 4 kB / 0.5566 GB, free: 18.08 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001006/0.01063, allocations: 133.8 kB / 0.5567 GB, free: 17.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00051/0.01114, allocations: 0.5077 MB / 0.5572 GB, free: 17.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001675/0.01131, allocations: 164.8 kB / 0.5573 GB, free: 17.22 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.737e-05/0.01135, allocations: 96.48 kB / 0.5574 GB, free: 17.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.138e-05/0.01136, allocations: 7.938 kB / 0.5574 GB, free: 17.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001604/0.01152, allocations: 323.4 kB / 0.5578 GB, free: 16.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=32): time 1.383e-06/0.01153, allocations: 0 / 0.5578 GB, free: 16.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=34): time 0.000643/0.01217, allocations: 0.8092 MB / 0.5585 GB, free: 15.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.788e-05/0.01221, allocations: 217.6 kB / 0.5588 GB, free: 15.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.577e-05/0.0123, allocations: 229 kB / 0.559 GB, free: 15.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.01232, allocations: 37.69 kB / 0.559 GB, free: 15.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.497e-05/0.01235, allocations: 133.3 kB / 0.5591 GB, free: 15.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.17e-05/0.01239, allocations: 119 kB / 0.5592 GB, free: 15.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.503e-05/0.01245, allocations: 70.16 kB / 0.5593 GB, free: 14.97 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.2781/0.2905, allocations: 346.3 kB / 0.5596 GB, free: 79.5 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002133/0.2908, allocations: 141.3 kB / 0.5598 GB, free: 79.4 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.2909, allocations: 255.3 kB / 0.56 GB, free: 79.17 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00022/0.2911, allocations: 339.4 kB / 0.5603 GB, free: 78.92 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.2911, allocations: 1.875 kB / 0.5603 GB, free: 78.92 MB / 410.8 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003598/0.2915, allocations: 386.3 kB / 0.5607 GB, free: 78.7 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.885e-05/0.2915, allocations: 92.03 kB / 0.5608 GB, free: 78.6 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.2915, allocations: 3.844 kB / 0.5608 GB, free: 78.6 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.2915, allocations: 5.562 kB / 0.5608 GB, free: 78.6 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003489/0.2919, allocations: 109.9 kB / 0.5609 GB, free: 78.6 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.2919, allocations: 6.594 kB / 0.5609 GB, free: 78.6 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.2921, allocations: 22.34 kB / 0.5609 GB, free: 78.6 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.2921, allocations: 10.47 kB / 0.561 GB, free: 78.6 MB / 410.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.000169/0.2922, allocations: 213.7 kB / 0.5612 GB, free: 78.42 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.012e-05/0.2923, allocations: 36.48 kB / 0.5612 GB, free: 78.42 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.162e-05/0.2923, allocations: 35.48 kB / 0.5612 GB, free: 78.41 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.2923, allocations: 5.094 kB / 0.5612 GB, free: 78.41 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.145e-06/0.2923, allocations: 0 / 0.5612 GB, free: 78.41 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.2923, allocations: 3.516 kB / 0.5612 GB, free: 78.41 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005407/0.2929, allocations: 0.5153 MB / 0.5617 GB, free: 78.11 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2929, allocations: 4.438 kB / 0.5617 GB, free: 78.11 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002468/0.2931, allocations: 74.27 kB / 0.5618 GB, free: 78.1 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.518e-05/0.2932, allocations: 24.28 kB / 0.5618 GB, free: 78.1 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.2932, allocations: 1.781 kB / 0.5618 GB, free: 78.1 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.179e-05/0.2932, allocations: 14.59 kB / 0.5619 GB, free: 78.1 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.2932, allocations: 1.125 kB / 0.5619 GB, free: 78.1 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2932, allocations: 1.125 kB / 0.5619 GB, free: 78.1 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000386/0.2936, allocations: 0.5168 MB / 0.5624 GB, free: 77.77 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.006e-05/0.2936, allocations: 11.39 kB / 0.5624 GB, free: 77.77 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.2938, allocations: 14.97 kB / 0.5624 GB, free: 77.77 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.677e-05/0.2938, allocations: 28.73 kB / 0.5624 GB, free: 77.77 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.296e-05/0.2938, allocations: 10.25 kB / 0.5624 GB, free: 77.77 MB / 410.8 MB Notification: Performance of sorting global known variables: time 8.833e-05/0.2939, allocations: 81.03 kB / 0.5625 GB, free: 77.76 MB / 410.8 MB Notification: Performance of sort global known variables: time 7e-08/0.2939, allocations: 0 / 0.5625 GB, free: 77.76 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.0002983/0.2942, allocations: 84.72 kB / 0.5626 GB, free: 77.76 MB / 410.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.0001093/0.2943, allocations: 104.8 kB / 0.5627 GB, free: 77.69 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.0003225/0.2947, allocations: 489.2 kB / 0.5631 GB, free: 77.33 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 5.77e-06/0.2947, allocations: 2.938 kB / 0.5632 GB, free: 77.33 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001567/0.2948, allocations: 263.8 kB / 0.5634 GB, free: 77.14 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.2952, allocations: 128.6 kB / 0.5635 GB, free: 77.13 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.3056, allocations: 0.7434 MB / 0.5643 GB, free: 76.77 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.352e-05/0.3057, allocations: 97.94 kB / 0.5643 GB, free: 76.7 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.0001395/0.3058, allocations: 31.78 kB / 0.5644 GB, free: 76.7 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.3061, allocations: 153.3 kB / 0.5645 GB, free: 76.66 MB / 410.8 MB Notification: Performance of SimCode: time 6.11e-07/0.3061, allocations: 1.125 kB / 0.5645 GB, free: 76.66 MB / 410.8 MB Notification: Performance of Templates: time 0.008393/0.3145, allocations: 5.258 MB / 0.5697 GB, free: 75.59 MB / 410.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.891987832263112]