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.00242/0.00242, allocations: 109.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.002157/0.002157, allocations: 213.9 kB / 22.25 MB, free: 3.582 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.782/1.782, 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 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 1.473/1.473, allocations: 316.7 MB / 0.6144 GB, free: 92.92 MB / 410.7 MB " [Timeout remaining time 178] 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.004473/0.004473, allocations: 77.38 kB / 0.775 GB, free: 14.78 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.1803, allocations: 73.98 MB / 0.8472 GB, free: 4.93 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin): time 0.00567/0.186, allocations: 2.312 MB / 0.8495 GB, free: 2.617 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.3907/0.5766, allocations: 6.521 MB / 0.8559 GB, free: 21.93 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002213/0.5769, allocations: 3.75 kB / 0.8559 GB, free: 21.93 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.577, allocations: 25.64 kB / 0.8559 GB, free: 21.93 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002464/0.5772, allocations: 83.89 kB / 0.856 GB, free: 21.93 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002186/0.5775, allocations: 50.95 kB / 0.856 GB, free: 21.93 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002758/0.5777, allocations: 257.1 kB / 0.8563 GB, free: 21.9 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.5779, allocations: 38.33 kB / 0.8563 GB, free: 21.9 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001271/0.578, allocations: 99.67 kB / 0.8564 GB, free: 21.89 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002027/0.5782, allocations: 97 kB / 0.8565 GB, free: 21.86 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 3.441e-05/0.5782, allocations: 16.53 kB / 0.8565 GB, free: 21.86 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 3.585e-05/0.5783, allocations: 17.31 kB / 0.8565 GB, free: 21.86 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 4.047e-05/0.5783, allocations: 37.64 kB / 0.8566 GB, free: 21.86 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 9.253e-05/0.5784, allocations: 95.58 kB / 0.8567 GB, free: 21.83 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002456/0.5787, allocations: 198.7 kB / 0.8568 GB, free: 21.8 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.5787, allocations: 0 / 0.8568 GB, free: 21.8 MB / 490.8 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5787, allocations: 0 / 0.8568 GB, free: 21.8 MB / 490.8 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.5787, allocations: 2.062 kB / 0.8568 GB, free: 21.8 MB / 490.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.0007835/0.5795, allocations: 0.492 MB / 0.8573 GB, free: 21.4 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.5795, allocations: 12.06 kB / 0.8573 GB, free: 21.39 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.23e-05/0.5795, allocations: 25.98 kB / 0.8574 GB, free: 21.38 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002273/0.5798, allocations: 185.6 kB / 0.8575 GB, free: 21.23 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.5798, allocations: 9.266 kB / 0.8576 GB, free: 21.23 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.312e-05/0.5798, allocations: 26.41 kB / 0.8576 GB, free: 21.22 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000342/0.5802, allocations: 188.4 kB / 0.8578 GB, free: 21.14 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.5802, allocations: 4.172 kB / 0.8578 GB, free: 21.14 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.5802, allocations: 2.812 kB / 0.8578 GB, free: 21.14 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.5802, allocations: 3.25 kB / 0.8578 GB, free: 21.14 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003234/0.5805, allocations: 149.8 kB / 0.8579 GB, free: 21.11 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006965/0.5812, allocations: 485.2 kB / 0.8584 GB, free: 20.81 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004803/0.5817, allocations: 170.9 kB / 0.8585 GB, free: 20.75 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.5819, allocations: 99.98 kB / 0.8586 GB, free: 20.71 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.034e-05/0.5819, allocations: 0 / 0.8586 GB, free: 20.71 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003041/0.5822, allocations: 228.5 kB / 0.8588 GB, free: 20.57 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.312e-06/0.5822, allocations: 0.5312 kB / 0.8588 GB, free: 20.57 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.001335/0.5835, allocations: 0.7017 MB / 0.8595 GB, free: 20.21 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.5836, allocations: 138.7 kB / 0.8597 GB, free: 20.05 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.5837, allocations: 217.3 kB / 0.8599 GB, free: 19.95 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.5838, allocations: 31.48 kB / 0.8599 GB, free: 19.91 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.404e-05/0.5838, allocations: 131.8 kB / 0.86 GB, free: 19.82 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.331e-05/0.5839, allocations: 77.14 kB / 0.8601 GB, free: 19.78 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.135e-05/0.5839, allocations: 52.53 kB / 0.8602 GB, free: 19.76 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 6.216e-05/0.584, allocations: 336.8 kB / 0.8605 GB, free: 19.44 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/0.5842, allocations: 146 kB / 0.8606 GB, free: 19.37 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002273/0.5844, allocations: 220.5 kB / 0.8608 GB, free: 19.2 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003529/0.5848, allocations: 288.3 kB / 0.8611 GB, free: 19.03 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.5848, allocations: 2.25 kB / 0.8611 GB, free: 19.03 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005086/0.5853, allocations: 383.1 kB / 0.8615 GB, free: 18.86 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/0.5853, allocations: 61.19 kB / 0.8615 GB, free: 18.79 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.5853, allocations: 7.656 kB / 0.8615 GB, free: 18.79 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.5854, allocations: 5.25 kB / 0.8615 GB, free: 18.79 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000204/0.5856, allocations: 52.66 kB / 0.8616 GB, free: 18.79 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.5856, allocations: 3.781 kB / 0.8616 GB, free: 18.79 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001671/0.5857, allocations: 17.28 kB / 0.8616 GB, free: 18.79 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.5858, allocations: 16.33 kB / 0.8616 GB, free: 18.78 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.0001452/0.5859, allocations: 171.2 kB / 0.8618 GB, free: 18.63 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.894e-05/0.5859, allocations: 25.56 kB / 0.8618 GB, free: 18.62 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.524e-05/0.586, allocations: 31.62 kB / 0.8618 GB, free: 18.6 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.586, allocations: 6.859 kB / 0.8618 GB, free: 18.6 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.586, allocations: 3.938 kB / 0.8619 GB, free: 18.6 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.586, allocations: 0.5938 kB / 0.8619 GB, free: 18.6 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007957/0.5868, allocations: 0.5368 MB / 0.8624 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.5868, allocations: 0.75 kB / 0.8624 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001748/0.587, allocations: 42.47 kB / 0.8624 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.756e-06/0.587, allocations: 0.5 kB / 0.8624 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.587, allocations: 13.7 kB / 0.8624 GB, free: 18.29 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.587, allocations: 6.156 kB / 0.8624 GB, free: 18.29 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.587, allocations: 0 / 0.8624 GB, free: 18.29 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000675/0.5877, allocations: 499.7 kB / 0.8629 GB, free: 18.05 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.454e-05/0.5877, allocations: 18.72 kB / 0.8629 GB, free: 18.04 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.229e-05/0.5877, allocations: 10.94 kB / 0.8629 GB, free: 18.04 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.5879, allocations: 15.7 kB / 0.863 GB, free: 18.04 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.295e-05/0.588, allocations: 19.25 kB / 0.863 GB, free: 18.04 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.588, allocations: 17.11 kB / 0.863 GB, free: 18.03 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001089/0.5881, allocations: 154.9 kB / 0.8631 GB, free: 17.95 MB / 490.8 MB Notification: Performance of sort global known variables: time 7e-08/0.5881, allocations: 0 / 0.8631 GB, free: 17.95 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0004359/0.5885, allocations: 57.12 kB / 0.8632 GB, free: 17.95 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.0001203/0.5887, allocations: 108.2 kB / 0.8633 GB, free: 17.86 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0005179/0.5892, allocations: 382.7 kB / 0.8637 GB, free: 17.63 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.5892, allocations: 0 / 0.8637 GB, free: 17.63 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002327/0.5894, allocations: 171.2 kB / 0.8638 GB, free: 17.54 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005509/0.59, allocations: 70.14 kB / 0.8639 GB, free: 17.53 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001227/0.5912, allocations: 0.6803 MB / 0.8646 GB, free: 17.22 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001197/0.5913, allocations: 127.1 kB / 0.8647 GB, free: 17.14 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.5914, allocations: 25.44 kB / 0.8647 GB, free: 17.14 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.892e-05/0.5915, allocations: 24.48 kB / 0.8647 GB, free: 17.12 MB / 490.8 MB Notification: Performance of SimCode: time 7.42e-07/0.5915, allocations: 0 / 0.8647 GB, free: 17.12 MB / 490.8 MB Notification: Performance of Templates: time 0.008296/0.5998, allocations: 3.633 MB / 0.8683 GB, free: 16.8 MB / 490.8 MB " [Timeout remaining time 659] 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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N06A_Antidepressants.N06AX03_Mianserin.Mianserin.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 8.585177097003907]