Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference.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.002032/0.002032, allocations: 105.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.002167/0.002167, allocations: 219.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.767/1.767, allocations: 230.6 MB / 256 MB, free: 9.641 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.458/1.458, allocations: 316.7 MB / 0.6144 GB, free: 93.42 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.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=345600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=345600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference") [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.00443/0.00443, allocations: 80.5 kB / 0.775 GB, free: 15.03 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1575, allocations: 73.99 MB / 0.8472 GB, free: 5.188 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference): time 0.004317/0.1618, allocations: 2.3 MB / 0.8495 GB, free: 2.887 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.3824/0.5442, allocations: 6.51 MB / 0.8558 GB, free: 21.61 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002704/0.5445, allocations: 4.484 kB / 0.8558 GB, free: 21.61 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.5446, allocations: 29.12 kB / 0.8559 GB, free: 21.61 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002649/0.5449, allocations: 82.06 kB / 0.856 GB, free: 21.61 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002413/0.5451, allocations: 54.14 kB / 0.856 GB, free: 21.61 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002853/0.5454, allocations: 257.7 kB / 0.8563 GB, free: 21.6 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001689/0.5456, allocations: 36.44 kB / 0.8563 GB, free: 21.59 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.5457, allocations: 100.3 kB / 0.8564 GB, free: 21.58 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002306/0.546, allocations: 96.25 kB / 0.8565 GB, free: 21.55 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 3.762e-05/0.546, allocations: 17.06 kB / 0.8565 GB, free: 21.55 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 4.261e-05/0.546, allocations: 17.84 kB / 0.8565 GB, free: 21.55 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 4.99e-05/0.5461, allocations: 41.2 kB / 0.8565 GB, free: 21.55 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.5462, allocations: 94.16 kB / 0.8566 GB, free: 21.52 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002694/0.5465, allocations: 195.7 kB / 0.8568 GB, free: 21.49 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.5465, allocations: 0 / 0.8568 GB, free: 21.49 MB / 490.8 MB Notification: Performance of FrontEnd: time 1.423e-06/0.5465, allocations: 0 / 0.8568 GB, free: 21.49 MB / 490.8 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.5465, allocations: 1.281 kB / 0.8568 GB, free: 21.49 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.0008614/0.5473, allocations: 0.4897 MB / 0.8573 GB, free: 21.09 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.5474, allocations: 11.44 kB / 0.8573 GB, free: 21.09 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.988e-05/0.5474, allocations: 26.11 kB / 0.8573 GB, free: 21.08 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.5477, allocations: 180.1 kB / 0.8575 GB, free: 20.92 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.5477, allocations: 11.7 kB / 0.8575 GB, free: 20.92 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.177e-05/0.5477, allocations: 29.36 kB / 0.8575 GB, free: 20.91 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003494/0.5481, allocations: 189.4 kB / 0.8577 GB, free: 20.84 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.5481, allocations: 0.5938 kB / 0.8577 GB, free: 20.84 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.5481, allocations: 3.062 kB / 0.8577 GB, free: 20.84 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.5481, allocations: 3.312 kB / 0.8577 GB, free: 20.84 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003585/0.5485, allocations: 153.8 kB / 0.8579 GB, free: 20.8 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007769/0.5493, allocations: 480.8 kB / 0.8583 GB, free: 20.5 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005139/0.5498, allocations: 175.5 kB / 0.8585 GB, free: 20.45 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000179/0.55, allocations: 88.72 kB / 0.8586 GB, free: 20.41 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.55, allocations: 9.25 kB / 0.8586 GB, free: 20.41 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003675/0.5503, allocations: 226.2 kB / 0.8588 GB, free: 20.26 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.383e-06/0.5503, allocations: 0.5 kB / 0.8588 GB, free: 20.26 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.001509/0.5518, allocations: 0.7009 MB / 0.8595 GB, free: 19.91 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.5519, allocations: 138.6 kB / 0.8596 GB, free: 19.75 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00022/0.5521, allocations: 217 kB / 0.8598 GB, free: 19.64 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.5521, allocations: 34.39 kB / 0.8599 GB, free: 19.61 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 8.011e-05/0.5522, allocations: 132.2 kB / 0.86 GB, free: 19.52 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.819e-05/0.5523, allocations: 70.2 kB / 0.8601 GB, free: 19.48 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.979e-05/0.5523, allocations: 55.05 kB / 0.8601 GB, free: 19.46 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 8.299e-05/0.5524, allocations: 340.2 kB / 0.8604 GB, free: 19.14 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002318/0.5527, allocations: 146.4 kB / 0.8606 GB, free: 19.06 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000236/0.5529, allocations: 222.3 kB / 0.8608 GB, free: 18.89 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000403/0.5533, allocations: 284 kB / 0.8611 GB, free: 18.73 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.5533, allocations: 0.5312 kB / 0.8611 GB, free: 18.73 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005531/0.5539, allocations: 390.8 kB / 0.8614 GB, free: 18.55 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.131e-05/0.5539, allocations: 61.84 kB / 0.8615 GB, free: 18.49 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.5539, allocations: 5.75 kB / 0.8615 GB, free: 18.48 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.5539, allocations: 4.25 kB / 0.8615 GB, free: 18.48 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002274/0.5541, allocations: 53.88 kB / 0.8616 GB, free: 18.48 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.5542, allocations: 5.156 kB / 0.8616 GB, free: 18.48 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.5543, allocations: 17.59 kB / 0.8616 GB, free: 18.48 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.949e-05/0.5544, allocations: 8.406 kB / 0.8616 GB, free: 18.48 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.0001822/0.5545, allocations: 180.1 kB / 0.8618 GB, free: 18.33 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.23e-05/0.5546, allocations: 24.73 kB / 0.8618 GB, free: 18.32 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.663e-05/0.5546, allocations: 32.97 kB / 0.8618 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.5546, allocations: 7.625 kB / 0.8618 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.5546, allocations: 0 / 0.8618 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.5546, allocations: 1.688 kB / 0.8618 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007265/0.5554, allocations: 0.5431 MB / 0.8624 GB, free: 18 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.5554, allocations: 3.938 kB / 0.8624 GB, free: 18 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001837/0.5556, allocations: 35.98 kB / 0.8624 GB, free: 17.99 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.5556, allocations: 0 / 0.8624 GB, free: 17.99 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.5556, allocations: 8.156 kB / 0.8624 GB, free: 17.99 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.5556, allocations: 5.5 kB / 0.8624 GB, free: 17.99 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.5556, allocations: 0.9375 kB / 0.8624 GB, free: 17.99 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006949/0.5563, allocations: 499.9 kB / 0.8629 GB, free: 17.75 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.577e-05/0.5563, allocations: 18.88 kB / 0.8629 GB, free: 17.73 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.43e-05/0.5564, allocations: 11.61 kB / 0.8629 GB, free: 17.73 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.5565, allocations: 11.19 kB / 0.8629 GB, free: 17.73 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.807e-05/0.5566, allocations: 24.92 kB / 0.8629 GB, free: 17.73 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.5566, allocations: 12.27 kB / 0.863 GB, free: 17.73 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001174/0.5567, allocations: 160.5 kB / 0.8631 GB, free: 17.65 MB / 490.8 MB Notification: Performance of sort global known variables: time 8e-08/0.5567, allocations: 0 / 0.8631 GB, free: 17.65 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0003024/0.557, allocations: 57.31 kB / 0.8632 GB, free: 17.65 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.0001288/0.5572, allocations: 109.8 kB / 0.8633 GB, free: 17.56 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0005792/0.5578, allocations: 379.1 kB / 0.8636 GB, free: 17.33 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5578, allocations: 2.281 kB / 0.8636 GB, free: 17.33 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002425/0.558, allocations: 172.5 kB / 0.8638 GB, free: 17.23 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004738/0.5585, allocations: 76.77 kB / 0.8639 GB, free: 17.23 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.5598, allocations: 0.682 MB / 0.8645 GB, free: 16.91 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001428/0.5599, allocations: 126.4 kB / 0.8647 GB, free: 16.83 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.0001162/0.56, allocations: 30.62 kB / 0.8647 GB, free: 16.82 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.941e-05/0.5601, allocations: 21.34 kB / 0.8647 GB, free: 16.82 MB / 490.8 MB Notification: Performance of SimCode: time 4.21e-07/0.5601, allocations: 0 / 0.8647 GB, free: 16.82 MB / 490.8 MB Notification: Performance of Templates: time 0.009364/0.5695, allocations: 3.638 MB / 0.8683 GB, free: 16.49 MB / 490.8 MB " [Timeout remaining time 659] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 8.187441669171676]