Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.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.00147/0.00147, allocations: 88.23 kB / 19.42 MB, free: 492 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.001704/0.001704, allocations: 169 kB / 22.72 MB, free: 1.824 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.032/1.032, allocations: 177.1 MB / 203.1 MB, free: 5.367 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 25.9.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 25.9.0/Examples/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: Paracetamol_Experiment Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 25.9.0/package.mo): time 1.697/1.697, allocations: 273.5 MB / 0.5205 GB, free: 14.81 MB / 458.7 MB " [Timeout remaining time 178] Using package Pharmacolibrary with version 25.09 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 25.9.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.Examples.PKOneCompartmentModelPeriodic,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic") translateModel(Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.173e-06/1.173e-06, allocations: 0 / 0.6462 GB, free: 38.68 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.168e-05/2.285e-05, allocations: 6.141 kB / 0.6462 GB, free: 38.67 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic): time 0.002157/0.00218, allocations: 2.048 MB / 0.6482 GB, free: 37.34 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0007253/0.002906, allocations: 0.5439 MB / 0.6488 GB, free: 36.98 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.112e-05/0.002977, allocations: 1.625 kB / 0.6488 GB, free: 36.98 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.00308, allocations: 17.89 kB / 0.6488 GB, free: 36.97 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.003204, allocations: 49.09 kB / 0.6488 GB, free: 36.95 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001455/0.00335, allocations: 44.17 kB / 0.6489 GB, free: 36.93 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0001974/0.003547, allocations: 192.4 kB / 0.649 GB, free: 36.88 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.003658, allocations: 31.98 kB / 0.6491 GB, free: 36.85 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.003773, allocations: 108.1 kB / 0.6492 GB, free: 36.81 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.942e-05/0.003873, allocations: 58.45 kB / 0.6492 GB, free: 36.79 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 2.775e-05/0.003901, allocations: 16.59 kB / 0.6492 GB, free: 36.79 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.166e-05/0.003922, allocations: 13.22 kB / 0.6493 GB, free: 36.79 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 2.907e-05/0.003951, allocations: 34.77 kB / 0.6493 GB, free: 36.77 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 5.817e-05/0.004009, allocations: 54.27 kB / 0.6493 GB, free: 36.74 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.004162, allocations: 124.2 kB / 0.6495 GB, free: 36.68 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.004164, allocations: 0 / 0.6495 GB, free: 36.68 MB / 0.5262 GB Notification: Performance of FrontEnd: time 1.032e-06/0.004165, allocations: 0 / 0.6495 GB, free: 36.68 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 4.479e-06/0.00417, allocations: 1.281 kB / 0.6495 GB, free: 36.68 MB / 0.5262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0005134/0.004683, allocations: 0.5179 MB / 0.65 GB, free: 36.19 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.004717, allocations: 7.969 kB / 0.65 GB, free: 36.19 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.302e-05/0.00477, allocations: 27.47 kB / 0.65 GB, free: 36.18 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.004909, allocations: 158.5 kB / 0.6502 GB, free: 36.02 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.00493, allocations: 14.78 kB / 0.6502 GB, free: 36.02 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.193e-05/0.004962, allocations: 13.47 kB / 0.6502 GB, free: 36.02 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001844/0.005147, allocations: 145.1 kB / 0.6503 GB, free: 35.92 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.005159, allocations: 3.938 kB / 0.6503 GB, free: 35.92 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.005172, allocations: 2.312 kB / 0.6503 GB, free: 35.92 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/0.00518, allocations: 1.906 kB / 0.6503 GB, free: 35.92 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001016/0.005282, allocations: 87.23 kB / 0.6504 GB, free: 35.88 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004208/0.005702, allocations: 400.8 kB / 0.6508 GB, free: 35.54 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001396/0.005842, allocations: 117.8 kB / 0.6509 GB, free: 35.46 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.408e-05/0.005896, allocations: 62.8 kB / 0.651 GB, free: 35.41 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.588e-06/0.005906, allocations: 4.812 kB / 0.651 GB, free: 35.41 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001633/0.006069, allocations: 202.8 kB / 0.6512 GB, free: 35.25 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=20): time 1.493e-06/0.00607, allocations: 0 / 0.6512 GB, free: 35.25 MB / 0.5262 GB Notification: Performance of matching and sorting (n=21): time 0.0007014/0.006772, allocations: 0.5771 MB / 0.6517 GB, free: 34.82 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.006807, allocations: 136.2 kB / 0.6519 GB, free: 34.67 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.987e-05/0.006897, allocations: 208.1 kB / 0.6521 GB, free: 34.49 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.276e-05/0.006909, allocations: 28.3 kB / 0.6521 GB, free: 34.46 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 4.65e-05/0.006956, allocations: 162.8 kB / 0.6522 GB, free: 34.3 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 3.514e-05/0.006991, allocations: 71.98 kB / 0.6523 GB, free: 34.25 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.234e-05/0.007043, allocations: 50.61 kB / 0.6524 GB, free: 34.21 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 4.85e-05/0.007092, allocations: 0.4986 MB / 0.6528 GB, free: 33.71 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.771e-05/0.00717, allocations: 100.8 kB / 0.6529 GB, free: 33.63 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.033e-05/0.00726, allocations: 193 kB / 0.6531 GB, free: 33.43 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/0.007463, allocations: 324.3 kB / 0.6534 GB, free: 33.14 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.007464, allocations: 0 / 0.6534 GB, free: 33.14 MB / 0.5262 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002484/0.007713, allocations: 316.8 kB / 0.6537 GB, free: 32.93 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.00774, allocations: 68.61 kB / 0.6538 GB, free: 32.86 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.007746, allocations: 1.469 kB / 0.6538 GB, free: 32.86 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.007764, allocations: 4.281 kB / 0.6538 GB, free: 32.86 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.00791, allocations: 55.02 kB / 0.6539 GB, free: 32.86 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.007917, allocations: 6.219 kB / 0.6539 GB, free: 32.86 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.315e-05/0.00799, allocations: 11.97 kB / 0.6539 GB, free: 32.85 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.008005, allocations: 17.3 kB / 0.6539 GB, free: 32.85 MB / 0.5262 GB Warning: Assuming fixed start value for the following 6 variables: central.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real periodicDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real periodicDose.variableDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real central.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real central.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real central.rising:DISCRETE(fixed = true protected = true ) type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.central.Cmin,central.Cmin,$PRE.central.Cmax,central.Cmax,$PRE.periodicDose.pulse.count,$PRE.periodicDose.pulse.T_start,$PRE.central.rising,periodicDose.pulse.count,periodicDose.pulse.T_start,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 (30): * Single equations (assignments): 28 * 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.0001332/0.008138, allocations: 230.5 kB / 0.6541 GB, free: 32.63 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.548e-05/0.008164, allocations: 24.56 kB / 0.6541 GB, free: 32.62 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.381e-05/0.008198, allocations: 19.22 kB / 0.6542 GB, free: 32.61 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.0082, allocations: 4.375 kB / 0.6542 GB, free: 32.61 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.008203, allocations: 0 / 0.6542 GB, free: 32.61 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.008208, allocations: 3.938 kB / 0.6542 GB, free: 32.61 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003643/0.008572, allocations: 0.5228 MB / 0.6547 GB, free: 32.18 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.008574, allocations: 0 / 0.6547 GB, free: 32.18 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001197/0.008694, allocations: 27.86 kB / 0.6547 GB, free: 32.18 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.008697, allocations: 3.5 kB / 0.6547 GB, free: 32.18 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.00871, allocations: 13.5 kB / 0.6547 GB, free: 32.18 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.008713, allocations: 1.5 kB / 0.6547 GB, free: 32.18 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.008714, allocations: 0 / 0.6547 GB, free: 32.18 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002929/0.009007, allocations: 460.4 kB / 0.6552 GB, free: 31.84 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 1.523e-05/0.009022, allocations: 14.06 kB / 0.6552 GB, free: 31.83 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.009045, allocations: 10.81 kB / 0.6552 GB, free: 31.83 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.106e-05/0.009116, allocations: 9.203 kB / 0.6552 GB, free: 31.83 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.947e-05/0.009175, allocations: 22.56 kB / 0.6552 GB, free: 31.82 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.009188, allocations: 13 kB / 0.6552 GB, free: 31.82 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 4.589e-05/0.009234, allocations: 148 kB / 0.6554 GB, free: 31.7 MB / 0.5262 GB Notification: Performance of sort global known variables: time 8e-08/0.009234, allocations: 0.5625 kB / 0.6554 GB, free: 31.7 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002193/0.009453, allocations: 48.22 kB / 0.6554 GB, free: 31.69 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass,periodicDose.variableDose.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 8.876e-05/0.009542, allocations: 107.1 kB / 0.6555 GB, free: 31.6 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0002576/0.009799, allocations: 325.1 kB / 0.6558 GB, free: 31.34 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.009801, allocations: 0 / 0.6558 GB, free: 31.34 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 8.961e-05/0.009891, allocations: 155.6 kB / 0.656 GB, free: 31.23 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.01015, allocations: 36.67 kB / 0.656 GB, free: 31.22 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.01137, allocations: 0.5723 MB / 0.6566 GB, free: 30.84 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.408e-05/0.01142, allocations: 85.72 kB / 0.6566 GB, free: 30.76 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 5.469e-05/0.01147, allocations: 13.41 kB / 0.6567 GB, free: 30.76 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.83e-05/0.01152, allocations: 19 kB / 0.6567 GB, free: 30.75 MB / 0.5262 GB Notification: Performance of SimCode: time 5.31e-07/0.01152, allocations: 0 / 0.6567 GB, free: 30.75 MB / 0.5262 GB Notification: Performance of Templates: time 0.0049/0.01642, allocations: 2.496 MB / 0.6591 GB, free: 30.54 MB / 0.5262 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.14710954297334]