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.001059/0.001059, allocations: 84.53 kB / 19.93 MB, free: 4.609 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.001004/0.001004, allocations: 173.9 kB / 23.21 MB, free: 1.328 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.9476/0.9476, allocations: 177.1 MB / 203.5 MB, free: 5.738 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.561/1.561, allocations: 273.5 MB / 0.5209 GB, free: 14.99 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.182e-06/1.182e-06, allocations: 0 / 0.7558 GB, free: 10.72 MB / 0.5887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.801e-05/1.92e-05, allocations: 5.234 kB / 0.7558 GB, free: 10.72 MB / 0.5887 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic): time 0.002436/0.002456, allocations: 1.947 MB / 0.7577 GB, free: 8.777 MB / 0.5887 GB Notification: Performance of NFInst.instExpressions: time 0.0007096/0.003165, allocations: 0.5297 MB / 0.7582 GB, free: 8.254 MB / 0.5887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.103e-05/0.003236, allocations: 0 / 0.7582 GB, free: 8.254 MB / 0.5887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.003346, allocations: 21 kB / 0.7582 GB, free: 8.234 MB / 0.5887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.003477, allocations: 48.16 kB / 0.7583 GB, free: 8.203 MB / 0.5887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001565/0.003634, allocations: 51.81 kB / 0.7583 GB, free: 8.152 MB / 0.5887 GB Notification: Performance of NFFlatten.flatten: time 0.0002247/0.003858, allocations: 190.1 kB / 0.7585 GB, free: 7.996 MB / 0.5887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.003984, allocations: 25.91 kB / 0.7585 GB, free: 7.961 MB / 0.5887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001254/0.004109, allocations: 103.8 kB / 0.7586 GB, free: 7.859 MB / 0.5887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001/0.004209, allocations: 63.81 kB / 0.7587 GB, free: 7.797 MB / 0.5887 GB Notification: Performance of NFPackage.collectConstants: time 2.911e-05/0.004239, allocations: 16 kB / 0.7587 GB, free: 7.781 MB / 0.5887 GB Notification: Performance of NFFlatten.collectFunctions: time 2.039e-05/0.004259, allocations: 12 kB / 0.7587 GB, free: 7.77 MB / 0.5887 GB Notification: Performance of NFScalarize.scalarize: time 3.508e-05/0.004294, allocations: 27.91 kB / 0.7587 GB, free: 7.742 MB / 0.5887 GB Notification: Performance of NFVerifyModel.verify: time 6.584e-05/0.00436, allocations: 59.84 kB / 0.7588 GB, free: 7.684 MB / 0.5887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.00455, allocations: 163.5 kB / 0.7589 GB, free: 7.523 MB / 0.5887 GB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.004552, allocations: 0 / 0.7589 GB, free: 7.523 MB / 0.5887 GB Notification: Performance of FrontEnd: time 1.052e-06/0.004553, allocations: 0 / 0.7589 GB, free: 7.523 MB / 0.5887 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.004558, allocations: 0 / 0.7589 GB, free: 7.523 MB / 0.5887 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.0006328/0.00519, allocations: 433.1 kB / 0.7593 GB, free: 7.059 MB / 0.5887 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.005229, allocations: 8.031 kB / 0.7594 GB, free: 7.051 MB / 0.5887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.618e-05/0.005275, allocations: 16.84 kB / 0.7594 GB, free: 7.035 MB / 0.5887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.005439, allocations: 157.5 kB / 0.7595 GB, free: 6.855 MB / 0.5887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.005451, allocations: 8.375 kB / 0.7595 GB, free: 6.848 MB / 0.5887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.031e-05/0.005482, allocations: 16.38 kB / 0.7595 GB, free: 6.832 MB / 0.5887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002299/0.005712, allocations: 160.5 kB / 0.7597 GB, free: 6.664 MB / 0.5887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.005726, allocations: 11.83 kB / 0.7597 GB, free: 6.652 MB / 0.5887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.005738, allocations: 3.938 kB / 0.7597 GB, free: 6.648 MB / 0.5887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.005744, allocations: 4 kB / 0.7597 GB, free: 6.645 MB / 0.5887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.005938, allocations: 141.5 kB / 0.7599 GB, free: 6.5 MB / 0.5887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004933/0.006432, allocations: 364.2 kB / 0.7602 GB, free: 6.113 MB / 0.5887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002348/0.006666, allocations: 168.1 kB / 0.7604 GB, free: 5.934 MB / 0.5887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.006771, allocations: 90.67 kB / 0.7604 GB, free: 5.836 MB / 0.5887 GB Notification: Performance of preOpt evalFunc (simulation): time 9.688e-06/0.00678, allocations: 4 kB / 0.7604 GB, free: 5.832 MB / 0.5887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000245/0.007025, allocations: 223.1 kB / 0.7607 GB, free: 5.586 MB / 0.5887 GB Notification: Performance of pre-optimization done (n=20): time 1.773e-06/0.007027, allocations: 0 / 0.7607 GB, free: 5.586 MB / 0.5887 GB Notification: Performance of matching and sorting (n=21): time 0.0009568/0.007984, allocations: 0.6926 MB / 0.7613 GB, free: 4.828 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/0.008041, allocations: 132.5 kB / 0.7615 GB, free: 4.668 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.008142, allocations: 160.7 kB / 0.7616 GB, free: 4.504 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.008159, allocations: 29.7 kB / 0.7616 GB, free: 4.469 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 5.219e-05/0.008211, allocations: 108.5 kB / 0.7617 GB, free: 4.359 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 3.828e-05/0.00825, allocations: 71.42 kB / 0.7618 GB, free: 4.289 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.301e-05/0.008303, allocations: 49.69 kB / 0.7619 GB, free: 4.234 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 7.843e-05/0.008381, allocations: 322.8 kB / 0.7622 GB, free: 3.91 MB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.008522, allocations: 144.6 kB / 0.7623 GB, free: 3.754 MB / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.00869, allocations: 219.2 kB / 0.7625 GB, free: 3.5 MB / 0.5887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000814/0.009504, allocations: 0.5074 MB / 0.763 GB, free: 2.93 MB / 0.5887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.009505, allocations: 0 / 0.763 GB, free: 2.93 MB / 0.5887 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003554/0.009861, allocations: 378.1 kB / 0.7634 GB, free: 2.531 MB / 0.5887 GB Notification: Performance of prepare postOptimizeDAE: time 3.687e-05/0.009898, allocations: 63.39 kB / 0.7634 GB, free: 2.457 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.009904, allocations: 7.938 kB / 0.7634 GB, free: 2.449 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.009917, allocations: 4.188 kB / 0.7634 GB, free: 2.445 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.01006, allocations: 51.91 kB / 0.7635 GB, free: 2.395 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.01006, allocations: 11.88 kB / 0.7635 GB, free: 2.383 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.226e-05/0.01015, allocations: 15.98 kB / 0.7635 GB, free: 2.367 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.01016, allocations: 8 kB / 0.7635 GB, free: 2.359 MB / 0.5887 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.0001508/0.01031, allocations: 183.6 kB / 0.7637 GB, free: 2.172 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.804e-05/0.01033, allocations: 19.89 kB / 0.7637 GB, free: 2.152 MB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.051e-05/0.01036, allocations: 21.22 kB / 0.7637 GB, free: 2.137 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.01036, allocations: 0 / 0.7637 GB, free: 2.137 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.01037, allocations: 3.938 kB / 0.7637 GB, free: 2.133 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.01037, allocations: 0 / 0.7637 GB, free: 2.133 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004858/0.01086, allocations: 0.5173 MB / 0.7643 GB, free: 1.562 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.01086, allocations: 0 / 0.7643 GB, free: 1.562 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000127/0.01098, allocations: 43.91 kB / 0.7643 GB, free: 1.52 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.01099, allocations: 0 / 0.7643 GB, free: 1.52 MB / 0.5887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.011, allocations: 4 kB / 0.7643 GB, free: 1.516 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.011, allocations: 0 / 0.7643 GB, free: 1.516 MB / 0.5887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.011, allocations: 0 / 0.7643 GB, free: 1.516 MB / 0.5887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004514/0.01146, allocations: 0.496 MB / 0.7648 GB, free: 0.9883 MB / 0.5887 GB Notification: Performance of postOpt removeConstants (simulation): time 1.647e-05/0.01147, allocations: 11.91 kB / 0.7648 GB, free: 0.9766 MB / 0.5887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/0.0115, allocations: 8.062 kB / 0.7648 GB, free: 0.9688 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.677e-05/0.01157, allocations: 15.98 kB / 0.7648 GB, free: 0.9531 MB / 0.5887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.429e-05/0.01164, allocations: 19.97 kB / 0.7648 GB, free: 0.9336 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.01165, allocations: 7.984 kB / 0.7648 GB, free: 0.9258 MB / 0.5887 GB Notification: Performance of sorting global known variables: time 5.48e-05/0.0117, allocations: 114 kB / 0.765 GB, free: 0.8164 MB / 0.5887 GB Notification: Performance of sort global known variables: time 7e-08/0.0117, allocations: 0 / 0.765 GB, free: 0.8164 MB / 0.5887 GB Notification: Performance of remove unused functions: time 0.0001888/0.01189, allocations: 48 kB / 0.765 GB, free: 0.7695 MB / 0.5887 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.768e-05/0.01198, allocations: 115.2 kB / 0.7651 GB, free: 0.6445 MB / 0.5887 GB Notification: Performance of simCode: created initialization part: time 0.0003506/0.01233, allocations: 379.6 kB / 0.7655 GB, free: 236 kB / 0.5887 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.01233, allocations: 3.938 kB / 0.7655 GB, free: 232 kB / 0.5887 GB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.01247, allocations: 174.9 kB / 0.7656 GB, free: 40 kB / 0.5887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.01272, allocations: 40.3 kB / 0.7657 GB, free: 0 / 0.5887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007166/0.01343, allocations: 0.5504 MB / 0.7662 GB, free: 15.42 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.204e-05/0.01351, allocations: 111.5 kB / 0.7663 GB, free: 15.29 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.617e-05/0.01355, allocations: 16.5 kB / 0.7663 GB, free: 15.28 MB / 0.6043 GB Notification: Performance of SimCode: time 5.11e-07/0.01355, allocations: 0 / 0.7663 GB, free: 15.28 MB / 0.6043 GB Notification: Performance of Templates: time 0.002835/0.01639, allocations: 2.292 MB / 0.7686 GB, free: 13.03 MB / 0.6043 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.438299967208877]