Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.DevModels.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.00109/0.00109, allocations: 89.08 kB / 19.42 MB, free: 496 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.001782/0.001782, allocations: 173 kB / 22.72 MB, free: 1.828 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.057/1.057, allocations: 177.1 MB / 203.1 MB, free: 5.648 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.745/1.745, 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.DevModels.PKOneCompartmentModelPeriodic,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic") translateModel(Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 0.6462 GB, free: 38.53 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.946e-05/2.076e-05, allocations: 6.719 kB / 0.6462 GB, free: 38.52 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic): time 0.002088/0.002109, allocations: 2.039 MB / 0.6482 GB, free: 37.2 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.000664/0.002773, allocations: 0.5501 MB / 0.6487 GB, free: 36.83 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.769e-05/0.002841, allocations: 2.219 kB / 0.6487 GB, free: 36.83 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 9.885e-05/0.002939, allocations: 20.11 kB / 0.6488 GB, free: 36.82 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001227/0.003062, allocations: 49.41 kB / 0.6488 GB, free: 36.8 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001528/0.003215, allocations: 43.23 kB / 0.6489 GB, free: 36.78 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0002055/0.00342, allocations: 195.1 kB / 0.649 GB, free: 36.72 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.003539, allocations: 30.31 kB / 0.6491 GB, free: 36.7 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.003664, allocations: 105.9 kB / 0.6492 GB, free: 36.66 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.003785, allocations: 55.02 kB / 0.6492 GB, free: 36.64 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 2.765e-05/0.003813, allocations: 16.78 kB / 0.6492 GB, free: 36.64 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.365e-05/0.003836, allocations: 21.44 kB / 0.6493 GB, free: 36.63 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 2.747e-05/0.003864, allocations: 27.41 kB / 0.6493 GB, free: 36.61 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 6.172e-05/0.003926, allocations: 60.25 kB / 0.6493 GB, free: 36.59 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.004079, allocations: 117.2 kB / 0.6495 GB, free: 36.53 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 1.804e-06/0.004081, allocations: 0 / 0.6495 GB, free: 36.53 MB / 0.5262 GB Notification: Performance of FrontEnd: time 7.21e-07/0.004081, allocations: 0 / 0.6495 GB, free: 36.53 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.004086, allocations: 0 / 0.6495 GB, free: 36.53 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.000512/0.004598, allocations: 0.5171 MB / 0.65 GB, free: 36.04 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.004631, allocations: 9.188 kB / 0.65 GB, free: 36.04 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.328e-05/0.004684, allocations: 27.44 kB / 0.65 GB, free: 36.03 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.004828, allocations: 166.8 kB / 0.6502 GB, free: 35.87 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.004849, allocations: 6.188 kB / 0.6502 GB, free: 35.87 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.29e-05/0.004882, allocations: 14.97 kB / 0.6502 GB, free: 35.86 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.005071, allocations: 145.1 kB / 0.6503 GB, free: 35.77 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.005084, allocations: 3.938 kB / 0.6503 GB, free: 35.77 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.005097, allocations: 10.73 kB / 0.6503 GB, free: 35.76 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.005106, allocations: 3.625 kB / 0.6503 GB, free: 35.76 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000106/0.005212, allocations: 85.34 kB / 0.6504 GB, free: 35.72 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004225/0.005634, allocations: 396.1 kB / 0.6508 GB, free: 35.39 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001457/0.00578, allocations: 118.6 kB / 0.6509 GB, free: 35.31 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.798e-05/0.005838, allocations: 65.27 kB / 0.651 GB, free: 35.26 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.078e-05/0.005849, allocations: 2.281 kB / 0.651 GB, free: 35.26 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001715/0.00602, allocations: 198.3 kB / 0.6512 GB, free: 35.1 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=20): time 1.804e-06/0.006022, allocations: 1.062 kB / 0.6512 GB, free: 35.1 MB / 0.5262 GB Notification: Performance of matching and sorting (n=21): time 0.0007101/0.006732, allocations: 0.5784 MB / 0.6517 GB, free: 34.68 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.006765, allocations: 140.1 kB / 0.6519 GB, free: 34.51 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.368e-05/0.006849, allocations: 205.3 kB / 0.6521 GB, free: 34.34 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.231e-05/0.006861, allocations: 31.95 kB / 0.6521 GB, free: 34.3 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 4.383e-05/0.006905, allocations: 156.5 kB / 0.6522 GB, free: 34.15 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 3.798e-05/0.006943, allocations: 76.36 kB / 0.6523 GB, free: 34.09 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.175e-05/0.006995, allocations: 47.56 kB / 0.6523 GB, free: 34.06 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 4.848e-05/0.007043, allocations: 0.5011 MB / 0.6528 GB, free: 33.56 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.045e-05/0.007124, allocations: 105.8 kB / 0.6529 GB, free: 33.47 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.118e-05/0.007215, allocations: 187.8 kB / 0.6531 GB, free: 33.28 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001997/0.007415, allocations: 323.8 kB / 0.6534 GB, free: 32.99 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.007416, allocations: 0 / 0.6534 GB, free: 32.99 MB / 0.5262 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002454/0.007662, allocations: 322.8 kB / 0.6537 GB, free: 32.77 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.007687, allocations: 60.58 kB / 0.6538 GB, free: 32.71 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.007692, allocations: 1.312 kB / 0.6538 GB, free: 32.71 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.007706, allocations: 3.719 kB / 0.6538 GB, free: 32.71 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.007848, allocations: 50.38 kB / 0.6538 GB, free: 32.71 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.007855, allocations: 7.188 kB / 0.6539 GB, free: 32.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.426e-05/0.007929, allocations: 16.59 kB / 0.6539 GB, free: 32.7 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.007944, allocations: 15 kB / 0.6539 GB, free: 32.7 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.000134/0.008078, allocations: 221.7 kB / 0.6541 GB, free: 32.49 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.008106, allocations: 29.67 kB / 0.6541 GB, free: 32.48 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.132e-05/0.008138, allocations: 14.97 kB / 0.6541 GB, free: 32.46 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.00814, allocations: 4.906 kB / 0.6541 GB, free: 32.46 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.008143, allocations: 0 / 0.6541 GB, free: 32.46 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.008148, allocations: 6.609 kB / 0.6541 GB, free: 32.46 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003407/0.008489, allocations: 0.5211 MB / 0.6547 GB, free: 32.04 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.008491, allocations: 0 / 0.6547 GB, free: 32.04 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.008607, allocations: 34.28 kB / 0.6547 GB, free: 32.04 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.008609, allocations: 2.438 kB / 0.6547 GB, free: 32.04 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.008623, allocations: 11.53 kB / 0.6547 GB, free: 32.03 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.008625, allocations: 1.719 kB / 0.6547 GB, free: 32.03 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.008626, allocations: 0 / 0.6547 GB, free: 32.03 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002755/0.008902, allocations: 456.9 kB / 0.6551 GB, free: 31.7 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 1.507e-05/0.008917, allocations: 15.22 kB / 0.6552 GB, free: 31.69 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.008938, allocations: 11.56 kB / 0.6552 GB, free: 31.68 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.914e-05/0.009017, allocations: 12.25 kB / 0.6552 GB, free: 31.68 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.101e-05/0.009068, allocations: 20.06 kB / 0.6552 GB, free: 31.68 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.009079, allocations: 5.688 kB / 0.6552 GB, free: 31.68 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 4.145e-05/0.00912, allocations: 147.8 kB / 0.6553 GB, free: 31.55 MB / 0.5262 GB Notification: Performance of sort global known variables: time 8e-08/0.00912, allocations: 0 / 0.6553 GB, free: 31.55 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0001868/0.009307, allocations: 49.47 kB / 0.6554 GB, free: 31.55 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 6.676e-05/0.009374, allocations: 111.1 kB / 0.6555 GB, free: 31.46 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0002419/0.009616, allocations: 323 kB / 0.6558 GB, free: 31.2 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.172e-06/0.009617, allocations: 0.5625 kB / 0.6558 GB, free: 31.2 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 8.856e-05/0.009706, allocations: 151.8 kB / 0.6559 GB, free: 31.08 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002702/0.009976, allocations: 45.66 kB / 0.656 GB, free: 31.07 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.01121, allocations: 0.574 MB / 0.6566 GB, free: 30.71 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.032e-05/0.01125, allocations: 79.42 kB / 0.6566 GB, free: 30.63 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 4.823e-05/0.01129, allocations: 16.89 kB / 0.6566 GB, free: 30.62 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.856e-05/0.01133, allocations: 20 kB / 0.6567 GB, free: 30.62 MB / 0.5262 GB Notification: Performance of SimCode: time 7.72e-07/0.01133, allocations: 4 kB / 0.6567 GB, free: 30.61 MB / 0.5262 GB Notification: Performance of Templates: time 0.004106/0.01544, allocations: 2.495 MB / 0.6591 GB, free: 30.4 MB / 0.5262 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.sim & ./Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.1737087750807405]