Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.Heparin.Heparin.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.002597/0.002597, 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.002936/0.002936, allocations: 215.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.811/1.811, allocations: 230.6 MB / 256 MB, free: 9.598 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.477/1.477, allocations: 316.8 MB / 0.6144 GB, free: 93.01 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.NonDrugs.T_toxic_hazardous.Heparin.Heparin,tolerance=1e-09,outputFormat="empty",numberOfIntervals=499,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.Heparin.Heparin") translateModel(Pharmacolibrary.NonDrugs.T_toxic_hazardous.Heparin.Heparin,tolerance=1e-09,outputFormat="empty",numberOfIntervals=499,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.Heparin.Heparin") [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.004513/0.004513, allocations: 69.8 kB / 0.775 GB, free: 14.71 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1793, allocations: 73.99 MB / 0.8473 GB, free: 4.855 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.NonDrugs.T_toxic_hazardous.Heparin.Heparin): time 0.003499/0.1828, allocations: 1.824 MB / 0.8491 GB, free: 3.031 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.001211/0.184, allocations: 0.546 MB / 0.8496 GB, free: 2.484 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.106e-05/0.1841, allocations: 4 kB / 0.8496 GB, free: 2.48 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 9.851e-05/0.1842, allocations: 12.36 kB / 0.8496 GB, free: 2.469 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0003533/0.1846, allocations: 64.8 kB / 0.8497 GB, free: 2.406 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002137/0.1848, allocations: 62.05 kB / 0.8497 GB, free: 2.348 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002749/0.1851, allocations: 164 kB / 0.8499 GB, free: 2.188 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 5.777e-05/0.1851, allocations: 5.312 kB / 0.8499 GB, free: 2.184 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.1853, allocations: 80.28 kB / 0.85 GB, free: 2.105 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000297/0.1856, allocations: 80.16 kB / 0.85 GB, free: 2.027 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 3.48e-05/0.1856, allocations: 8.594 kB / 0.8501 GB, free: 2.02 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 3.632e-05/0.1856, allocations: 8 kB / 0.8501 GB, free: 2.012 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 8.15e-05/0.1857, allocations: 28.62 kB / 0.8501 GB, free: 1.984 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 8.926e-05/0.1858, allocations: 55.77 kB / 0.8501 GB, free: 1.93 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001785/0.186, allocations: 92.08 kB / 0.8502 GB, free: 1.84 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.186, allocations: 0.625 kB / 0.8502 GB, free: 1.84 MB / 474.8 MB Notification: Performance of FrontEnd: time 1.433e-06/0.186, allocations: 0 / 0.8502 GB, free: 1.84 MB / 474.8 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.186, allocations: 4.562 kB / 0.8502 GB, free: 1.836 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009178/0.1869, allocations: 392.8 kB / 0.8506 GB, free: 1.418 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.1869, allocations: 8.844 kB / 0.8506 GB, free: 1.41 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.517e-05/0.187, allocations: 16.84 kB / 0.8506 GB, free: 1.395 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002554/0.1873, allocations: 155.5 kB / 0.8508 GB, free: 1.219 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.1873, allocations: 5.344 kB / 0.8508 GB, free: 1.215 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.708e-05/0.1873, allocations: 12.12 kB / 0.8508 GB, free: 1.203 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.1876, allocations: 107.4 kB / 0.8509 GB, free: 1.098 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.1876, allocations: 0 / 0.8509 GB, free: 1.098 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.1876, allocations: 0 / 0.8509 GB, free: 1.098 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.1876, allocations: 0 / 0.8509 GB, free: 1.098 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003012/0.1879, allocations: 84.89 kB / 0.851 GB, free: 1.016 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005999/0.1885, allocations: 288.2 kB / 0.8513 GB, free: 0.7031 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005189/0.189, allocations: 132.5 kB / 0.8514 GB, free: 0.5664 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002238/0.1893, allocations: 56.81 kB / 0.8514 GB, free: 0.5078 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.455e-05/0.1893, allocations: 0 / 0.8514 GB, free: 0.5078 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003624/0.1897, allocations: 114 kB / 0.8515 GB, free: 396 kB / 474.8 MB Notification: Performance of pre-optimization done (n=13): time 1.372e-06/0.1897, allocations: 3.938 kB / 0.8516 GB, free: 392 kB / 474.8 MB Notification: Performance of matching and sorting (n=13): time 0.0006262/0.1903, allocations: 197.6 kB / 0.8517 GB, free: 188 kB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.324e-05/0.1903, allocations: 60.17 kB / 0.8518 GB, free: 116 kB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/0.1906, allocations: 153.5 kB / 0.8519 GB, free: 15.96 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.1906, allocations: 33.7 kB / 0.852 GB, free: 15.92 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 9.375e-05/0.1907, allocations: 104.9 kB / 0.8521 GB, free: 15.81 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.204e-05/0.1907, allocations: 47.64 kB / 0.8521 GB, free: 15.77 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.827e-05/0.1908, allocations: 34.3 kB / 0.8522 GB, free: 15.73 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.191, allocations: 331.4 kB / 0.8525 GB, free: 15.39 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.1912, allocations: 82.28 kB / 0.8525 GB, free: 15.31 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005674/0.1918, allocations: 198.6 kB / 0.8527 GB, free: 15.08 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003403/0.1921, allocations: 141.9 kB / 0.8529 GB, free: 14.93 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1921, allocations: 4 kB / 0.8529 GB, free: 14.93 MB / 490.8 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004991/0.1926, allocations: 238.2 kB / 0.8531 GB, free: 14.68 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.833e-05/0.1927, allocations: 37.7 kB / 0.8531 GB, free: 14.64 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.1927, allocations: 0.625 kB / 0.8531 GB, free: 14.64 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.1927, allocations: 0.625 kB / 0.8531 GB, free: 14.64 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.1929, allocations: 32.47 kB / 0.8532 GB, free: 14.61 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.1929, allocations: 4 kB / 0.8532 GB, free: 14.6 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001688/0.1931, allocations: 24.44 kB / 0.8532 GB, free: 14.58 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.1931, allocations: 4.625 kB / 0.8532 GB, free: 14.57 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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.000125/0.1932, allocations: 118.5 kB / 0.8533 GB, free: 14.45 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/0.1932, allocations: 16.58 kB / 0.8533 GB, free: 14.43 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000478/0.1937, allocations: 178.9 kB / 0.8535 GB, free: 14.25 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.1937, allocations: 0.8125 kB / 0.8535 GB, free: 14.25 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1937, allocations: 0.625 kB / 0.8535 GB, free: 14.25 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1937, allocations: 7.922 kB / 0.8535 GB, free: 14.25 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001966/0.1939, allocations: 149.8 kB / 0.8537 GB, free: 14.07 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1939, allocations: 0 / 0.8537 GB, free: 14.07 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001599/0.1941, allocations: 24.75 kB / 0.8537 GB, free: 14.05 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.1941, allocations: 4.578 kB / 0.8537 GB, free: 14.04 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.1941, allocations: 11.98 kB / 0.8537 GB, free: 14.03 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1941, allocations: 0.5 kB / 0.8537 GB, free: 14.03 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1941, allocations: 0.5938 kB / 0.8537 GB, free: 14.03 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006268/0.1947, allocations: 253.2 kB / 0.8539 GB, free: 13.77 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.079e-05/0.1948, allocations: 16.42 kB / 0.854 GB, free: 13.75 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.442e-05/0.1948, allocations: 8.578 kB / 0.854 GB, free: 13.75 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.1949, allocations: 8.578 kB / 0.854 GB, free: 13.74 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.267e-05/0.195, allocations: 15.98 kB / 0.854 GB, free: 13.72 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.195, allocations: 8.578 kB / 0.854 GB, free: 13.71 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001207/0.1951, allocations: 119.8 kB / 0.8541 GB, free: 13.6 MB / 490.8 MB Notification: Performance of sort global known variables: time 7e-08/0.1951, allocations: 0 / 0.8541 GB, free: 13.6 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002227/0.1953, allocations: 32.69 kB / 0.8541 GB, free: 13.57 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (q[1],qAbsorbed) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.0001476/0.1955, allocations: 99.91 kB / 0.8542 GB, free: 13.46 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0004923/0.196, allocations: 221.6 kB / 0.8544 GB, free: 13.23 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.196, allocations: 0 / 0.8544 GB, free: 13.23 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000191/0.1962, allocations: 62.83 kB / 0.8545 GB, free: 13.17 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.1965, allocations: 43.89 kB / 0.8545 GB, free: 13.13 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007956/0.1973, allocations: 321.9 kB / 0.8549 GB, free: 12.79 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000117/0.1974, allocations: 103.6 kB / 0.855 GB, free: 12.67 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 9.598e-05/0.1975, allocations: 20.08 kB / 0.855 GB, free: 12.65 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.641e-05/0.1976, allocations: 20.06 kB / 0.855 GB, free: 12.63 MB / 490.8 MB Notification: Performance of SimCode: time 4.91e-07/0.1976, allocations: 3.938 kB / 0.855 GB, free: 12.63 MB / 490.8 MB Notification: Performance of Templates: time 0.3147/0.5123, allocations: 2.63 MB / 0.8576 GB, free: 28.13 MB / 490.8 MB " [Timeout remaining time 659] make -j1 -f Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.Heparin.Heparin.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.Heparin.Heparin.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.Heparin.Heparin.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.Heparin.Heparin.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.Heparin.Heparin.sim & ./Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.Heparin.Heparin -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.Heparin.Heparin.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.661008334020153]