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.001933/0.001933, allocations: 88.44 kB / 19.18 MB, free: 0.7383 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.002016/0.002016, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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.675/1.675, allocations: 177.1 MB / 202.8 MB, free: 5.578 MB / 186.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.475/1.475, allocations: 293 MB / 0.5392 GB, free: 50.09 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: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 0.6999 GB, free: 8.605 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.499e-05/2.632e-05, allocations: 2.281 kB / 0.6999 GB, free: 8.602 MB / 410.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N05C_HypnoticsAndSedatives.N05CH01_Melatonin.Melatonin): time 0.002843/0.002869, allocations: 2.308 MB / 0.7022 GB, free: 6.273 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.006304/0.009173, allocations: 6.533 MB / 0.7086 GB, free: 15.73 MB / 426.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002586/0.009432, allocations: 3.938 kB / 0.7086 GB, free: 15.73 MB / 426.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001752/0.009607, allocations: 31.77 kB / 0.7086 GB, free: 15.7 MB / 426.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002859/0.009893, allocations: 83.28 kB / 0.7087 GB, free: 15.61 MB / 426.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002645/0.01016, allocations: 51.86 kB / 0.7087 GB, free: 15.56 MB / 426.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003818/0.01054, allocations: 266.6 kB / 0.709 GB, free: 15.3 MB / 426.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.0107, allocations: 40.5 kB / 0.709 GB, free: 15.27 MB / 426.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002271/0.01092, allocations: 143.6 kB / 0.7092 GB, free: 15.12 MB / 426.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002649/0.01119, allocations: 79.78 kB / 0.7093 GB, free: 15.05 MB / 426.8 MB Notification: Performance of NFPackage.collectConstants: time 3.981e-05/0.01123, allocations: 20 kB / 0.7093 GB, free: 15.03 MB / 426.8 MB Notification: Performance of NFFlatten.collectFunctions: time 3.79e-05/0.01127, allocations: 16 kB / 0.7093 GB, free: 15.01 MB / 426.8 MB Notification: Performance of NFScalarize.scalarize: time 5.628e-05/0.01132, allocations: 47.77 kB / 0.7093 GB, free: 14.96 MB / 426.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.01144, allocations: 79.72 kB / 0.7094 GB, free: 14.89 MB / 426.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0003208/0.01176, allocations: 191.5 kB / 0.7096 GB, free: 14.7 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.01177, allocations: 3.938 kB / 0.7096 GB, free: 14.7 MB / 426.8 MB Notification: Performance of FrontEnd: time 1.934e-06/0.01177, allocations: 0 / 0.7096 GB, free: 14.7 MB / 426.8 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.01177, allocations: 0 / 0.7096 GB, free: 14.7 MB / 426.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.001138/0.01291, allocations: 0.493 MB / 0.7101 GB, free: 14.16 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.01295, allocations: 8.031 kB / 0.7101 GB, free: 14.15 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.406e-05/0.01303, allocations: 24.8 kB / 0.7101 GB, free: 14.12 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003182/0.01335, allocations: 178.4 kB / 0.7103 GB, free: 13.92 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/0.01337, allocations: 8.609 kB / 0.7103 GB, free: 13.91 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.162e-05/0.01342, allocations: 12.38 kB / 0.7103 GB, free: 13.9 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004541/0.01387, allocations: 198.5 kB / 0.7105 GB, free: 13.7 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.01389, allocations: 11.94 kB / 0.7105 GB, free: 13.68 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.665e-05/0.01392, allocations: 4 kB / 0.7105 GB, free: 13.68 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.01393, allocations: 4 kB / 0.7105 GB, free: 13.68 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004225/0.01435, allocations: 154.2 kB / 0.7107 GB, free: 13.52 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.01562, allocations: 477.5 kB / 0.7111 GB, free: 13.02 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000571/0.01619, allocations: 176.2 kB / 0.7113 GB, free: 12.83 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002243/0.01642, allocations: 98.66 kB / 0.7114 GB, free: 12.73 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.01643, allocations: 7.938 kB / 0.7114 GB, free: 12.72 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004163/0.01685, allocations: 228.4 kB / 0.7116 GB, free: 12.46 MB / 426.8 MB Notification: Performance of pre-optimization done (n=20): time 1.312e-06/0.01685, allocations: 0 / 0.7116 GB, free: 12.46 MB / 426.8 MB Notification: Performance of matching and sorting (n=21): time 0.001701/0.01855, allocations: 0.6978 MB / 0.7123 GB, free: 11.71 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.01867, allocations: 140.5 kB / 0.7124 GB, free: 11.54 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002673/0.01894, allocations: 215 kB / 0.7126 GB, free: 11.32 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 5.151e-05/0.01899, allocations: 33.7 kB / 0.7126 GB, free: 11.28 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.01911, allocations: 136.4 kB / 0.7128 GB, free: 11.14 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.876e-05/0.01919, allocations: 75.41 kB / 0.7129 GB, free: 11.07 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.01929, allocations: 49.7 kB / 0.7129 GB, free: 11.02 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.01949, allocations: 338.8 kB / 0.7132 GB, free: 10.68 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002731/0.01976, allocations: 141 kB / 0.7134 GB, free: 10.52 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003452/0.02011, allocations: 229.3 kB / 0.7136 GB, free: 10.25 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004856/0.02059, allocations: 275.8 kB / 0.7138 GB, free: 9.938 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.02059, allocations: 0 / 0.7138 GB, free: 9.938 MB / 426.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007045/0.0213, allocations: 396 kB / 0.7142 GB, free: 9.52 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003596/0.02166, allocations: 63.39 kB / 0.7143 GB, free: 9.445 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.02166, allocations: 0 / 0.7143 GB, free: 9.445 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.02168, allocations: 4 kB / 0.7143 GB, free: 9.441 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.02193, allocations: 55.84 kB / 0.7143 GB, free: 9.387 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.02194, allocations: 4.219 kB / 0.7143 GB, free: 9.383 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.02213, allocations: 23.92 kB / 0.7144 GB, free: 9.359 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.716e-05/0.02215, allocations: 12 kB / 0.7144 GB, free: 9.348 MB / 426.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.0002792/0.02243, allocations: 172.3 kB / 0.7145 GB, free: 9.164 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.927e-05/0.02247, allocations: 15.91 kB / 0.7145 GB, free: 9.148 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.493e-05/0.02255, allocations: 25.95 kB / 0.7146 GB, free: 9.121 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.02255, allocations: 4 kB / 0.7146 GB, free: 9.117 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.02256, allocations: 3.938 kB / 0.7146 GB, free: 9.113 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.02256, allocations: 4 kB / 0.7146 GB, free: 9.109 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009592/0.02352, allocations: 0.543 MB / 0.7151 GB, free: 8.52 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.02353, allocations: 4 kB / 0.7151 GB, free: 8.516 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002041/0.02373, allocations: 31.97 kB / 0.7152 GB, free: 8.484 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.02373, allocations: 0 / 0.7152 GB, free: 8.484 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.1e-05/0.02375, allocations: 11.94 kB / 0.7152 GB, free: 8.473 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.02376, allocations: 0 / 0.7152 GB, free: 8.473 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.02376, allocations: 0 / 0.7152 GB, free: 8.473 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000886/0.02464, allocations: 0.5 MB / 0.7157 GB, free: 7.941 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.386e-05/0.02469, allocations: 23.92 kB / 0.7157 GB, free: 7.918 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.547e-05/0.02473, allocations: 8 kB / 0.7157 GB, free: 7.91 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.02492, allocations: 15.97 kB / 0.7157 GB, free: 7.895 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.974e-05/0.02501, allocations: 23.97 kB / 0.7157 GB, free: 7.871 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.02503, allocations: 7.984 kB / 0.7157 GB, free: 7.863 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.0001776/0.02521, allocations: 156.4 kB / 0.7159 GB, free: 7.711 MB / 426.8 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02521, allocations: 0 / 0.7159 GB, free: 7.711 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.0003019/0.02551, allocations: 60 kB / 0.7159 GB, free: 7.652 MB / 426.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.000162/0.02567, allocations: 115.1 kB / 0.716 GB, free: 7.531 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.0007133/0.02638, allocations: 382.4 kB / 0.7164 GB, free: 7.117 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.02638, allocations: 0 / 0.7164 GB, free: 7.117 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003051/0.02669, allocations: 176.1 kB / 0.7166 GB, free: 6.93 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004876/0.02718, allocations: 73.25 kB / 0.7166 GB, free: 6.863 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/0.02842, allocations: 0.5741 MB / 0.7172 GB, free: 6.258 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001424/0.02857, allocations: 125.6 kB / 0.7173 GB, free: 6.113 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.02869, allocations: 29.92 kB / 0.7174 GB, free: 6.082 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.528e-05/0.02875, allocations: 20.5 kB / 0.7174 GB, free: 6.062 MB / 426.8 MB Notification: Performance of SimCode: time 4.81e-07/0.02875, allocations: 0 / 0.7174 GB, free: 6.062 MB / 426.8 MB Notification: Performance of Templates: time 0.2408/0.2695, allocations: 3.313 MB / 0.7206 GB, free: 36.66 MB / 426.8 MB " [Timeout remaining time 660] 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: 7.379472414962947]