Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin.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.0009327/0.0009327, allocations: 104.3 kB / 19.71 MB, free: 440 kB / 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.001428/0.001428, allocations: 217.3 kB / 23.01 MB, free: 2.961 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.094/1.094, allocations: 230.6 MB / 256.8 MB, free: 9.613 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo): time 0.7527/0.7527, allocations: 312.3 MB / 0.6108 GB, free: 97.63 MB / 410.7 MB " [Timeout remaining time 179] Using package Pharmacolibrary with version 26.11 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.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.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin,tolerance=1e-09,outputFormat="empty",numberOfIntervals=604800,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin,tolerance=1e-09,outputFormat="empty",numberOfIntervals=604800,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin") [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.002284/0.002284, allocations: 69.33 kB / 0.7699 GB, free: 20.2 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1412, allocations: 74 MB / 0.8421 GB, free: 10.34 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin): time 0.002553/0.1438, allocations: 2.318 MB / 0.8444 GB, free: 8.027 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.004977/0.1487, allocations: 6.525 MB / 0.8508 GB, free: 1.5 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.1488, allocations: 0.5 kB / 0.8508 GB, free: 1.5 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.149, allocations: 31.66 kB / 0.8508 GB, free: 1.469 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001722/0.1491, allocations: 80.62 kB / 0.8509 GB, free: 1.391 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001815/0.1493, allocations: 48.58 kB / 0.8509 GB, free: 1.344 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002167/0.1495, allocations: 266.7 kB / 0.8512 GB, free: 1.082 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.1496, allocations: 29.33 kB / 0.8512 GB, free: 1.055 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.1497, allocations: 100.3 kB / 0.8513 GB, free: 0.957 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001684/0.1499, allocations: 95.48 kB / 0.8514 GB, free: 0.8633 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.1499, allocations: 16.59 kB / 0.8514 GB, free: 0.8477 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.536e-05/0.15, allocations: 16.62 kB / 0.8514 GB, free: 0.832 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 3.366e-05/0.15, allocations: 47.83 kB / 0.8515 GB, free: 0.7852 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 6.98e-05/0.1501, allocations: 88.22 kB / 0.8516 GB, free: 0.6992 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.000186/0.1503, allocations: 195.2 kB / 0.8517 GB, free: 0.5078 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1503, allocations: 0.5938 kB / 0.8517 GB, free: 0.5078 MB / 474.8 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1503, allocations: 0.625 kB / 0.8517 GB, free: 0.5078 MB / 474.8 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.1503, allocations: 0 / 0.8517 GB, free: 0.5078 MB / 474.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006491/0.1509, allocations: 497.7 kB / 0.8522 GB, free: 15.98 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.151, allocations: 15.89 kB / 0.8522 GB, free: 15.96 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.558e-05/0.151, allocations: 25.48 kB / 0.8523 GB, free: 15.94 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001825/0.1512, allocations: 191.7 kB / 0.8524 GB, free: 15.72 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.1512, allocations: 9.547 kB / 0.8525 GB, free: 15.71 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.996e-05/0.1512, allocations: 16.66 kB / 0.8525 GB, free: 15.7 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002429/0.1515, allocations: 187.1 kB / 0.8526 GB, free: 15.5 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.1515, allocations: 7.938 kB / 0.8527 GB, free: 15.49 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.1515, allocations: 0.625 kB / 0.8527 GB, free: 15.49 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.1515, allocations: 11.88 kB / 0.8527 GB, free: 15.48 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001974/0.1517, allocations: 147.5 kB / 0.8528 GB, free: 15.33 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005239/0.1522, allocations: 482.8 kB / 0.8533 GB, free: 14.83 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003097/0.1525, allocations: 181.4 kB / 0.8534 GB, free: 14.64 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.1526, allocations: 99.08 kB / 0.8535 GB, free: 14.53 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.1526, allocations: 0 / 0.8535 GB, free: 14.53 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000236/0.1529, allocations: 225.8 kB / 0.8538 GB, free: 14.28 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.172e-06/0.1529, allocations: 0.625 kB / 0.8538 GB, free: 14.28 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.0008816/0.1538, allocations: 0.7039 MB / 0.8544 GB, free: 13.52 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.1538, allocations: 140.5 kB / 0.8546 GB, free: 13.35 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.1539, allocations: 207.6 kB / 0.8548 GB, free: 13.14 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.154, allocations: 34.3 kB / 0.8548 GB, free: 13.1 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.345e-05/0.154, allocations: 132.4 kB / 0.8549 GB, free: 12.97 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.821e-05/0.1541, allocations: 76.05 kB / 0.855 GB, free: 12.89 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.306e-05/0.1541, allocations: 53.7 kB / 0.8551 GB, free: 12.84 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 8.118e-05/0.1542, allocations: 335.2 kB / 0.8554 GB, free: 12.5 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.1543, allocations: 145.5 kB / 0.8555 GB, free: 12.34 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.1545, allocations: 228.8 kB / 0.8557 GB, free: 12.07 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2393/0.3938, allocations: 276.4 kB / 0.856 GB, free: 30.28 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3938, allocations: 0 / 0.856 GB, free: 30.28 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004677/0.3943, allocations: 391.3 kB / 0.8564 GB, free: 30.12 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.281e-05/0.3944, allocations: 62.11 kB / 0.8564 GB, free: 30.05 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.3944, allocations: 6.344 kB / 0.8564 GB, free: 30.05 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.705e-05/0.3944, allocations: 4.562 kB / 0.8564 GB, free: 30.05 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.3945, allocations: 49.91 kB / 0.8565 GB, free: 30.05 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.3945, allocations: 14.53 kB / 0.8565 GB, free: 30.05 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.3947, allocations: 19.73 kB / 0.8565 GB, free: 30.05 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.3947, allocations: 13.5 kB / 0.8565 GB, free: 30.05 MB / 490.8 MB Warning: Assuming fixed start value for the following 1 variables: periodicDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (central.Cmin,$PRE.central.Cmin,central.Cmax,$PRE.central.Cmax,periodicDose.pulse.count,$PRE.periodicDose.pulse.count,periodicDose.pulse.T_start,$PRE.periodicDose.pulse.T_start,central.rising,$PRE.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 (31): * Single equations (assignments): 29 * 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.0002019/0.3949, allocations: 171 kB / 0.8567 GB, free: 29.91 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.107e-05/0.3949, allocations: 25.12 kB / 0.8567 GB, free: 29.91 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.374e-05/0.395, allocations: 21.75 kB / 0.8567 GB, free: 29.9 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.395, allocations: 8.938 kB / 0.8567 GB, free: 29.9 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.395, allocations: 0 / 0.8567 GB, free: 29.9 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.395, allocations: 0 / 0.8567 GB, free: 29.9 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005805/0.3956, allocations: 0.5424 MB / 0.8573 GB, free: 29.61 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3956, allocations: 0 / 0.8573 GB, free: 29.61 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.3957, allocations: 34.45 kB / 0.8573 GB, free: 29.61 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.3957, allocations: 2.703 kB / 0.8573 GB, free: 29.61 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.3957, allocations: 11.41 kB / 0.8573 GB, free: 29.61 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3957, allocations: 1.812 kB / 0.8573 GB, free: 29.61 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.3957, allocations: 4.531 kB / 0.8573 GB, free: 29.61 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004422/0.3962, allocations: 0.4905 MB / 0.8578 GB, free: 29.38 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.268e-05/0.3962, allocations: 18.92 kB / 0.8578 GB, free: 29.38 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.963e-05/0.3962, allocations: 11.5 kB / 0.8578 GB, free: 29.38 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.732e-05/0.3963, allocations: 13.73 kB / 0.8578 GB, free: 29.38 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.67e-05/0.3964, allocations: 23.08 kB / 0.8579 GB, free: 29.38 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.3964, allocations: 7.094 kB / 0.8579 GB, free: 29.38 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001018/0.3965, allocations: 157.4 kB / 0.858 GB, free: 29.3 MB / 490.8 MB Notification: Performance of sort global known variables: time 6e-08/0.3965, allocations: 3.281 kB / 0.858 GB, free: 29.3 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.000202/0.3967, allocations: 60.31 kB / 0.8581 GB, free: 29.3 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (central.C,central.AUC,elim.MExc,periodicDose.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 0.000105/0.3968, allocations: 115.5 kB / 0.8582 GB, free: 29.21 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0003591/0.3972, allocations: 376.5 kB / 0.8586 GB, free: 28.98 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.3972, allocations: 0 / 0.8586 GB, free: 28.98 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001326/0.3973, allocations: 174.3 kB / 0.8587 GB, free: 28.89 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003447/0.3976, allocations: 67.31 kB / 0.8588 GB, free: 28.88 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009545/0.3986, allocations: 0.7086 MB / 0.8595 GB, free: 28.57 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.538e-05/0.3987, allocations: 124.8 kB / 0.8596 GB, free: 28.5 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.078e-05/0.3987, allocations: 25.11 kB / 0.8596 GB, free: 28.49 MB / 490.8 MB Notification: Performance of SimCode: time 7.72e-07/0.3987, allocations: 0 / 0.8596 GB, free: 28.49 MB / 490.8 MB Notification: Performance of Templates: time 0.004672/0.4034, allocations: 2.939 MB / 0.8625 GB, free: 28.26 MB / 490.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.40998634044081]