Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple.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.0007566/0.0007566, allocations: 105.5 kB / 18.95 MB, free: 1.184 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.0008922/0.0008922, allocations: 211.6 kB / 22.25 MB, free: 3.574 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.027/1.027, allocations: 230.6 MB / 256 MB, free: 9.586 MB / 202.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.462/1.462, allocations: 334.2 MB / 0.6315 GB, free: 7.945 MB / 442.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: "" <> buildModelFMU(Pharmacolibrary.Examples.PK_1C_GentamicineSimple,fileNamePrefix="Pharmacolibrary_Pharmacolibrary_Examples_PK_1C_GentamicineSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Pharmacolibrary.Examples.PK_1C_GentamicineSimple,fileNamePrefix="Pharmacolibrary_Pharmacolibrary_Examples_PK_1C_GentamicineSimple",fmuType="me",version="2.0",platforms={"static"}) [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.001402/0.001402, allocations: 71.89 kB / 0.8666 GB, free: 7.848 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1795, allocations: 112.8 MB / 0.9767 GB, free: 6.773 MB / 0.6824 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PK_1C_GentamicineSimple): time 0.0022/0.1817, allocations: 1.661 MB / 0.9784 GB, free: 5.102 MB / 0.6824 GB Notification: Performance of NFInst.instExpressions: time 0.0002551/0.182, allocations: 91.67 kB / 0.9784 GB, free: 5.012 MB / 0.6824 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.058e-05/0.182, allocations: 0 / 0.9784 GB, free: 5.012 MB / 0.6824 GB Notification: Performance of NFTyping.typeComponents: time 9.484e-05/0.1821, allocations: 7.922 kB / 0.9785 GB, free: 5.004 MB / 0.6824 GB Notification: Performance of NFTyping.typeBindings: time 9.561e-05/0.1822, allocations: 31.78 kB / 0.9785 GB, free: 4.973 MB / 0.6824 GB Notification: Performance of NFTyping.typeClassSections: time 8.735e-05/0.1823, allocations: 19.97 kB / 0.9785 GB, free: 4.953 MB / 0.6824 GB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.1824, allocations: 83.55 kB / 0.9786 GB, free: 4.871 MB / 0.6824 GB Notification: Performance of NFFlatten.resolveConnections: time 9.702e-05/0.1825, allocations: 16.16 kB / 0.9786 GB, free: 4.855 MB / 0.6824 GB Notification: Performance of NFEvalConstants.evaluate: time 3.637e-05/0.1826, allocations: 31.92 kB / 0.9786 GB, free: 4.824 MB / 0.6824 GB Notification: Performance of NFSimplifyModel.simplify: time 6.803e-05/0.1826, allocations: 27.86 kB / 0.9787 GB, free: 4.797 MB / 0.6824 GB Notification: Performance of NFPackage.collectConstants: time 1.696e-05/0.1827, allocations: 8 kB / 0.9787 GB, free: 4.789 MB / 0.6824 GB Notification: Performance of NFFlatten.collectFunctions: time 1.255e-05/0.1827, allocations: 4 kB / 0.9787 GB, free: 4.785 MB / 0.6824 GB Notification: Performance of NFScalarize.scalarize: time 1.847e-05/0.1827, allocations: 8 kB / 0.9787 GB, free: 4.777 MB / 0.6824 GB Notification: Performance of NFVerifyModel.verify: time 4.487e-05/0.1827, allocations: 35.84 kB / 0.9787 GB, free: 4.742 MB / 0.6824 GB Notification: Performance of NFConvertDAE.convert: time 0.0001025/0.1828, allocations: 67.73 kB / 0.9788 GB, free: 4.676 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1828, allocations: 0 / 0.9788 GB, free: 4.676 MB / 0.6824 GB Notification: Performance of FrontEnd: time 2.305e-06/0.1828, allocations: 0 / 0.9788 GB, free: 4.676 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.1828, allocations: 0 / 0.9788 GB, free: 4.676 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.0003865/0.1832, allocations: 327.8 kB / 0.9791 GB, free: 4.32 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.1833, allocations: 14.11 kB / 0.9791 GB, free: 4.309 MB / 0.6824 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.694e-05/0.1833, allocations: 34.75 kB / 0.9791 GB, free: 4.266 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.819e-05/0.1833, allocations: 8.891 kB / 0.9791 GB, free: 4.258 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.1835, allocations: 126.4 kB / 0.9793 GB, free: 4.109 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.498e-06/0.1835, allocations: 4.375 kB / 0.9793 GB, free: 4.105 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.1835, allocations: 12.12 kB / 0.9793 GB, free: 4.094 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001211/0.1836, allocations: 103.4 kB / 0.9794 GB, free: 3.98 MB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.1836, allocations: 0 / 0.9794 GB, free: 3.98 MB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.1836, allocations: 0 / 0.9794 GB, free: 3.98 MB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1836, allocations: 3.938 kB / 0.9794 GB, free: 3.977 MB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.011e-05/0.1837, allocations: 83.78 kB / 0.9795 GB, free: 3.891 MB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003325/0.184, allocations: 291.7 kB / 0.9797 GB, free: 3.562 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 9.954e-05/0.1841, allocations: 92.25 kB / 0.9798 GB, free: 3.457 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.935e-05/0.1842, allocations: 50.56 kB / 0.9799 GB, free: 3.398 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 1.002e-05/0.1842, allocations: 4.188 kB / 0.9799 GB, free: 3.395 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001568/0.1844, allocations: 176.3 kB / 0.98 GB, free: 3.191 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=12): time 1.183e-06/0.1844, allocations: 0 / 0.98 GB, free: 3.191 MB / 0.6824 GB Notification: Performance of matching and sorting (n=13): time 0.0006201/0.185, allocations: 482.2 kB / 0.9805 GB, free: 2.656 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.185, allocations: 144.5 kB / 0.9806 GB, free: 2.484 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.267e-05/0.1851, allocations: 113.9 kB / 0.9808 GB, free: 2.363 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.1851, allocations: 33.7 kB / 0.9808 GB, free: 2.324 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 3.137e-05/0.1851, allocations: 92.02 kB / 0.9809 GB, free: 2.23 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 3.114e-05/0.1852, allocations: 43.69 kB / 0.9809 GB, free: 2.188 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.309e-05/0.1852, allocations: 25.72 kB / 0.9809 GB, free: 2.156 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 7.463e-05/0.1853, allocations: 322.8 kB / 0.9812 GB, free: 1.832 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.304e-05/0.1853, allocations: 70.7 kB / 0.9813 GB, free: 1.75 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.857e-05/0.1854, allocations: 90.72 kB / 0.9814 GB, free: 1.641 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.1856, allocations: 269.5 kB / 0.9817 GB, free: 1.34 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.1856, allocations: 0 / 0.9817 GB, free: 1.34 MB / 0.6824 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001738/0.1858, allocations: 196.9 kB / 0.9818 GB, free: 1.129 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.1858, allocations: 33.7 kB / 0.9819 GB, free: 1.09 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.1858, allocations: 128 / 0.9819 GB, free: 1.09 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.1858, allocations: 8 kB / 0.9819 GB, free: 1.082 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.156e-05/0.1859, allocations: 35.86 kB / 0.9819 GB, free: 1.047 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.1859, allocations: 4 kB / 0.9819 GB, free: 1.043 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.346e-05/0.186, allocations: 0 / 0.9819 GB, free: 1.043 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.186, allocations: 8 kB / 0.9819 GB, free: 1.035 MB / 0.6824 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.0002584/0.1862, allocations: 168.1 kB / 0.9821 GB, free: 0.8555 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.162e-05/0.1862, allocations: 15.88 kB / 0.9821 GB, free: 0.8398 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.33e-05/0.1863, allocations: 12.44 kB / 0.9821 GB, free: 0.8242 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1863, allocations: 3.938 kB / 0.9821 GB, free: 0.8203 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1863, allocations: 0 / 0.9821 GB, free: 0.8203 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.1863, allocations: 4 kB / 0.9821 GB, free: 0.8164 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002999/0.1866, allocations: 433 kB / 0.9825 GB, free: 340 kB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1866, allocations: 0 / 0.9825 GB, free: 340 kB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.483e-05/0.1867, allocations: 31.86 kB / 0.9826 GB, free: 308 kB / 0.6824 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1867, allocations: 0 / 0.9826 GB, free: 308 kB / 0.6824 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.727e-06/0.1867, allocations: 8 kB / 0.9826 GB, free: 300 kB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.1867, allocations: 0 / 0.9826 GB, free: 300 kB / 0.6824 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1867, allocations: 0 / 0.9826 GB, free: 300 kB / 0.6824 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000242/0.1869, allocations: 352.5 kB / 0.9829 GB, free: 15.91 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.139e-05/0.1869, allocations: 15.89 kB / 0.9829 GB, free: 15.9 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.1869, allocations: 4 kB / 0.9829 GB, free: 15.89 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.015e-05/0.187, allocations: 7.969 kB / 0.9829 GB, free: 15.89 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.316e-05/0.187, allocations: 11.98 kB / 0.9829 GB, free: 15.88 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.187, allocations: 4 kB / 0.983 GB, free: 15.87 MB / 0.698 GB Notification: Performance of sorting global known variables: time 2.898e-05/0.187, allocations: 83.28 kB / 0.983 GB, free: 15.79 MB / 0.698 GB Notification: Performance of sort global known variables: time 6.1e-08/0.187, allocations: 0 / 0.983 GB, free: 15.79 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0001693/0.1872, allocations: 32 kB / 0.9831 GB, free: 15.76 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.0003936/0.1876, allocations: 0.896 MB / 0.9839 GB, free: 14.82 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0001684/0.1878, allocations: 190.7 kB / 0.9841 GB, free: 14.61 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.1878, allocations: 0 / 0.9841 GB, free: 14.61 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 7.107e-05/0.1878, allocations: 133.3 kB / 0.9842 GB, free: 14.46 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002143/0.1881, allocations: 28.36 kB / 0.9843 GB, free: 14.43 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.1894, allocations: 1.963 MB / 0.9862 GB, free: 12.34 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.064e-05/0.1894, allocations: 87.25 kB / 0.9863 GB, free: 12.23 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 2.885e-05/0.1894, allocations: 8.359 kB / 0.9863 GB, free: 12.22 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.165e-05/0.1895, allocations: 31.42 kB / 0.9863 GB, free: 12.19 MB / 0.698 GB Notification: Performance of SimCode: time 6.51e-07/0.1895, allocations: 0 / 0.9863 GB, free: 12.19 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0712/0.2607, allocations: 3.136 MB / 0.9894 GB, free: 9.219 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.825/7.086, allocations: 0 / 0.9894 GB, free: 9.219 MB / 0.698 GB " [Timeout remaining time 653] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Pharmacolibrary_Pharmacolibrary_Examples_PK_1C_GentamicineSimple_fmu --startTime=0 --stopTime=86400 --stepSize=173.146 --timeout=50 --tolerance=1e-06 ../Pharmacolibrary_Pharmacolibrary_Examples_PK_1C_GentamicineSimple.fmu) > Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple.pipe 2>&1) [Timeout 52.5] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple_fmpy.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple_fmpy.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple_fmpy_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 173.146 ../Pharmacolibrary_Pharmacolibrary_Examples_PK_1C_GentamicineSimple.fmu) > Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.676009773276746]