Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.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.001883/0.001883, allocations: 101.5 kB / 18.95 MB, free: 1.18 MB / 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.00217/0.00217, allocations: 221.7 kB / 22.25 MB, free: 3.57 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 1.759/1.759, allocations: 230.6 MB / 256 MB, free: 9.602 MB / 202.7 MB " [Timeout remaining time 178] 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 5.894/5.894, allocations: 335.3 MB / 0.6325 GB, free: 7.227 MB / 442.7 MB " [Timeout remaining time 174] 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.PKOneCompartmentSimplestModel,tolerance=1e-09,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel") translateModel(Pharmacolibrary.Examples.PKOneCompartmentSimplestModel,tolerance=1e-09,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel") [Timeout 660] "Notification: Pharmacolibrary requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003728/0.003728, allocations: 75.83 kB / 0.868 GB, free: 5.742 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2529, allocations: 112.8 MB / 0.9782 GB, free: 4.672 MB / 0.6824 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PKOneCompartmentSimplestModel): time 0.003112/0.256, allocations: 1.662 MB / 0.9798 GB, free: 3 MB / 0.6824 GB Notification: Performance of NFInst.instExpressions: time 0.0002731/0.2563, allocations: 83.69 kB / 0.9799 GB, free: 2.918 MB / 0.6824 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.68e-05/0.2563, allocations: 0 / 0.9799 GB, free: 2.918 MB / 0.6824 GB Notification: Performance of NFTyping.typeComponents: time 7.805e-05/0.2564, allocations: 15.92 kB / 0.9799 GB, free: 2.902 MB / 0.6824 GB Notification: Performance of NFTyping.typeBindings: time 8.673e-05/0.2565, allocations: 23.78 kB / 0.9799 GB, free: 2.879 MB / 0.6824 GB Notification: Performance of NFTyping.typeClassSections: time 8.268e-05/0.2566, allocations: 19.97 kB / 0.9799 GB, free: 2.859 MB / 0.6824 GB Notification: Performance of NFFlatten.flatten: time 0.0001492/0.2567, allocations: 87.59 kB / 0.98 GB, free: 2.773 MB / 0.6824 GB Notification: Performance of NFFlatten.resolveConnections: time 7.325e-05/0.2568, allocations: 8.188 kB / 0.98 GB, free: 2.766 MB / 0.6824 GB Notification: Performance of NFEvalConstants.evaluate: time 5.057e-05/0.2569, allocations: 35.84 kB / 0.9801 GB, free: 2.73 MB / 0.6824 GB Notification: Performance of NFSimplifyModel.simplify: time 7.093e-05/0.2569, allocations: 27.86 kB / 0.9801 GB, free: 2.703 MB / 0.6824 GB Notification: Performance of NFPackage.collectConstants: time 1.593e-05/0.257, allocations: 4 kB / 0.9801 GB, free: 2.699 MB / 0.6824 GB Notification: Performance of NFFlatten.collectFunctions: time 2.122e-05/0.257, allocations: 8 kB / 0.9801 GB, free: 2.691 MB / 0.6824 GB Notification: Performance of NFScalarize.scalarize: time 3.619e-05/0.257, allocations: 11.98 kB / 0.9801 GB, free: 2.68 MB / 0.6824 GB Notification: Performance of NFVerifyModel.verify: time 5.101e-05/0.2571, allocations: 31.88 kB / 0.9801 GB, free: 2.648 MB / 0.6824 GB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.2572, allocations: 75.67 kB / 0.9802 GB, free: 2.574 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2572, allocations: 0 / 0.9802 GB, free: 2.574 MB / 0.6824 GB Notification: Performance of FrontEnd: time 1.002e-06/0.2572, allocations: 0 / 0.9802 GB, free: 2.574 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 3.948e-06/0.2572, allocations: 0 / 0.9802 GB, free: 2.574 MB / 0.6824 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000465/0.2577, allocations: 311.9 kB / 0.9805 GB, free: 2.234 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.2577, allocations: 10.11 kB / 0.9805 GB, free: 2.227 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.918e-05/0.2577, allocations: 8.891 kB / 0.9805 GB, free: 2.219 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.2579, allocations: 122.5 kB / 0.9806 GB, free: 2.074 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.2579, allocations: 16.31 kB / 0.9807 GB, free: 2.059 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.164e-05/0.2579, allocations: 8.375 kB / 0.9807 GB, free: 2.051 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001709/0.2581, allocations: 110.7 kB / 0.9808 GB, free: 1.934 MB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.2581, allocations: 4 kB / 0.9808 GB, free: 1.93 MB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.2581, allocations: 4 kB / 0.9808 GB, free: 1.926 MB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.246e-06/0.2581, allocations: 0 / 0.9808 GB, free: 1.926 MB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001217/0.2583, allocations: 81.59 kB / 0.9809 GB, free: 1.84 MB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000385/0.2586, allocations: 260.3 kB / 0.9811 GB, free: 1.555 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001505/0.2588, allocations: 92.25 kB / 0.9812 GB, free: 1.449 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.711e-05/0.2589, allocations: 54.55 kB / 0.9812 GB, free: 1.387 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.2589, allocations: 4 kB / 0.9812 GB, free: 1.383 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002127/0.2591, allocations: 180.5 kB / 0.9814 GB, free: 1.176 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=12): time 1.072e-06/0.2591, allocations: 0 / 0.9814 GB, free: 1.176 MB / 0.6824 GB Notification: Performance of matching and sorting (n=13): time 0.0008156/0.2599, allocations: 493.6 kB / 0.9819 GB, free: 0.6289 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.26, allocations: 136.5 kB / 0.982 GB, free: 476 kB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.2601, allocations: 105.8 kB / 0.9821 GB, free: 360 kB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.2601, allocations: 33.7 kB / 0.9822 GB, free: 320 kB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 5.712e-05/0.2602, allocations: 88.08 kB / 0.9822 GB, free: 228 kB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 5.232e-05/0.2602, allocations: 43.69 kB / 0.9823 GB, free: 184 kB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.024e-05/0.2603, allocations: 33.7 kB / 0.9823 GB, free: 144 kB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 0.0001829/0.2605, allocations: 326.8 kB / 0.9826 GB, free: 15.81 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.345e-05/0.2606, allocations: 70.66 kB / 0.9827 GB, free: 15.73 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.2607, allocations: 88.22 kB / 0.9828 GB, free: 15.62 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004109/0.2611, allocations: 259 kB / 0.983 GB, free: 15.33 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2611, allocations: 4 kB / 0.983 GB, free: 15.33 MB / 0.698 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002856/0.2614, allocations: 196.9 kB / 0.9832 GB, free: 15.12 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.092e-05/0.2614, allocations: 37.69 kB / 0.9832 GB, free: 15.07 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.2614, allocations: 3.984 kB / 0.9833 GB, free: 15.07 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.2614, allocations: 4 kB / 0.9833 GB, free: 15.07 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.2616, allocations: 27.92 kB / 0.9833 GB, free: 15.04 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.2616, allocations: 0 / 0.9833 GB, free: 15.04 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.716e-05/0.2616, allocations: 11.94 kB / 0.9833 GB, free: 15.03 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.2617, allocations: 4 kB / 0.9833 GB, free: 15.02 MB / 0.698 GB Warning: Assuming fixed start value for the following 4 variables: central.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" 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: 5 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.central.Cmin,central.Cmin,$PRE.central.Cmax,central.Cmax,$PRE.central.rising,central.rising,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * 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.0002079/0.2619, allocations: 167.5 kB / 0.9835 GB, free: 14.85 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.944e-05/0.2619, allocations: 7.953 kB / 0.9835 GB, free: 14.84 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.757e-05/0.2619, allocations: 16.38 kB / 0.9835 GB, free: 14.82 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.2619, allocations: 0 / 0.9835 GB, free: 14.82 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2619, allocations: 0 / 0.9835 GB, free: 14.82 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001178/0.262, allocations: 3.938 kB / 0.9835 GB, free: 14.82 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005184/0.2626, allocations: 424.4 kB / 0.9839 GB, free: 14.36 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2626, allocations: 256 / 0.9839 GB, free: 14.36 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.2627, allocations: 27.98 kB / 0.9839 GB, free: 14.33 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.2627, allocations: 0 / 0.9839 GB, free: 14.33 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.2627, allocations: 4 kB / 0.9839 GB, free: 14.32 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2627, allocations: 7.875 kB / 0.9839 GB, free: 14.32 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2627, allocations: 0 / 0.9839 GB, free: 14.32 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004313/0.2632, allocations: 352.6 kB / 0.9843 GB, free: 13.94 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.499e-05/0.2632, allocations: 7.953 kB / 0.9843 GB, free: 13.93 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.2632, allocations: 0 / 0.9843 GB, free: 13.93 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.445e-05/0.2633, allocations: 15.94 kB / 0.9843 GB, free: 13.91 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.21e-05/0.2633, allocations: 8.031 kB / 0.9843 GB, free: 13.91 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.171e-05/0.2633, allocations: 7.984 kB / 0.9843 GB, free: 13.9 MB / 0.698 GB Notification: Performance of sorting global known variables: time 5.767e-05/0.2634, allocations: 83.28 kB / 0.9844 GB, free: 13.82 MB / 0.698 GB Notification: Performance of sort global known variables: time 9.1e-08/0.2634, allocations: 0 / 0.9844 GB, free: 13.82 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002657/0.2636, allocations: 31.94 kB / 0.9844 GB, free: 13.79 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (central.C,central.AUC,elim.MExc) * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,central.Cmax,central.Cmin,central.rising) * Number of discrete states: 5 (central.Cmin,$whenCondition2,central.Cmax,$whenCondition1,central.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001112/0.2637, allocations: 97.64 kB / 0.9845 GB, free: 13.68 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0003002/0.264, allocations: 198.7 kB / 0.9847 GB, free: 13.46 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2641, allocations: 4.25 kB / 0.9847 GB, free: 13.46 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.2642, allocations: 133 kB / 0.9848 GB, free: 13.31 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.2645, allocations: 22.66 kB / 0.9848 GB, free: 13.29 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008447/0.2654, allocations: 452.1 kB / 0.9853 GB, free: 12.82 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.884e-05/0.2655, allocations: 83.33 kB / 0.9854 GB, free: 12.72 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 4.001e-05/0.2655, allocations: 8.484 kB / 0.9854 GB, free: 12.71 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.636e-05/0.2656, allocations: 15.38 kB / 0.9854 GB, free: 12.7 MB / 0.698 GB Notification: Performance of SimCode: time 2.91e-07/0.2656, allocations: 0 / 0.9854 GB, free: 12.7 MB / 0.698 GB Notification: Performance of Templates: time 0.004598/0.2702, allocations: 1.309 MB / 0.9867 GB, free: 11.42 MB / 0.698 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 12.461250833934173]