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.001158/0.001158, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 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.0009898/0.0009898, allocations: 173 kB / 23.49 MB, free: 1.059 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 0.9666/0.9666, allocations: 177.1 MB / 203.8 MB, free: 5.645 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.64/1.64, allocations: 273.5 MB / 0.5213 GB, free: 14.8 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.443e-06/1.443e-06, allocations: 0 / 0.6462 GB, free: 39.25 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.713e-05/1.858e-05, allocations: 5.828 kB / 0.6462 GB, free: 39.25 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic): time 0.002744/0.002763, allocations: 2.037 MB / 0.6482 GB, free: 37.92 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0007898/0.003553, allocations: 0.5361 MB / 0.6487 GB, free: 37.57 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.576e-05/0.003639, allocations: 5.688 kB / 0.6487 GB, free: 37.56 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.003755, allocations: 13.66 kB / 0.6487 GB, free: 37.55 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001483/0.003903, allocations: 60.22 kB / 0.6488 GB, free: 37.53 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000167/0.00407, allocations: 47.8 kB / 0.6488 GB, free: 37.5 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0002468/0.004317, allocations: 190 kB / 0.649 GB, free: 37.45 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.004439, allocations: 32.97 kB / 0.649 GB, free: 37.42 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.004588, allocations: 99.81 kB / 0.6491 GB, free: 37.38 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.00472, allocations: 63.31 kB / 0.6492 GB, free: 37.36 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 3.898e-05/0.004759, allocations: 14.97 kB / 0.6492 GB, free: 37.36 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.058e-05/0.00479, allocations: 16.66 kB / 0.6492 GB, free: 37.36 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 3.414e-05/0.004824, allocations: 27.58 kB / 0.6492 GB, free: 37.34 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 8.928e-05/0.004913, allocations: 61.08 kB / 0.6493 GB, free: 37.31 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002019/0.005115, allocations: 116.1 kB / 0.6494 GB, free: 37.25 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.005118, allocations: 4 kB / 0.6494 GB, free: 37.25 MB / 0.5262 GB Notification: Performance of FrontEnd: time 7.21e-07/0.005119, allocations: 1.562 kB / 0.6494 GB, free: 37.25 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.005123, allocations: 1.938 kB / 0.6494 GB, free: 37.25 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.0005863/0.005709, allocations: 0.5164 MB / 0.6499 GB, free: 36.77 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.005749, allocations: 9.344 kB / 0.6499 GB, free: 36.77 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.78e-05/0.005816, allocations: 25.41 kB / 0.65 GB, free: 36.75 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.005983, allocations: 159.9 kB / 0.6501 GB, free: 36.59 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.005999, allocations: 6.25 kB / 0.6501 GB, free: 36.59 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.919e-05/0.006038, allocations: 16.89 kB / 0.6501 GB, free: 36.59 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001969/0.006235, allocations: 155.9 kB / 0.6503 GB, free: 36.49 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.006247, allocations: 3.938 kB / 0.6503 GB, free: 36.48 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.006261, allocations: 8.719 kB / 0.6503 GB, free: 36.48 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.006269, allocations: 3.406 kB / 0.6503 GB, free: 36.48 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.721e-05/0.006366, allocations: 80.16 kB / 0.6504 GB, free: 36.44 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004073/0.006773, allocations: 403.5 kB / 0.6508 GB, free: 36.11 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.006908, allocations: 114.8 kB / 0.6509 GB, free: 36.03 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.472e-05/0.006963, allocations: 63.62 kB / 0.6509 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.588e-06/0.006973, allocations: 1.781 kB / 0.6509 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001625/0.007135, allocations: 199.9 kB / 0.6511 GB, free: 35.82 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=20): time 1.403e-06/0.007136, allocations: 5.344 kB / 0.6511 GB, free: 35.82 MB / 0.5262 GB Notification: Performance of matching and sorting (n=21): time 0.0006509/0.007787, allocations: 0.5753 MB / 0.6517 GB, free: 35.39 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/0.007822, allocations: 141.1 kB / 0.6518 GB, free: 35.23 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.063e-05/0.007903, allocations: 199.2 kB / 0.652 GB, free: 35.06 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.007917, allocations: 33.89 kB / 0.652 GB, free: 35.02 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 4.109e-05/0.007958, allocations: 156.5 kB / 0.6522 GB, free: 34.88 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 3.241e-05/0.00799, allocations: 71.62 kB / 0.6523 GB, free: 34.82 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.637e-05/0.008047, allocations: 53.22 kB / 0.6523 GB, free: 34.78 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 4.975e-05/0.008096, allocations: 0.4956 MB / 0.6528 GB, free: 34.29 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.088e-05/0.008167, allocations: 101.9 kB / 0.6529 GB, free: 34.2 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.095e-05/0.008258, allocations: 196.4 kB / 0.6531 GB, free: 34 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/0.008449, allocations: 317.3 kB / 0.6534 GB, free: 33.72 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.00845, allocations: 1.094 kB / 0.6534 GB, free: 33.72 MB / 0.5262 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002423/0.008692, allocations: 320.5 kB / 0.6537 GB, free: 33.5 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.008718, allocations: 58.38 kB / 0.6538 GB, free: 33.44 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.008724, allocations: 9.016 kB / 0.6538 GB, free: 33.44 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.008736, allocations: 5.969 kB / 0.6538 GB, free: 33.44 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.008877, allocations: 52.7 kB / 0.6538 GB, free: 33.43 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.008883, allocations: 5.688 kB / 0.6538 GB, free: 33.43 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.151e-05/0.008954, allocations: 15.34 kB / 0.6538 GB, free: 33.42 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/0.008971, allocations: 7.438 kB / 0.6538 GB, free: 33.42 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.0001232/0.009095, allocations: 226.8 kB / 0.6541 GB, free: 33.22 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.44e-05/0.009119, allocations: 27.44 kB / 0.6541 GB, free: 33.21 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.698e-05/0.009146, allocations: 20.03 kB / 0.6541 GB, free: 33.2 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.009148, allocations: 3.031 kB / 0.6541 GB, free: 33.2 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.009152, allocations: 0 / 0.6541 GB, free: 33.2 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.009157, allocations: 3.938 kB / 0.6541 GB, free: 33.19 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003384/0.009495, allocations: 0.5252 MB / 0.6546 GB, free: 32.76 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.009496, allocations: 0.8125 kB / 0.6546 GB, free: 32.76 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.009606, allocations: 36.16 kB / 0.6547 GB, free: 32.76 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.009609, allocations: 3.469 kB / 0.6547 GB, free: 32.76 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.009622, allocations: 3.594 kB / 0.6547 GB, free: 32.76 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.009623, allocations: 0 / 0.6547 GB, free: 32.76 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.009625, allocations: 1.312 kB / 0.6547 GB, free: 32.76 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002725/0.009897, allocations: 462.8 kB / 0.6551 GB, free: 32.43 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 1.428e-05/0.009911, allocations: 16.09 kB / 0.6551 GB, free: 32.41 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.009938, allocations: 7.406 kB / 0.6551 GB, free: 32.41 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.015e-05/0.01001, allocations: 13.16 kB / 0.6551 GB, free: 32.41 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.474e-05/0.01006, allocations: 27.52 kB / 0.6552 GB, free: 32.4 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.709e-06/0.01007, allocations: 3.875 kB / 0.6552 GB, free: 32.4 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 4.431e-05/0.01012, allocations: 154.1 kB / 0.6553 GB, free: 32.28 MB / 0.5262 GB Notification: Performance of sort global known variables: time 7e-08/0.01012, allocations: 0 / 0.6553 GB, free: 32.28 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.000187/0.0103, allocations: 42.5 kB / 0.6554 GB, free: 32.27 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.307e-05/0.01037, allocations: 111.9 kB / 0.6555 GB, free: 32.18 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.000218/0.01059, allocations: 321.7 kB / 0.6558 GB, free: 31.93 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.01059, allocations: 0 / 0.6558 GB, free: 31.93 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 8.273e-05/0.01067, allocations: 153 kB / 0.6559 GB, free: 31.81 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002472/0.01092, allocations: 56.8 kB / 0.656 GB, free: 31.79 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.01218, allocations: 0.5902 MB / 0.6566 GB, free: 31.39 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.819e-05/0.01224, allocations: 114.1 kB / 0.6567 GB, free: 31.3 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.887e-05/0.01229, allocations: 20.25 kB / 0.6567 GB, free: 31.29 MB / 0.5262 GB Notification: Performance of SimCode: time 6.61e-07/0.01229, allocations: 0 / 0.6567 GB, free: 31.29 MB / 0.5262 GB Notification: Performance of Templates: time 0.002981/0.01527, allocations: 2.295 MB / 0.6589 GB, free: 31.12 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 > Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.379503407049924]