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.001088/0.001088, allocations: 100.4 kB / 19.71 MB, free: 444 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.0009623/0.0009623, allocations: 211 kB / 23 MB, free: 2.977 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 0.906/0.906, allocations: 230.6 MB / 256.8 MB, free: 9.605 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.6798/0.6798, allocations: 312.3 MB / 0.6108 GB, free: 97.53 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.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.004097/0.004097, allocations: 76.84 kB / 0.7699 GB, free: 20.2 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1173, allocations: 73.98 MB / 0.8421 GB, free: 10.35 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference): time 0.002591/0.1199, allocations: 2.302 MB / 0.8444 GB, free: 8.047 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.005466/0.1254, allocations: 6.525 MB / 0.8507 GB, free: 1.52 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.1255, allocations: 7.938 kB / 0.8507 GB, free: 1.512 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.1256, allocations: 24.34 kB / 0.8508 GB, free: 1.488 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002099/0.1258, allocations: 84.47 kB / 0.8508 GB, free: 1.406 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.1261, allocations: 56.5 kB / 0.8509 GB, free: 1.352 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002436/0.1263, allocations: 258.7 kB / 0.8511 GB, free: 1.098 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.1264, allocations: 33.19 kB / 0.8512 GB, free: 1.066 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.1266, allocations: 95.66 kB / 0.8513 GB, free: 0.9727 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.1267, allocations: 99.97 kB / 0.8514 GB, free: 0.875 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 2.446e-05/0.1268, allocations: 16.75 kB / 0.8514 GB, free: 0.8594 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.426e-05/0.1268, allocations: 16 kB / 0.8514 GB, free: 0.8438 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 3.402e-05/0.1268, allocations: 44.41 kB / 0.8514 GB, free: 0.8008 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0003835/0.1272, allocations: 88.16 kB / 0.8515 GB, free: 0.7148 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.000201/0.1274, allocations: 195.2 kB / 0.8517 GB, free: 0.5234 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1274, allocations: 0.625 kB / 0.8517 GB, free: 0.5234 MB / 474.8 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1274, allocations: 0.5 kB / 0.8517 GB, free: 0.5234 MB / 474.8 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.1274, allocations: 0 / 0.8517 GB, free: 0.5234 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.0006786/0.1281, allocations: 0.489 MB / 0.8522 GB, free: 15.99 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.1281, allocations: 12.03 kB / 0.8522 GB, free: 15.98 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.833e-05/0.1282, allocations: 25.42 kB / 0.8522 GB, free: 15.95 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002013/0.1284, allocations: 187 kB / 0.8524 GB, free: 15.75 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.1284, allocations: 9.203 kB / 0.8524 GB, free: 15.74 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.246e-05/0.1284, allocations: 24.52 kB / 0.8524 GB, free: 15.71 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002557/0.1287, allocations: 190.8 kB / 0.8526 GB, free: 15.51 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.1287, allocations: 0.625 kB / 0.8526 GB, free: 15.51 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.1287, allocations: 8 kB / 0.8526 GB, free: 15.5 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1287, allocations: 0.5938 kB / 0.8526 GB, free: 15.5 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.1289, allocations: 151.4 kB / 0.8528 GB, free: 15.35 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005584/0.1295, allocations: 490 kB / 0.8532 GB, free: 14.84 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003264/0.1298, allocations: 179.8 kB / 0.8534 GB, free: 14.65 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.1299, allocations: 95.86 kB / 0.8535 GB, free: 14.55 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 9.077e-06/0.1299, allocations: 0 / 0.8535 GB, free: 14.55 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002286/0.1301, allocations: 229.2 kB / 0.8537 GB, free: 14.3 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.222e-06/0.1301, allocations: 0.5938 kB / 0.8537 GB, free: 14.3 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.0009356/0.1311, allocations: 0.6994 MB / 0.8544 GB, free: 13.54 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/0.1311, allocations: 141.1 kB / 0.8545 GB, free: 13.37 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.1313, allocations: 215 kB / 0.8547 GB, free: 13.15 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.1313, allocations: 30.3 kB / 0.8548 GB, free: 13.12 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.512e-05/0.1314, allocations: 132.5 kB / 0.8549 GB, free: 12.98 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.94e-05/0.1314, allocations: 76.03 kB / 0.855 GB, free: 12.91 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.155e-05/0.1315, allocations: 58.34 kB / 0.855 GB, free: 12.85 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 7.439e-05/0.1315, allocations: 334.8 kB / 0.8553 GB, free: 12.51 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.1317, allocations: 145.6 kB / 0.8555 GB, free: 12.35 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.1319, allocations: 230.2 kB / 0.8557 GB, free: 12.08 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2464/0.3783, allocations: 275 kB / 0.856 GB, free: 30.33 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.3783, allocations: 4.375 kB / 0.856 GB, free: 30.33 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004023/0.3787, allocations: 389.4 kB / 0.8563 GB, free: 30.17 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/0.3788, allocations: 69.48 kB / 0.8564 GB, free: 30.11 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.3788, allocations: 1.844 kB / 0.8564 GB, free: 30.11 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.3788, allocations: 4.219 kB / 0.8564 GB, free: 30.11 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.3789, allocations: 49.73 kB / 0.8565 GB, free: 30.11 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.3789, allocations: 5.562 kB / 0.8565 GB, free: 30.11 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.379, allocations: 20.14 kB / 0.8565 GB, free: 30.11 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.379, allocations: 12.66 kB / 0.8565 GB, free: 30.11 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.0001502/0.3792, allocations: 174.3 kB / 0.8567 GB, free: 29.96 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.517e-05/0.3792, allocations: 25.72 kB / 0.8567 GB, free: 29.96 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.457e-05/0.3793, allocations: 24.86 kB / 0.8567 GB, free: 29.96 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.3793, allocations: 2.453 kB / 0.8567 GB, free: 29.96 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3793, allocations: 2.781 kB / 0.8567 GB, free: 29.96 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-06/0.3793, allocations: 0.75 kB / 0.8567 GB, free: 29.96 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004728/0.3797, allocations: 0.5357 MB / 0.8572 GB, free: 29.66 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3797, allocations: 0 / 0.8572 GB, free: 29.66 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.3798, allocations: 37.05 kB / 0.8573 GB, free: 29.66 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.3798, allocations: 4.734 kB / 0.8573 GB, free: 29.66 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.3799, allocations: 7.812 kB / 0.8573 GB, free: 29.66 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.3799, allocations: 6.141 kB / 0.8573 GB, free: 29.66 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3799, allocations: 0 / 0.8573 GB, free: 29.66 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003973/0.3803, allocations: 0.4907 MB / 0.8578 GB, free: 29.43 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.861e-05/0.3803, allocations: 22.44 kB / 0.8578 GB, free: 29.43 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.854e-05/0.3803, allocations: 13.25 kB / 0.8578 GB, free: 29.43 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.266e-05/0.3804, allocations: 15 kB / 0.8578 GB, free: 29.43 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.516e-05/0.3805, allocations: 21.61 kB / 0.8578 GB, free: 29.43 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.639e-06/0.3805, allocations: 6.75 kB / 0.8578 GB, free: 29.43 MB / 490.8 MB Notification: Performance of sorting global known variables: time 7.712e-05/0.3806, allocations: 158 kB / 0.858 GB, free: 29.36 MB / 490.8 MB Notification: Performance of sort global known variables: time 7e-08/0.3806, allocations: 2.297 kB / 0.858 GB, free: 29.36 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0001853/0.3807, allocations: 55.12 kB / 0.858 GB, free: 29.36 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 7.696e-05/0.3808, allocations: 121.1 kB / 0.8582 GB, free: 29.27 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0003155/0.3811, allocations: 375.8 kB / 0.8585 GB, free: 29.04 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3811, allocations: 2.562 kB / 0.8585 GB, free: 29.04 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001216/0.3813, allocations: 170.8 kB / 0.8587 GB, free: 28.95 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.3815, allocations: 65.67 kB / 0.8587 GB, free: 28.94 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007849/0.3823, allocations: 0.6896 MB / 0.8594 GB, free: 28.64 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.898e-05/0.3824, allocations: 125.7 kB / 0.8595 GB, free: 28.56 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.428e-05/0.3824, allocations: 26.83 kB / 0.8596 GB, free: 28.55 MB / 490.8 MB Notification: Performance of SimCode: time 4.81e-07/0.3824, allocations: 4.438 kB / 0.8596 GB, free: 28.55 MB / 490.8 MB Notification: Performance of Templates: time 0.003437/0.3859, allocations: 2.948 MB / 0.8624 GB, free: 28.34 MB / 490.8 MB " [Timeout remaining time 660] 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 > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin_Merchant2013_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.238369481638074]