Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin.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.002453/0.002453, 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.003228/0.003228, allocations: 211.6 kB / 22.25 MB, free: 3.57 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.792/1.792, allocations: 230.6 MB / 256 MB, free: 9.613 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.466/1.466, allocations: 316.7 MB / 0.6144 GB, free: 93.43 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,tolerance=1e-09,outputFormat="empty",numberOfIntervals=345600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin,tolerance=1e-09,outputFormat="empty",numberOfIntervals=345600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin") [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.003777/0.003777, allocations: 73.61 kB / 0.775 GB, free: 15.04 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1698, allocations: 73.99 MB / 0.8473 GB, free: 5.176 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin): time 0.004234/0.174, allocations: 2.297 MB / 0.8495 GB, free: 2.879 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.3724/0.5464, allocations: 6.535 MB / 0.8559 GB, free: 21.62 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000394/0.5468, allocations: 6.25 kB / 0.8559 GB, free: 21.62 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001943/0.547, allocations: 24.77 kB / 0.8559 GB, free: 21.62 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002838/0.5473, allocations: 80.91 kB / 0.856 GB, free: 21.62 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002714/0.5476, allocations: 53.19 kB / 0.856 GB, free: 21.62 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003672/0.5479, allocations: 258.6 kB / 0.8563 GB, free: 21.6 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001783/0.5481, allocations: 37.42 kB / 0.8563 GB, free: 21.59 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.5483, allocations: 97.91 kB / 0.8564 GB, free: 21.58 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002692/0.5485, allocations: 96.62 kB / 0.8565 GB, free: 21.56 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 4.052e-05/0.5486, allocations: 19.28 kB / 0.8565 GB, free: 21.56 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 5.013e-05/0.5486, allocations: 16.59 kB / 0.8565 GB, free: 21.56 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 5.687e-05/0.5487, allocations: 40.67 kB / 0.8566 GB, free: 21.55 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.5488, allocations: 93.64 kB / 0.8567 GB, free: 21.52 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0003085/0.5491, allocations: 198.6 kB / 0.8569 GB, free: 21.49 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.5491, allocations: 0 / 0.8569 GB, free: 21.49 MB / 490.8 MB Notification: Performance of FrontEnd: time 2.915e-06/0.5491, allocations: 0 / 0.8569 GB, free: 21.49 MB / 490.8 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.5491, allocations: 0 / 0.8569 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.0009947/0.5501, allocations: 497.2 kB / 0.8573 GB, free: 21.09 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.5502, allocations: 10.7 kB / 0.8573 GB, free: 21.09 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.33e-05/0.5502, allocations: 24.05 kB / 0.8574 GB, free: 21.08 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002784/0.5505, allocations: 188.3 kB / 0.8575 GB, free: 20.93 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.5505, allocations: 8.953 kB / 0.8576 GB, free: 20.93 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.807e-05/0.5506, allocations: 21.48 kB / 0.8576 GB, free: 20.92 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000409/0.551, allocations: 190.1 kB / 0.8578 GB, free: 20.84 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/0.551, allocations: 1.531 kB / 0.8578 GB, free: 20.84 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.551, allocations: 8.266 kB / 0.8578 GB, free: 20.84 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.5511, allocations: 6.062 kB / 0.8578 GB, free: 20.84 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003759/0.5514, allocations: 148.5 kB / 0.8579 GB, free: 20.8 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007841/0.5522, allocations: 482.1 kB / 0.8584 GB, free: 20.51 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005145/0.5527, allocations: 171 kB / 0.8585 GB, free: 20.45 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/0.5529, allocations: 95.8 kB / 0.8586 GB, free: 20.41 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.2e-05/0.5529, allocations: 3.062 kB / 0.8586 GB, free: 20.41 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003361/0.5532, allocations: 231.2 kB / 0.8589 GB, free: 20.27 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.553e-06/0.5532, allocations: 0.625 kB / 0.8589 GB, free: 20.27 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.001438/0.5547, allocations: 0.7039 MB / 0.8595 GB, free: 19.91 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.825e-05/0.5547, allocations: 138.4 kB / 0.8597 GB, free: 19.75 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002166/0.555, allocations: 217 kB / 0.8599 GB, free: 19.64 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.555, allocations: 34.27 kB / 0.8599 GB, free: 19.61 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 8.195e-05/0.5551, allocations: 130.6 kB / 0.86 GB, free: 19.52 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.838e-05/0.5551, allocations: 75.84 kB / 0.8601 GB, free: 19.48 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.296e-05/0.5552, allocations: 52.22 kB / 0.8602 GB, free: 19.46 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 8.321e-05/0.5553, allocations: 339 kB / 0.8605 GB, free: 19.14 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002329/0.5555, allocations: 144.3 kB / 0.8606 GB, free: 19.07 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.5558, allocations: 222.9 kB / 0.8608 GB, free: 18.9 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003719/0.5561, allocations: 277.3 kB / 0.8611 GB, free: 18.73 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.5561, allocations: 2.547 kB / 0.8611 GB, free: 18.73 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000582/0.5567, allocations: 390.2 kB / 0.8615 GB, free: 18.55 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.673e-05/0.5568, allocations: 65.56 kB / 0.8615 GB, free: 18.49 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.5568, allocations: 8.625 kB / 0.8615 GB, free: 18.49 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-05/0.5568, allocations: 3.562 kB / 0.8615 GB, free: 18.49 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002061/0.557, allocations: 53.09 kB / 0.8616 GB, free: 18.48 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.557, allocations: 4.75 kB / 0.8616 GB, free: 18.48 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001742/0.5572, allocations: 20.84 kB / 0.8616 GB, free: 18.48 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.5572, allocations: 8.844 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.0001939/0.5574, allocations: 177.3 kB / 0.8618 GB, free: 18.33 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.5574, allocations: 24.2 kB / 0.8618 GB, free: 18.32 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.752e-05/0.5575, allocations: 26.62 kB / 0.8618 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.5575, allocations: 1.719 kB / 0.8618 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.5575, allocations: 2.469 kB / 0.8619 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.5575, allocations: 1.078 kB / 0.8619 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007342/0.5582, allocations: 0.5464 MB / 0.8624 GB, free: 18 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5582, allocations: 0.7188 kB / 0.8624 GB, free: 18 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.5584, allocations: 38.23 kB / 0.8624 GB, free: 18 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.5584, allocations: 3.938 kB / 0.8624 GB, free: 18 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.5584, allocations: 11.78 kB / 0.8624 GB, free: 17.99 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.5584, allocations: 4.625 kB / 0.8624 GB, free: 17.99 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.5584, allocations: 0.875 kB / 0.8624 GB, free: 17.99 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006986/0.5591, allocations: 0.4897 MB / 0.8629 GB, free: 17.75 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.981e-05/0.5592, allocations: 22.97 kB / 0.8629 GB, free: 17.73 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.265e-05/0.5592, allocations: 7.219 kB / 0.863 GB, free: 17.73 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001614/0.5594, allocations: 13.14 kB / 0.863 GB, free: 17.73 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.654e-05/0.5595, allocations: 22.14 kB / 0.863 GB, free: 17.73 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.5595, allocations: 6.328 kB / 0.863 GB, free: 17.73 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001328/0.5596, allocations: 161.9 kB / 0.8631 GB, free: 17.66 MB / 490.8 MB Notification: Performance of sort global known variables: time 6e-08/0.5596, allocations: 0 / 0.8631 GB, free: 17.66 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002958/0.5599, allocations: 56.53 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.000145/0.5601, allocations: 115.1 kB / 0.8633 GB, free: 17.56 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0005888/0.5607, allocations: 381.5 kB / 0.8637 GB, free: 17.33 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.5607, allocations: 1.938 kB / 0.8637 GB, free: 17.33 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002493/0.5609, allocations: 171.3 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.000484/0.5614, allocations: 70.05 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.001354/0.5628, allocations: 0.6833 MB / 0.8646 GB, free: 16.9 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001281/0.5629, allocations: 122.3 kB / 0.8647 GB, free: 16.83 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.0001167/0.563, allocations: 26.17 kB / 0.8647 GB, free: 16.82 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.359e-05/0.5631, allocations: 20.98 kB / 0.8647 GB, free: 16.82 MB / 490.8 MB Notification: Performance of SimCode: time 6.51e-07/0.5631, allocations: 3.938 kB / 0.8647 GB, free: 16.81 MB / 490.8 MB Notification: Performance of Templates: time 0.009142/0.5722, allocations: 3.63 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.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 8.002581796143204]