Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.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.001582/0.001582, allocations: 92.52 kB / 19.94 MB, free: 4.602 MB / 18.57 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.001601/0.001601, allocations: 165.9 kB / 23.21 MB, free: 1.332 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 0.9338/0.9338, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.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.7456/0.7456, allocations: 291.2 MB / 0.5382 GB, free: 51.78 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.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 0.6974 GB, free: 10.39 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.574e-05/2.759e-05, allocations: 6.281 kB / 0.6974 GB, free: 10.39 MB / 410.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone): time 0.003259/0.003286, allocations: 2.295 MB / 0.6996 GB, free: 8.074 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.006581/0.009868, allocations: 6.545 MB / 0.706 GB, free: 1.52 MB / 410.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002897/0.01016, allocations: 0 / 0.706 GB, free: 1.52 MB / 410.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.01033, allocations: 27.72 kB / 0.706 GB, free: 1.492 MB / 410.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0003036/0.01064, allocations: 87.27 kB / 0.7061 GB, free: 1.406 MB / 410.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.01092, allocations: 55.8 kB / 0.7062 GB, free: 1.352 MB / 410.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002853/0.01121, allocations: 266.6 kB / 0.7064 GB, free: 1.09 MB / 410.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.01138, allocations: 36.58 kB / 0.7065 GB, free: 1.059 MB / 410.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.01157, allocations: 139.6 kB / 0.7066 GB, free: 0.9219 MB / 410.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.01178, allocations: 83.72 kB / 0.7067 GB, free: 0.8398 MB / 410.8 MB Notification: Performance of NFPackage.collectConstants: time 3.681e-05/0.01182, allocations: 16 kB / 0.7067 GB, free: 0.8242 MB / 410.8 MB Notification: Performance of NFFlatten.collectFunctions: time 3.081e-05/0.01185, allocations: 16 kB / 0.7067 GB, free: 0.8086 MB / 410.8 MB Notification: Performance of NFScalarize.scalarize: time 3.736e-05/0.01189, allocations: 47.77 kB / 0.7067 GB, free: 0.7617 MB / 410.8 MB Notification: Performance of NFVerifyModel.verify: time 8.711e-05/0.01197, allocations: 75.83 kB / 0.7068 GB, free: 0.6875 MB / 410.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.01224, allocations: 198.6 kB / 0.707 GB, free: 0.4961 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.01225, allocations: 0 / 0.707 GB, free: 0.4961 MB / 410.8 MB Notification: Performance of FrontEnd: time 1.923e-06/0.01225, allocations: 0 / 0.707 GB, free: 0.4961 MB / 410.8 MB Notification: Performance of Transformations before backend: time 6.523e-06/0.01226, allocations: 4 kB / 0.707 GB, free: 0.4922 MB / 410.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.0008158/0.01307, allocations: 496.8 kB / 0.7075 GB, free: 15.96 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.01312, allocations: 8.031 kB / 0.7075 GB, free: 15.95 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.837e-05/0.0132, allocations: 24.8 kB / 0.7075 GB, free: 15.93 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.01348, allocations: 178.4 kB / 0.7077 GB, free: 15.73 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.0135, allocations: 8.609 kB / 0.7077 GB, free: 15.72 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.896e-05/0.01354, allocations: 16.36 kB / 0.7077 GB, free: 15.7 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003811/0.01392, allocations: 206.5 kB / 0.7079 GB, free: 15.49 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.01393, allocations: 3.953 kB / 0.7079 GB, free: 15.48 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.01395, allocations: 4 kB / 0.7079 GB, free: 15.48 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.01396, allocations: 7.938 kB / 0.7079 GB, free: 15.47 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003331/0.01429, allocations: 146.2 kB / 0.7081 GB, free: 15.32 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000811/0.01511, allocations: 485.4 kB / 0.7085 GB, free: 14.82 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000478/0.01558, allocations: 176.1 kB / 0.7087 GB, free: 14.63 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.01575, allocations: 98.52 kB / 0.7088 GB, free: 14.52 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.01576, allocations: 0 / 0.7088 GB, free: 14.52 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004319/0.01619, allocations: 236.4 kB / 0.709 GB, free: 14.26 MB / 426.8 MB Notification: Performance of pre-optimization done (n=20): time 4.488e-06/0.0162, allocations: 0 / 0.709 GB, free: 14.26 MB / 426.8 MB Notification: Performance of matching and sorting (n=21): time 0.001509/0.01771, allocations: 0.6949 MB / 0.7097 GB, free: 13.5 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.472e-05/0.01777, allocations: 148.5 kB / 0.7098 GB, free: 13.33 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/0.01793, allocations: 212 kB / 0.71 GB, free: 13.11 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.01795, allocations: 33.7 kB / 0.7101 GB, free: 13.07 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.088e-05/0.01802, allocations: 132.5 kB / 0.7102 GB, free: 12.94 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.202e-05/0.01807, allocations: 75.42 kB / 0.7103 GB, free: 12.87 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.056e-05/0.01813, allocations: 45.7 kB / 0.7103 GB, free: 12.82 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 9.043e-05/0.01822, allocations: 342.8 kB / 0.7106 GB, free: 12.47 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.01837, allocations: 141 kB / 0.7108 GB, free: 12.32 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001618/0.01853, allocations: 221.3 kB / 0.711 GB, free: 12.05 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002459/0.01878, allocations: 286.2 kB / 0.7113 GB, free: 11.73 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.01878, allocations: 0 / 0.7113 GB, free: 11.73 MB / 426.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003608/0.01914, allocations: 391.9 kB / 0.7116 GB, free: 11.32 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.344e-05/0.01918, allocations: 65.73 kB / 0.7117 GB, free: 11.25 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.01919, allocations: 4.219 kB / 0.7117 GB, free: 11.24 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.01921, allocations: 4 kB / 0.7117 GB, free: 11.24 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.01934, allocations: 59.78 kB / 0.7118 GB, free: 11.18 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.01935, allocations: 4 kB / 0.7118 GB, free: 11.18 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.635e-05/0.01944, allocations: 19.98 kB / 0.7118 GB, free: 11.16 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.01946, allocations: 11.98 kB / 0.7118 GB, free: 11.14 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.0001682/0.01963, allocations: 168.4 kB / 0.7119 GB, free: 10.96 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.04e-05/0.01965, allocations: 19.91 kB / 0.712 GB, free: 10.95 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.011e-05/0.01969, allocations: 29.95 kB / 0.712 GB, free: 10.91 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.01969, allocations: 0 / 0.712 GB, free: 10.91 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.0197, allocations: 3.938 kB / 0.712 GB, free: 10.91 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.0197, allocations: 0 / 0.712 GB, free: 10.91 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005421/0.02024, allocations: 0.5473 MB / 0.7125 GB, free: 10.32 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.02025, allocations: 3.984 kB / 0.7125 GB, free: 10.31 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001015/0.02035, allocations: 27.98 kB / 0.7126 GB, free: 10.29 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.02035, allocations: 4 kB / 0.7126 GB, free: 10.28 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.02036, allocations: 11.98 kB / 0.7126 GB, free: 10.27 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-06/0.02037, allocations: 0 / 0.7126 GB, free: 10.27 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.02037, allocations: 3.938 kB / 0.7126 GB, free: 10.27 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004444/0.02081, allocations: 0.4965 MB / 0.7131 GB, free: 9.738 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.592e-05/0.02084, allocations: 15.86 kB / 0.7131 GB, free: 9.723 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.797e-05/0.02087, allocations: 8 kB / 0.7131 GB, free: 9.715 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.613e-05/0.02095, allocations: 19.97 kB / 0.7131 GB, free: 9.695 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.138e-05/0.02102, allocations: 31.95 kB / 0.7131 GB, free: 9.664 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.02103, allocations: 4 kB / 0.7131 GB, free: 9.66 MB / 426.8 MB Notification: Performance of sorting global known variables: time 9.806e-05/0.02113, allocations: 159.4 kB / 0.7133 GB, free: 9.504 MB / 426.8 MB Notification: Performance of sort global known variables: time 6e-08/0.02113, allocations: 0 / 0.7133 GB, free: 9.504 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.0001869/0.02132, allocations: 52 kB / 0.7133 GB, free: 9.453 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.0001183/0.02144, allocations: 115.2 kB / 0.7135 GB, free: 9.332 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.0003583/0.02179, allocations: 379.8 kB / 0.7138 GB, free: 8.918 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.0218, allocations: 4 kB / 0.7138 GB, free: 8.914 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.02194, allocations: 169 kB / 0.714 GB, free: 8.73 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003087/0.02225, allocations: 74.42 kB / 0.7141 GB, free: 8.66 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007832/0.02303, allocations: 0.5954 MB / 0.7146 GB, free: 8.027 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.718e-05/0.02311, allocations: 121.6 kB / 0.7148 GB, free: 7.887 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.472e-05/0.02316, allocations: 28.48 kB / 0.7148 GB, free: 7.859 MB / 426.8 MB Notification: Performance of SimCode: time 7.12e-07/0.02316, allocations: 0 / 0.7148 GB, free: 7.859 MB / 426.8 MB Notification: Performance of Templates: time 0.003297/0.02646, allocations: 2.951 MB / 0.7177 GB, free: 4.938 MB / 426.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.593799205496907]