Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.Pharmacogenomics.Patient_PKPG_2C_Ibuprofen.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0004593/0.0004593, allocations: 0 / 0, free: 0 / 0 " [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.0004277/0.0004277, allocations: 0 / 0, free: 0 / 0 " [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.3486/0.3486, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] 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/Drugs/ATC/B/B02BD15.mo:9:22-9:32:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 6000000000 into a real [/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 0.8093/0.8093, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 179] 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.Pharmacogenomics.Patient_PKPG_2C_Ibuprofen,fileNamePrefix="Pharmacolibrary_Pharmacolibrary_Examples_Pharmacogenomics_Patient_PKPG_2C_Ibuprofen",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(Pharmacolibrary.Examples.Pharmacogenomics.Patient_PKPG_2C_Ibuprofen,fileNamePrefix="Pharmacolibrary_Pharmacolibrary_Examples_Pharmacogenomics_Patient_PKPG_2C_Ibuprofen",fmuType="me_cs",version="3.0",platforms={"wasm"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.936e-06/2.936e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.656e-05/1.95e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.Pharmacogenomics.Patient_PKPG_2C_Ibuprofen): time 0.0096/0.00962, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.003658/0.01328, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.0004695/0.01375, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.001007/0.01475, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.0009787/0.01573, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.01677, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.000904/0.01767, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.000423/0.01809, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.000827/0.01892, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.0006254/0.01955, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0001235/0.01967, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0006343/0.0203, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0002016/0.0205, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0004882/0.02099, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.001528/0.02252, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 9.38e-05/0.02262, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 4.027e-06/0.02262, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.129e-05/0.02263, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.003418/0.02605, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 8.586e-05/0.02613, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004126/0.02655, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001348/0.02789, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.001577/0.02947, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.014e-05/0.02956, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002104/0.02977, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.002608/0.03238, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 5.616e-05/0.03244, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001384/0.03257, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.03259, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002159/0.03475, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004871/0.03962, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.002083/0.04171, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.001304/0.04301, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 4.519e-05/0.04306, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001942/0.045, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=55): time 6e-05/0.04506, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=58): time 0.0127/0.05776, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003326/0.05809, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001534/0.05963, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0002367/0.05987, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0003834/0.06025, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0003645/0.06061, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006532/0.06127, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0004867/0.06175, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.06326, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.001651/0.06491, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.006302/0.07121, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-05/0.07122, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=80) (initialization): time 0.005245/0.07647, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002104/0.07668, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.931e-05/0.0767, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 3.377e-05/0.07673, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009546/0.07769, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.937e-05/0.07772, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006419/0.07836, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002851/0.07864, allocations: 0 / 0, free: 0 / 0 Warning: Assuming fixed start value for the following 14 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.absorptionLumen.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real periodicDose.variableDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real peripheral.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 periodicDose.absorptionLumen.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real periodicDose.absorptionLumen.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real peripheral.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real peripheral.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real peripheral.rising:DISCRETE(fixed = true protected = true ) type: Boolean periodicDose.absorptionLumen.rising:DISCRETE(fixed = true protected = true ) type: Boolean central.rising:DISCRETE(fixed = true protected = true ) type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.central.Cmin,central.Cmin,$PRE.central.Cmax,central.Cmax,$PRE.periodicDose.absorptionLumen.Cmin,periodicDose.absorptionLumen.Cmin,$PRE.periodicDose.absorptionLumen.Cmax,periodicDose.absorptionLumen.Cmax,$PRE.peripheral.Cmin,peripheral.Cmin,$PRE.peripheral.Cmax,peripheral.Cmax,$PRE.peripheral.rising,$PRE.periodicDose.pulse.count,$PRE.periodicDose.pulse.T_start,$PRE.periodicDose.absorptionLumen.rising,$PRE.central.rising,CYP2C19.status,SLC22A2.status,peripheral.rising,periodicDose.pulse.count,periodicDose.pulse.T_start,periodicDose.absorptionLumen.rising,central.rising,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 6 * 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.001319/0.07996, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008981/0.08086, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003408/0.0812, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/0.08121, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/0.08123, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.08124, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007025/0.08827, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/0.08828, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000824/0.0891, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 1.434e-05/0.08912, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001944/0.08931, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-05/0.08932, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.08933, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006607/0.09593, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.001248/0.09718, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004009/0.09758, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005784/0.09816, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006192/0.09878, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002567/0.09904, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.0009657/0.1, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 1.886e-05/0.1, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.001983/0.102, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass,periodicDose.absorptionLumen.C,periodicDose.absorptionLumen.AUC,periodicDose.variableDose.TotalCumulativeMass,peripheral.C,peripheral.AUC) * Number of discrete variables: 20 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,central.Cmax,central.Cmin,central.rising,periodicDose.absorptionLumen.Cmax,periodicDose.absorptionLumen.Cmin,periodicDose.absorptionLumen.rising,periodicDose.pulse.T_start,periodicDose.pulse.count,peripheral.Cmax,peripheral.Cmin,peripheral.rising,SLC22A2.status,CYP2C19.status) * Number of discrete states: 18 (periodicDose.pulse.count,SLC22A2.status,CYP2C19.status,periodicDose.absorptionLumen.Cmin,$whenCondition5,periodicDose.absorptionLumen.Cmax,$whenCondition4,periodicDose.absorptionLumen.rising,peripheral.Cmin,$whenCondition3,peripheral.Cmax,$whenCondition2,peripheral.rising,central.Cmin,$whenCondition7,central.Cmax,$whenCondition6,central.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 5 * 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 0.008318/0.1103, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.00386/0.1142, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.1142, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.001957/0.1161, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002992/0.1191, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02665/0.1458, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008649/0.1467, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.0004859/0.1471, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001089/0.1482, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.0006654/0.1489, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU modelDescription.xml: time 0.00713/0.156, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU model kernel: time 0.003324/0.1593, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU translated model: time 0.02943/0.1888, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU component link: time 9.498e-06/0.1888, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU precompile: time 1.334e-05/0.1888, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU write (0.1 MB unzipped): time 0.0002134/0.189, allocations: 0 / 0, free: 0 / 0 Notification: Building FMU for platform 'wasm' (1/1). Notification: Finished FMU for platform 'wasm' (1/1). " [Timeout remaining time 660] simulate(Pharmacolibrary.Examples.Pharmacogenomics.Patient_PKPG_2C_Ibuprofen,startTime=0,stopTime=86400,tolerance=1e-06,numberOfIntervals=86400,outputFormat="empty",variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.Pharmacogenomics.Patient_PKPG_2C_Ibuprofen",simflags=" -alarm=240 -lv LOG_STATS -startTime=0 -stopTime=86400 -tolerance=1e-06 -stepSize=1 -noemit",resimulateExecutable="Pharmacolibrary_Pharmacolibrary_Examples_Pharmacogenomics_Patient_PKPG_2C_Ibuprofen.fmu") [Timeout 240] "" [Timeout remaining time 239] simulate(Pharmacolibrary.Examples.Pharmacogenomics.Patient_PKPG_2C_Ibuprofen,startTime=0,stopTime=86400,tolerance=1e-06,numberOfIntervals=86400,outputFormat="empty",variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.Pharmacogenomics.Patient_PKPG_2C_Ibuprofen",simflags=" -alarm=240 -lv LOG_STATS -startTime=0 -stopTime=86400 -tolerance=1e-06 -stepSize=1 -noemit -s fmi3:me:daskr",resimulateExecutable="Pharmacolibrary_Pharmacolibrary_Examples_Pharmacogenomics_Patient_PKPG_2C_Ibuprofen.fmu") [Timeout 240] "" [Timeout remaining time 239] simulate(Pharmacolibrary.Examples.Pharmacogenomics.Patient_PKPG_2C_Ibuprofen,startTime=0,stopTime=86400,tolerance=1e-06,numberOfIntervals=86400,outputFormat="empty",variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.Pharmacogenomics.Patient_PKPG_2C_Ibuprofen",simflags=" -alarm=240 -lv LOG_STATS -startTime=0 -stopTime=86400 -tolerance=1e-06 -stepSize=1 -noemit -s fmi3:cs",resimulateExecutable="Pharmacolibrary_Pharmacolibrary_Examples_Pharmacogenomics_Patient_PKPG_2C_Ibuprofen.fmu") [Timeout 240] "" [Timeout remaining time 237] [Calling sys.exit(0), Time elapsed: 7.663693545036949]